Package org.exolab.jms.net.uri

Examples of org.exolab.jms.net.uri.URI


     * @return connection request info for creating a managed connection
     * @throws Exception for any error
     */
    protected ConnectionRequestInfo getManagedConnectionRequestInfo()
            throws Exception {
        return new RMIRequestInfo(new URI("rmi://localhost:4099"));
    }
View Full Code Here


     *         acceptor
     * @throws Exception for any error
     */
    protected ConnectionRequestInfo getAcceptorConnectionRequestInfo()
            throws Exception {
        return new RMIRequestInfo(new URI("rmi://localhost:4099"));
    }
View Full Code Here

     * @return connection request info for creating a managed connection
     * @throws Exception for any error
     */
    protected ConnectionRequestInfo getManagedConnectionRequestInfo()
            throws Exception {
        return new RMIRequestInfo(new URI("rmi://localhost:4099"));
    }
View Full Code Here

     *         acceptor
     * @throws Exception for any error
     */
    protected ConnectionRequestInfo getAcceptorConnectionRequestInfo()
            throws Exception {
        return new RMIRequestInfo(new URI("rmi://localhost:4099"));
    }
View Full Code Here

     *
     * @return the display name
     */
    protected String getDisplayName() {
        StringBuffer name = new StringBuffer();
        URI uri = null;
        try {
            uri = getRemoteURI();
        } catch (ResourceException ignore) {
            if (_log.isDebugEnabled()) {
                _log.debug("Failed to determine remote URI", ignore);
            }
        }
        if (uri != null) {
            name.append(uri.toString());
        } else {
            name.append("<unknown>");
        }
        if (isClient()) {
            name.append("[client]");
View Full Code Here

     * @return the local address that the connection is bound to
     * @throws ExportException for any error
     */
    protected URI connect(URI uri, String principal, String credentials)
            throws ExportException {
        URI result;
        try {
            Principal subject = null;
            if (principal != null) {
                subject = new BasicPrincipal(principal, credentials);
            }
View Full Code Here

     */
    protected static VMInvoker connect(Principal principal, URIRequestInfo info,
                                       VMInvoker client, URI uri)
            throws ResourceException {
        VMManagedConnectionAcceptor acceptor;
        URI acceptURI = info.getURI();
        synchronized (_acceptors) {
            acceptor = (VMManagedConnectionAcceptor) _acceptors.get(acceptURI);
        }
        if (acceptor == null) {
            throw new ConnectException("Connection refused, URI=" + acceptURI);
View Full Code Here

     * @return the alternative URI, or <code>null</code> if the alternative
     * host is not set.
     * @throws ResourceException if the alternative URI is invalid
     */
    public URI getAlternativeURI() throws ResourceException {
        URI result = null;
        if (_alternativeHost != null) {
            result = new URI(getURI());
            try {
                result.setHost(_alternativeHost);
            } catch (URI.MalformedURIException exception) {
                throw new ResourceException(exception);
            }
        }
        return result;
View Full Code Here

            throws ResourceException {
        ManagedConnection result = null;

        if (info instanceof URIRequestInfo) {
            URIRequestInfo requestInfo = (URIRequestInfo) info;
            URI uri = requestInfo.getURI();
            Iterator iterator = connections.iterator();
            while (iterator.hasNext()) {
                VMManagedConnection connection =
                        (VMManagedConnection) iterator.next();
                if (connection.hasPrincipal(principal) &&
                    uri.equals(connection.getRemoteURI())) {
                    result = connection;
                    break;
                }
            }
        }
View Full Code Here

            throws ResourceException {
        ManagedConnectionAcceptor result = null;

        if (info instanceof URIRequestInfo) {
            URIRequestInfo requestInfo = (URIRequestInfo) info;
            URI uri = requestInfo.getURI();
            Iterator iterator = acceptors.iterator();
            while (iterator.hasNext()) {
                VMManagedConnectionAcceptor acceptor =
                        (VMManagedConnectionAcceptor) iterator.next();
                if (uri.equals(acceptor.getURI())) {
                    result = acceptor;
                    break;
                }
            }
        }
View Full Code Here

TOP

Related Classes of org.exolab.jms.net.uri.URI

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.