org.das2.util
Class URLBuddy

java.lang.Object
  extended by org.das2.util.URLBuddy

public class URLBuddy
extends java.lang.Object


Field Summary
static java.util.regex.Pattern VALID_QUERY_NAME
           
static java.util.regex.Pattern VALID_QUERY_VALUE
           
 
Constructor Summary
URLBuddy()
          Creates a new instance of URLBuddy
 
Method Summary
static java.lang.String decodeUTF8(java.lang.String str)
           
static java.lang.String encodeUTF8(java.lang.String str)
           
static java.lang.String formatQueryString(java.util.Map m)
           
static java.util.Map parseQueryString(java.lang.String str)
          Returns an unmodifiable map representing the query string passed in.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VALID_QUERY_NAME

public static final java.util.regex.Pattern VALID_QUERY_NAME

VALID_QUERY_VALUE

public static final java.util.regex.Pattern VALID_QUERY_VALUE
Constructor Detail

URLBuddy

public URLBuddy()
Creates a new instance of URLBuddy

Method Detail

encodeUTF8

public static java.lang.String encodeUTF8(java.lang.String str)

decodeUTF8

public static java.lang.String decodeUTF8(java.lang.String str)

parseQueryString

public static java.util.Map parseQueryString(java.lang.String str)
Returns an unmodifiable map representing the query string passed in. each key is a name from the string and each value is the url encoded value for the key.

Parameters:
str - an URLEncoded query string

formatQueryString

public static java.lang.String formatQueryString(java.util.Map m)