Package org.apache.isis.runtimes.dflt.remoting.transport

Examples of org.apache.isis.runtimes.dflt.remoting.transport.ConnectionException


        final SimpleTransport transport = new SimpleTransport(getConfiguration(), input, output);
        final EncodingMarshaller marshaller = new EncodingMarshaller(getConfiguration(), transport);
        try {
            marshaller.connect();
        } catch (final IOException e) {
            throw new ConnectionException(e);
        }
        return new ServerConnectionDefault(serverFacade, marshaller);
    }
View Full Code Here


                }
                input.skip(available);
            } catch (final IOException e1) {
                e1.printStackTrace();
            }
            throw new ConnectionException(e.getMessage(), e);
        } catch (final ClassNotFoundException e) {
            throw new ConnectionException("Failed request", e);
        }
    }
View Full Code Here

        final SimpleTransport transport = new SimpleTransport(getConfiguration(), input, output);
        final XStreamMarshaller serverMarshaller = new XStreamMarshaller(getConfiguration(), transport);
        try {
            serverMarshaller.connect();
        } catch (final IOException e) {
            throw new ConnectionException(e);
        }
        return new ServerConnectionDefault(distribution, serverMarshaller);
    }
View Full Code Here

        final SimpleTransport transport = new SimpleTransport(getConfiguration(), input, output);
        final SerializingMarshaller serverMarshaller = new SerializingMarshaller(getConfiguration(), transport);
        try {
            serverMarshaller.connect();
        } catch (final IOException e) {
            throw new ConnectionException(e);
        }
        return new ServerConnectionDefault(serverFacade, serverMarshaller);
    }
View Full Code Here

             * + available); input.skip(available); } catch (IOException e1) {
             * e1.printStackTrace(); } throw new
             * ConnectionException(e.getMessage(), e);
             */
        } catch (final ClassNotFoundException e) {
            throw new ConnectionException("Failed request", e);
        }
    }
View Full Code Here

    private void connect() {
        try {
            marshaller.connect();
        } catch (final IOException e) {
            throw new ConnectionException("Connection failure", e);
        }
    }
View Full Code Here

    public ResponseEnvelope executeRemotely(final Request request) {
        connect();
        try {
            return executeRemotelyElseException(request);
        } catch (final IOException e) {
            throw new ConnectionException("Failed request", e);
        } finally {
            disconnect();
        }
    }
View Full Code Here

            }
            if (LOG.isDebugEnabled()) {
                LOG.debug("connection established " + socket);
            }
        } catch (final MalformedURLException e) {
            throw new ConnectionException("Connection failure", e);
        } catch (final UnknownHostException e) {
            throw new ConnectionException("Connection failure", e);
        } catch (final ConnectException e) {
            throw new ConnectionException("Failed to connect to " + host + "/" + port, e);
        } catch (final IOException e) {
            throw new ConnectionException("Connection failure", e);
        }
    }
View Full Code Here

    private void connect() {
        try {
            marshaller.connect();
        } catch (final IOException e) {
            throw new ConnectionException("Connection failure", e);
        }
    }
View Full Code Here

    public ResponseEnvelope executeRemotely(final Request request) {
        connect();
        try {
            return executeRemotelyElseException(request);
        } catch (final IOException e) {
            throw new ConnectionException("Failed request", e);
        } finally {
            disconnect();
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.runtimes.dflt.remoting.transport.ConnectionException

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.