Package org.intermine.client.util
Class URLParser
- java.lang.Object
-
- org.intermine.client.util.URLParser
-
public final class URLParser extends java.lang.Object
The URLParse class is util class for parsing URL.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Map<java.lang.String,java.util.List<java.lang.String>>
parseParameterMap(java.lang.String url)
Returns parameters of URL as parameter map where key in the map is the parameter name and value is list of parameter values.static java.lang.String
parseServiceUrl(java.lang.String url)
Returns service URL - i.e.
-
-
-
Method Detail
-
parseServiceUrl
public static java.lang.String parseServiceUrl(java.lang.String url) throws java.net.MalformedURLException
Returns service URL - i.e. URL before question mark.- Parameters:
url
- URL- Returns:
- service url
- Throws:
java.net.MalformedURLException
- when URL is invalid
-
parseParameterMap
public static java.util.Map<java.lang.String,java.util.List<java.lang.String>> parseParameterMap(java.lang.String url) throws java.net.MalformedURLException
Returns parameters of URL as parameter map where key in the map is the parameter name and value is list of parameter values.- Parameters:
url
- URL- Returns:
- parameter map
- Throws:
java.net.MalformedURLException
- when URL is invalid
-
-