public class URISupport extends Object
Modifier and Type | Class and Description |
---|---|
static class |
URISupport.CompositeData |
Constructor and Description |
---|
URISupport() |
Modifier and Type | Method and Description |
---|---|
static URI |
applyParameters(URI uri,
Map<String,String> queryParameters) |
static URI |
applyParameters(URI uri,
Map<String,String> queryParameters,
String optionPrefix) |
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 paramaters
|
static URI |
createURIWithQuery(URI uri,
String query)
Creates a URI with the given query
|
int |
indexOfParenthesisMatch(String str) |
static boolean |
isCompositeURI(URI uri) |
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) |
public URISupport()
public static Map<String,String> parseQuery(String uri) throws URISyntaxException
URISyntaxException
public static Map<String,String> parseParameters(URI uri) throws URISyntaxException
URISyntaxException
public static URI applyParameters(URI uri, Map<String,String> queryParameters) throws URISyntaxException
URISyntaxException
public static URI applyParameters(URI uri, Map<String,String> queryParameters, String optionPrefix) throws URISyntaxException
URISyntaxException
public static URI removeQuery(URI uri) throws URISyntaxException
URISyntaxException
public static URI createURIWithQuery(URI uri, String query) throws URISyntaxException
URISyntaxException
public static URISupport.CompositeData parseComposite(URI uri) throws URISyntaxException
URISyntaxException
public static boolean isCompositeURI(URI uri)
public static String stripPrefix(String value, String prefix)
public static URI stripScheme(URI uri) throws URISyntaxException
URISyntaxException
public static String createQueryString(Map<String,String> options) throws URISyntaxException
URISyntaxException
public static URI createRemainingURI(URI originalURI, Map<String,String> params) throws URISyntaxException
URISyntaxException
public static URI changeScheme(URI bindAddr, String scheme) throws URISyntaxException
URISyntaxException
public static boolean checkParenthesis(String str)
public int indexOfParenthesisMatch(String str)
Copyright © 2005–2017. All rights reserved.