Examples of ConnectionNotEstablishedException


Examples of de.fhkn.in.uce.plugininterface.ConnectionNotEstablishedException

            final Message responseMessage = this.receiveConnectionResponse(controlConnection);
            final InetSocketAddress endpointAtRelayServer = this.getEndpointFromMessage(responseMessage);
            return this.connectToTargetEndpoint(endpointAtRelayServer);
        } catch (final Exception e) {
            logger.error(e.getMessage());
            throw new ConnectionNotEstablishedException(this.metaData.getTraversalTechniqueName(),
                    "Source-side socket could not be created.", e); //$NON-NLS-1$
        }
    }
View Full Code Here

Examples of de.fhkn.in.uce.plugininterface.ConnectionNotEstablishedException

        if (msg.hasAttribute(XorMappedAddress.class)) {
            result = msg.getAttribute(XorMappedAddress.class).getEndpoint();
        } else {
            final String errorMessage = "The target endpoint at relay is not returned by the mediator."; //$NON-NLS-1$
            logger.debug(errorMessage);
            throw new ConnectionNotEstablishedException(this.metaData.getTraversalTechniqueName(), errorMessage, null);
        }
        return result;
    }
View Full Code Here

Examples of de.fhkn.in.uce.plugininterface.ConnectionNotEstablishedException

            logger.debug("Allocation at relay server created: {}", endpointAtRelay.toString());
            this.sendConnectionRequestResponse(controlConnection, connectioRequestMessage, endpointAtRelay);
            socket = targetRelayClient.accept();
        } catch (final Exception e) {
            logger.error(e.getMessage());
            throw new ConnectionNotEstablishedException(this.metaData.getTraversalTechniqueName(),
                    "Could not create target-side conenction.", e); //$NON-NLS-1$
        }
        return socket;
    }
View Full Code Here

Examples of de.fhkn.in.uce.plugininterface.ConnectionNotEstablishedException

            throws ConnectionNotEstablishedException {
        try {
            return this.source.establishSourceSideConnection(targetId, controlConnection);
        } catch (final Exception e) {
            logger.error(e.getMessage());
            throw new ConnectionNotEstablishedException(this.metaData.getTraversalTechniqueName(),
                    "Source-side socket could not be created.", e); //$NON-NLS-1$
        }
    }
View Full Code Here

Examples of de.fhkn.in.uce.plugininterface.ConnectionNotEstablishedException

        try {
            logger.debug("Establishing target-side conenction via directconnection"); //$NON-NLS-1$
            return this.target.establishTargetSideConnection(controlConnection, connectionRequestMessage);
        } catch (final Exception e) {
            logger.error(e.getMessage());
            throw new ConnectionNotEstablishedException(this.metaData.getTraversalTechniqueName(),
                    "Target-side socket could not be created.", e); //$NON-NLS-1$
        }
    }
View Full Code Here

Examples of de.fhkn.in.uce.plugininterface.ConnectionNotEstablishedException

        try {
            result = this.source.establishSourceSideConnection(targetId, controlConnection);
        } catch (final IOException e) {
            final String errorMessage = "Source-side connection could not be established"; //$NON-NLS-1$
            logger.error(errorMessage, e);
            throw new ConnectionNotEstablishedException(this.metaData.getTraversalTechniqueName(), errorMessage, e);
        }
        return result;
    }
View Full Code Here

Examples of de.fhkn.in.uce.plugininterface.ConnectionNotEstablishedException

        try {
            return this.target.establishTargetSideConnection(controlConnection, connectionRequestMessage);
        } catch (final Exception e) {
            final String errorMessage = "Target-side connection could not be established"; //$NON-NLS-1$
            logger.error(errorMessage, e);
            throw new ConnectionNotEstablishedException(this.metaData.getTraversalTechniqueName(), errorMessage, e);
        }
    }
View Full Code Here

Examples of de.fhkn.in.uce.plugininterface.ConnectionNotEstablishedException

        logger.debug(
                "Trying to connect to {} via {}.", this.targetId, this.natTraversalTechnique.getMetaData().getTraversalTechniqueName()); //$NON-NLS-1$
        Socket connectedSocket = this.natTraversalTechnique.createSourceSideConnection(this.targetId,
                this.controlConnection);
        if (connectedSocket == null || !connectedSocket.isConnected()) {
            throw new ConnectionNotEstablishedException(this.natTraversalTechnique.getMetaData()
                    .getTraversalTechniqueName(), "Connection attempt was not successful.", null); //$NON-NLS-1$
        }

        return connectedSocket;
    }
View Full Code Here

Examples of de.fhkn.in.uce.plugininterface.ConnectionNotEstablishedException

        try {
            result = source.establishSourceSideConnection(targetId, controlConnection);
        } catch (final IOException e) {
            final String errorMessage = "Could not create source-side onnection"; //$NON-NLS-1$
            logger.error(errorMessage, e);
            throw new ConnectionNotEstablishedException(this.metaData.getTraversalTechniqueName(), errorMessage, e);
        }
        return result;
    }
View Full Code Here

Examples of de.fhkn.in.uce.plugininterface.ConnectionNotEstablishedException

            logger.debug("Waiting for accepted socket"); //$NON-NLS-1$
            return target.accept();
        } catch (final Exception e) {
            final String errorMessage = "Could not create target-side connection"; //$NON-NLS-1$
            logger.error(errorMessage, e);
            throw new ConnectionNotEstablishedException(this.metaData.getTraversalTechniqueName(), errorMessage, e);
        }
    }
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.