Package org.apache.isis.runtimes.dflt.remoting.common.exchange

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


        try {
            final String requestData = (String) input.readObject();
            if (LOG.isDebugEnabled()) {
                LOG.debug("request received \n" + requestData);
            }
            final Request request = (Request) xstream.fromXML(requestData);
            return request;
        } catch (final ClassNotFoundException e) {
            throw new IllegalRequestException("unknown class received; closing connection: " + e.getMessage(), e);
        }
    }
View Full Code Here


    private ServerFacade facade;
    private PipedConnection communication;

    public synchronized void run() {
        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);
View Full Code Here

            } catch (final InterruptedException e) {
                LOG.error("wait (getRequest) interrupted", e);
            }
        }

        final Request r = request;
        request = null;
        notify();
        return r;
    }
View Full Code Here

    // //////////////////////////////////////////////////////

    @Override
    public Request readRequest() throws IOException {
        try {
            final Request request = (Request) input.readObject();
            return request;
        } catch (final ClassNotFoundException e) {
            throw new IllegalRequestException("unknown class received; closing connection: " + e.getMessage(), e);
        }
    }
View Full Code Here

    // ServerMarshaller impl
    // ////////////////////////////////////////////////////////////////

    @Override
    public Request readRequest() throws IOException {
        final Request request = readFromInput(Request.class);
        if (LOG.isDebugEnabled()) {
            LOG.debug("request received: " + request);
        }
        return request;
    }
View Full Code Here

    // handleRequest
    // /////////////////////////////////////////////////////

    public void handleRequest() throws IOException {
        final long start = System.currentTimeMillis();
        final Request request = connection.readRequest();
        AuthenticationSession authenticationSession = null;
        try {
            authenticationSession = openSessionIfNotAuthenticateRequest(request);

            monitorRequest(authenticationSession, request);
View Full Code Here

        try {
            final String requestData = (String) input.readObject();
            if (LOG.isDebugEnabled()) {
                LOG.debug("request received \n" + requestData);
            }
            final Request request = (Request) xstream.fromXML(requestData);
            return request;
        } catch (final ClassNotFoundException e) {
            throw new IllegalRequestException("unknown class received; closing connection: " + e.getMessage(), e);
        }
    }
View Full Code Here

    private ServerFacade facade;
    private PipedConnection communication;

    public synchronized void run() {
        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);
View Full Code Here

            } catch (final InterruptedException e) {
                LOG.error("wait (getRequest) interrupted", e);
            }
        }

        final Request r = request;
        request = null;
        notify();
        return r;
    }
View Full Code Here

    // //////////////////////////////////////////////////////

    @Override
    public Request readRequest() throws IOException {
        try {
            final Request request = (Request) input.readObject();
            return request;
        } catch (final ClassNotFoundException e) {
            throw new IllegalRequestException("unknown class received; closing connection: " + e.getMessage(), e);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.runtimes.dflt.remoting.common.exchange.Request

Copyright © 2018 www.massapicom. 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.