Package org.exolab.jms.net.connector

Examples of org.exolab.jms.net.connector.ResourceException


            if (value.equalsIgnoreCase("true")) {
                result = true;
            } else if (value.equalsIgnoreCase("false")) {
                result = false;
            } else {
                throw new ResourceException("Invalid boolean for property="
                                            + getName(name)
                                            + ": " + value);
            }
        }
        return result;
View Full Code Here


        String value = get(name);
        if (value != null) {
            try {
                result = Integer.parseInt(value);
            } catch (NumberFormatException exception) {
                throw new ResourceException("Invalid int for property="
                                            + getName(name)
                                            + ": " + value);
            }
        }
        return result;
View Full Code Here

        String uri = get(name);
        if (uri != null) {
            try {
                result = URIHelper.parse(uri);
            } catch (InvalidURIException exception) {
                throw new ResourceException("Invalid URI for property="
                                            + getName(name)
                                            + ": " + uri);
            }
        }
        return result;
View Full Code Here

     */
    public ManagedConnection createManagedConnection(Principal principal,
                                                     ConnectionRequestInfo info)
            throws ResourceException {
        if (!(info instanceof HTTPRequestInfo)) {
            throw new ResourceException("Argument 'info' must be of type "
                                        + HTTPRequestInfo.class.getName());
        }

        return new HTTPManagedConnection(principal, (HTTPRequestInfo) info);
    }
View Full Code Here

    public ManagedConnectionAcceptor createManagedConnectionAcceptor(
            Authenticator authenticator, ConnectionRequestInfo info)
            throws ResourceException {

        if (!(info instanceof SocketRequestInfo)) {
            throw new ResourceException("Argument 'info' must be of type "
                                        + SocketRequestInfo.class.getName());
        }

        return new HTTPManagedConnectionAcceptor(authenticator,
                                                 (SocketRequestInfo) info);
View Full Code Here

        try {
            _localURI = URIHelper.create(uri.getScheme(), null, -1,
                                         UUIDGenerator.create());
        } catch (InvalidURIException exception) {
            _log.debug(exception, exception);
             throw new ResourceException("Failed to generate local URI",
                                        exception);
        }

    }
View Full Code Here

        try {
            _localURI = URIHelper.create(scheme, uri.getHost(), localPort);
        } catch (InvalidURIException exception) {
            _log.debug(exception, exception);
             throw new ResourceException("Failed to generate local URI",
                                        exception);
        }
        try {
            _endpoint = new SocketEndpoint(scheme, socket);
        } catch (IOException exception) {
            _log.debug(exception, exception);
             throw new ResourceException("Failed to create endpoint", exception);
        }
    }
View Full Code Here

     */
    public ManagedConnection createManagedConnection(Principal principal,
                                                     ConnectionRequestInfo info)
            throws ResourceException {
        if (!(info instanceof HTTPRequestInfo)) {
            throw new ResourceException("Argument 'info' must be of type "
                                        + HTTPRequestInfo.class.getName());
        }
        initSSL();

        return new HTTPSManagedConnection(principal, (HTTPRequestInfo) info);
View Full Code Here

    public ManagedConnectionAcceptor createManagedConnectionAcceptor(
            Authenticator authenticator, ConnectionRequestInfo info)
            throws ResourceException {

        if (!(info instanceof SocketRequestInfo)) {
            throw new ResourceException("Argument 'info' must be of type "
                                        + SocketRequestInfo.class.getName());
        }

        return new HTTPSManagedConnectionAcceptor(authenticator,
                                                  (SocketRequestInfo) info);
View Full Code Here

TOP

Related Classes of org.exolab.jms.net.connector.ResourceException

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.