org.apache.activemq.util
Class URISupport

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

public class URISupport
extends java.lang.Object

Version:
$Revision$

Nested Class Summary
static class URISupport.CompositeData
           
 
Constructor Summary
URISupport()
           
 
Method Summary
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 URISupport.CompositeData parseComposite(java.net.URI uri)
           
static java.util.Map parseParamters(java.net.URI uri)
           
static java.util.Map 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 parseQuery(java.lang.String uri)
                                throws java.net.URISyntaxException
Throws:
java.net.URISyntaxException

parseParamters

public static java.util.Map parseParamters(java.net.URI uri)
                                    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

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 © 2010 Apache Software Foundation. All Rights Reserved.