Apache CXF API

org.apache.cxf.transport.jms.uri
Class URISupport

java.lang.Object
  extended by org.apache.cxf.transport.jms.uri.URISupport

public final class URISupport
extends Object

URI utilities.


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

Method Detail

parseQuery

public static Map<String,String> parseQuery(String uri)
                                     throws URISyntaxException
Throws:
URISyntaxException

parseParameters

public static Map<String,String> parseParameters(URI uri)
                                          throws URISyntaxException
Throws:
URISyntaxException

removeQuery

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

Throws:
URISyntaxException

createURIWithQuery

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

Throws:
URISyntaxException

parseComposite

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

stripPrefix

public static String stripPrefix(String value,
                                 String prefix)

stripScheme

public static URI stripScheme(URI uri)
                       throws URISyntaxException
Throws:
URISyntaxException

createQueryString

public static String createQueryString(Map<String,String> options)
                                throws URISyntaxException
Throws:
URISyntaxException

createRemainingURI

public static URI createRemainingURI(URI originalURI,
                                     Map<String,String> params)
                              throws URISyntaxException
Creates a URI from the original URI and the remaining parameters

Throws:
URISyntaxException

changeScheme

public static URI changeScheme(URI bindAddr,
                               String scheme)
                        throws URISyntaxException
Throws:
URISyntaxException

checkParenthesis

public static boolean checkParenthesis(String str)

Apache CXF API

Apache CXF