Package org.glassfish.comms.api.uriutils

Examples of org.glassfish.comms.api.uriutils.UriAliasHandler


     * and requesting that plug-in to do the canonicalization.
     * @param uri the URI to canonicalize
     * @return the canonicalized URI
     */
    URI canonicalize(URI uri) {
        UriAliasHandler handler = null;

        Map<String, PatternMapping<UriAliasHandler>> mappings;

        synchronized (this) {
            mappings = uriAliasHandlerMappings;
        }

        for (PatternMapping<UriAliasHandler> mapping : mappings.values()) {
            if (mapping.regexpPattern.matcher(uri.toString()).find()) {
                handler = mapping.mappedObject;

                break;
            }
        }

        return (handler != null) ? handler.canonicalize(uri) : uri;
    }
View Full Code Here

TOP

Related Classes of org.glassfish.comms.api.uriutils.UriAliasHandler

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.