Examples of ResponseEnvelope


Examples of net.sf.ofx4j.domain.data.ResponseEnvelope

          creditCardResponseMessageSet.setStatementResponse(statementResponse);

          SortedSet<ResponseMessageSet> messageSets = new TreeSet<ResponseMessageSet>();
          messageSets.add(creditCardResponseMessageSet);

          ResponseEnvelope envelope = new ResponseEnvelope();
          envelope.setUID(UUID.randomUUID().toString());
          envelope.setSecurity(ApplicationSecurity.NONE);
          envelope.setMessageSets(messageSets);

          double brazilianRealsamount = parser.getBrazilianRealsAmount();
          double dolarsAmount = parser.getDolarsAmount();
          double cardTotal = dolarsAmount*parser.getExchangeRate() + brazilianRealsamount;
          total+= cardTotal;
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.remoting.common.exchange.ResponseEnvelope

        while (true) {
            final Request request = communication.getRequest();
            LOG.debug("client request: " + request);
            try {
                request.execute(facade);
                final ResponseEnvelope response = new ResponseEnvelope(request);
                LOG.debug("server response: " + response);
                communication.setResponse(response);
            } catch (final RuntimeException e) {
                communication.setException(e);
            } catch (final Exception e) {
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.remoting.common.exchange.ResponseEnvelope

            final RuntimeException toThrow = exception;
            exception = null;
            throw toThrow;
        }

        final ResponseEnvelope r = response;
        response = null;
        notify();
        return r;
    }
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.remoting.common.exchange.ResponseEnvelope

    private void executeRequest(final Request request) {
        request.execute(connection.getServerFacade());
    }

    private void sendResponse(final Request request) throws IOException {
        final ResponseEnvelope response = new ResponseEnvelope(request);

        if (LOG.isDebugEnabled()) {
            debugResponse = response.toString();
            LOG.debug("sending " + debugResponse);
        }
        connection.sendResponse(response);
    }
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.remoting.common.exchange.ResponseEnvelope

        serverFacade = (ServerFacade) control.getMock();
        final ClientConnection connection = new ClientConnection() {
            @Override
            public ResponseEnvelope executeRemotely(final Request request) {
                request.execute(serverFacade);
                return new ResponseEnvelope(request);
            }

            @Override
            public void init() {
            }
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.remoting.common.exchange.ResponseEnvelope

    public void testOutOfSequence() {
        final ClientConnection connection = new ClientConnection() {
            @Override
            public ResponseEnvelope executeRemotely(final Request request) {
                // create a response based on another request so id is different
                return new ResponseEnvelope(new RequestAbstract((AuthenticationSession) null) {
                    private static final long serialVersionUID = 1L;

                    @Override
                    public void execute(final ServerFacade serverFacade) {
                    }
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.remoting.common.exchange.ResponseEnvelope

    // Helpers: execute
    // /////////////////////////////////////////////////////////////////

    private void execute(final Request request) {
        synchronized (connection) {
            final ResponseEnvelope response = connection.executeRemotely(request);
            if (request.getId() != response.getId()) {
                throw new IsisRemoteException("Response out of sequence with respect to the request: " + request.getId() + " & " + response.getId() + " respectively");
            }
            if (LOG.isDebugEnabled()) {
                LOG.debug("response " + response);
            }
            request.setResponse(response.getObject());
        }
    }
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.remoting.common.exchange.ResponseEnvelope

    // Helpers: execute
    // /////////////////////////////////////////////////////////////////

    private void execute(final Request request) {
        synchronized (connection) {
            final ResponseEnvelope response = connection.executeRemotely(request);
            if (request.getId() != response.getId()) {
                throw new IsisRemoteException("Response out of sequence with respect to the request: "
                    + request.getId() + " & " + response.getId() + " respectively");
            }
            if (LOG.isDebugEnabled()) {
                LOG.debug("response " + response);
            }
            request.setResponse(response.getObject());
        }
    }
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.remoting.common.exchange.ResponseEnvelope

        while (true) {
            final Request request = communication.getRequest();
            LOG.debug("client request: " + request);
            try {
                request.execute(facade);
                final ResponseEnvelope response = new ResponseEnvelope(request);
                LOG.debug("server response: " + response);
                communication.setResponse(response);
            } catch (final RuntimeException e) {
                communication.setException(e);
            } catch (final Exception e) {
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.remoting.common.exchange.ResponseEnvelope

            final RuntimeException toThrow = exception;
            exception = null;
            throw toThrow;
        }

        final ResponseEnvelope r = response;
        response = null;
        notify();
        return r;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.