public class OpaqueStringParser extends Object
| Modifier and Type | Field and Description |
|---|---|
static char |
OPAQUE_PREFIX |
static char |
OPAQUE_SEPARATOR |
static char |
OPAQUE_STRING_PREFIX |
| Constructor and Description |
|---|
OpaqueStringParser() |
| Modifier and Type | Method and Description |
|---|---|
static String |
buildOpaqueString(String key,
String value)
Build an opaque string containing a single key and a single value
|
static Map<String,String> |
getOpaqueMap(String opaque)
The opaque information is included in the path in a format similar to
URL-encoding (&key1=val1&key2=val2...).
|
public static final char OPAQUE_STRING_PREFIX
public static final char OPAQUE_PREFIX
public static final char OPAQUE_SEPARATOR
public static Map<String,String> getOpaqueMap(String opaque) throws ParseException
opaque - The opaque string, as usually attached to the pathParseException - if value is missing for a key in the stringpublic static String buildOpaqueString(String key, String value)
key - The key contained in the opaque stringvalue - The value contained in the opaque stringCopyright © 2013 dCache.org. All rights reserved.