Package org.exolab.jms.net.uri

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


     * @param listener the event listener to remove
     * @throws InvalidURIException if <code>uri</code> is invalid
     */
    public void removeCallerListener(String uri, CallerListener listener)
        throws InvalidURIException {
        URI parsed = URIHelper.parse(uri);
        parsed = URIHelper.convertHostToAddress(parsed);
        List list = null;
        synchronized (_listeners) {
            list = (List) _listeners.get(parsed);
            if (list != null) {
View Full Code Here


     *
     * @return a URI that uniquely identifies a client RMIManagedConnection
     * @throws ResourceException if the URI cannot be generated
     */
    private URI generateLocalURI() throws ResourceException {
        URI result;
        String path = UUIDGenerator.create();
        try {
            result = URIHelper.create("rmi", null, -1, path);
        } catch (InvalidURIException exception) {
            throw new ResourceException("Failed to generate local URI",
View Full Code Here

     * @param name the property name
     * @return the corresponding URI, or <code>null</code> if none can be found
     * @throws ResourceException if the URI is invalid
     */
    public URI getURI(String name) throws ResourceException {
        URI result = null;
        String uri = get(name);
        if (uri != null) {
            try {
                result = URIHelper.parse(uri);
            } catch (InvalidURIException exception) {
View Full Code Here

            throws ResourceException {
        ManagedConnection result = null;

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

            throws ResourceException {
        super(principal);
        if (info == null) {
            throw new IllegalArgumentException("Argument 'info' is null");
        }
        final URI uri = info.getURI();
        try {
            _endpoint = new HTTPEndpoint(info);
        } catch (IOException exception) {
            _log.debug(exception, exception);
            throw new ConnectException("Failed to connect to URI="
                                       + info.getURI(), exception);
        }
        _remoteURI = URIHelper.convertHostToAddress(uri);

        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

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.