org.apache.activemq.util
Class URISupport
java.lang.Object
org.apache.activemq.util.URISupport
public class URISupport
- extends Object
- Version:
- $Revision$
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URISupport
public URISupport()
parseQuery
public static Map<String,String> parseQuery(String uri)
throws URISyntaxException
- Throws:
URISyntaxException
parseParamters
public static Map<String,String> parseParamters(URI uri)
throws URISyntaxException
- Throws:
URISyntaxException
applyParameters
public static URI applyParameters(URI uri,
Map<String,String> queryParameters)
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 options)
throws URISyntaxException
- Throws:
URISyntaxException
createRemainingURI
public static URI createRemainingURI(URI originalURI,
Map params)
throws URISyntaxException
- Creates a URI from the original URI and the remaining paramaters
- Throws:
URISyntaxException
changeScheme
public static URI changeScheme(URI bindAddr,
String scheme)
throws URISyntaxException
- Throws:
URISyntaxException
checkParenthesis
public static boolean checkParenthesis(String str)
indexOfParenthesisMatch
public int indexOfParenthesisMatch(String str)
Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.