Class URIUtils
java.lang.Object
org.epics.archiverappliance.utils.ui.URIUtils
Some utilities for parsing URI's
- Author:
- mshankar
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMultiValuedParamFromQueryString(URI uri, String paramName) If you do expect a param to have multiple values, use this method to get all the possible values for a name.parseQueryString(URI uri) Parse the query string of a URI (typically used in archiver config strings) and return these as a name value pair hashmap.static StringpluginString(String proto, String hostname, String params) static String
-
Constructor Details
-
URIUtils
public URIUtils()
-
-
Method Details
-
parseQueryString
Parse the query string of a URI (typically used in archiver config strings) and return these as a name value pair hashmap. We do not handle multiple values for the same param in this call; we simply replace previous names.- Parameters:
uri- URI- Returns:
- HashMap Parse the query string
- Throws:
IOException-
-
getMultiValuedParamFromQueryString
public static List<String> getMultiValuedParamFromQueryString(URI uri, String paramName) throws IOException If you do expect a param to have multiple values, use this method to get all the possible values for a name.- Parameters:
uri- URIparamName-- Returns:
- multiple values of a param
- Throws:
IOException-
-
pluginString
-
pluginString
-