org.apache.activemq.util
Class URISupport

java.lang.Object
  extended by org.apache.activemq.util.URISupport

public class URISupport
extends java.lang.Object


Nested Class Summary
static class URISupport.CompositeData
           
 
Constructor Summary
URISupport()
           
 
Method Summary
static java.net.URI applyParameters(java.net.URI uri, java.util.Map<java.lang.String,java.lang.String> queryParameters)
           
static java.net.URI applyParameters(java.net.URI uri, java.util.Map<java.lang.String,java.lang.String> queryParameters, java.lang.String optionPrefix)
           
static java.net.URI changeScheme(java.net.URI bindAddr, java.lang.String scheme)
           
static boolean checkParenthesis(java.lang.String str)
           
static java.lang.String createQueryString(java.util.Map options)
           
static java.net.URI createRemainingURI(java.net.URI originalURI, java.util.Map params)
          Creates a URI from the original URI and the remaining paramaters
static java.net.URI createURIWithQuery(java.net.URI uri, java.lang.String query)
          Creates a URI with the given query
 int indexOfParenthesisMatch(java.lang.String str)
           
static boolean isCompositeURI(java.net.URI uri)
           
static URISupport.CompositeData parseComposite(java.net.URI uri)
           
static java.util.Map<java.lang.String,java.lang.String> parseParameters(java.net.URI uri)
           
static java.util.Map<java.lang.String,java.lang.String> parseQuery(java.lang.String uri)
           
static java.net.URI removeQuery(java.net.URI uri)
          Removes any URI query from the given uri
static java.lang.String stripPrefix(java.lang.String value, java.lang.String prefix)
           
static java.net.URI stripScheme(java.net.URI uri)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URISupport

public URISupport()
Method Detail

parseQuery

public static java.util.Map<java.lang.String,java.lang.String> parseQuery(java.lang.String uri)
                                                                   throws java.net.URISyntaxException
Throws:
java.net.URISyntaxException

parseParameters

public static java.util.Map<java.lang.String,java.lang.String> parseParameters(java.net.URI uri)
                                                                        throws java.net.URISyntaxException
Throws:
java.net.URISyntaxException

applyParameters

public static java.net.URI applyParameters(java.net.URI uri,
                                           java.util.Map<java.lang.String,java.lang.String> queryParameters)
                                    throws java.net.URISyntaxException
Throws:
java.net.URISyntaxException

applyParameters

public static java.net.URI applyParameters(java.net.URI uri,
                                           java.util.Map<java.lang.String,java.lang.String> queryParameters,
                                           java.lang.String optionPrefix)
                                    throws java.net.URISyntaxException
Throws:
java.net.URISyntaxException

removeQuery

public static java.net.URI removeQuery(java.net.URI uri)
                                throws java.net.URISyntaxException
Removes any URI query from the given uri

Throws:
java.net.URISyntaxException

createURIWithQuery

public static java.net.URI createURIWithQuery(java.net.URI uri,
                                              java.lang.String query)
                                       throws java.net.URISyntaxException
Creates a URI with the given query

Throws:
java.net.URISyntaxException

parseComposite

public static URISupport.CompositeData parseComposite(java.net.URI uri)
                                               throws java.net.URISyntaxException
Throws:
java.net.URISyntaxException

isCompositeURI

public static boolean isCompositeURI(java.net.URI uri)

stripPrefix

public static java.lang.String stripPrefix(java.lang.String value,
                                           java.lang.String prefix)

stripScheme

public static java.net.URI stripScheme(java.net.URI uri)
                                throws java.net.URISyntaxException
Throws:
java.net.URISyntaxException

createQueryString

public static java.lang.String createQueryString(java.util.Map options)
                                          throws java.net.URISyntaxException
Throws:
java.net.URISyntaxException

createRemainingURI

public static java.net.URI createRemainingURI(java.net.URI originalURI,
                                              java.util.Map params)
                                       throws java.net.URISyntaxException
Creates a URI from the original URI and the remaining paramaters

Throws:
java.net.URISyntaxException

changeScheme

public static java.net.URI changeScheme(java.net.URI bindAddr,
                                        java.lang.String scheme)
                                 throws java.net.URISyntaxException
Throws:
java.net.URISyntaxException

checkParenthesis

public static boolean checkParenthesis(java.lang.String str)

indexOfParenthesisMatch

public int indexOfParenthesisMatch(java.lang.String str)


Copyright © 2005-2011. All Rights Reserved.