org.enhydra.barracuda.plankton.http
Class HttpConverter

java.lang.Object
  extended byorg.enhydra.barracuda.plankton.http.HttpConverter

public class HttpConverter
extends Object

This class provides a simple series of static methods to convert a Map to a URL String and vica-versa


Constructor Summary
HttpConverter()
           
 
Method Summary
static String cvtMapToURLString(Map map)
          Convert the values in a Map to a URL String (ie. key1=val1&key2=val2&...)
static String cvtMapToURLString(Map map, String delimiter)
          Convert the values in a Map to a URL String (ie. key1=val1&key2=val2&...).
static Map cvtURLStringToMap(String paramStr)
          Convert the values in a URL String (ie. key1=val1&key2=val2&...) to a Map of key/val pairs
static Map cvtURLStringToMap(String paramStr, String delimiter)
          Convert the values in a URL String (ie. key1=val1&key2=val2&...) to a Map of key/val pairs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpConverter

public HttpConverter()
Method Detail

cvtMapToURLString

public static String cvtMapToURLString(Map map)
Convert the values in a Map to a URL String (ie. key1=val1&key2=val2&...)


cvtMapToURLString

public static String cvtMapToURLString(Map map,
                                       String delimiter)
Convert the values in a Map to a URL String (ie. key1=val1&key2=val2&...). You can specify an alternate delimeter here.


cvtURLStringToMap

public static Map cvtURLStringToMap(String paramStr)
Convert the values in a URL String (ie. key1=val1&key2=val2&...) to a Map of key/val pairs


cvtURLStringToMap

public static Map cvtURLStringToMap(String paramStr,
                                    String delimiter)
Convert the values in a URL String (ie. key1=val1&key2=val2&...) to a Map of key/val pairs. You can specify an alternate delimeter here.



Copyright © 2003 BarracudaMVC.org All Rights Reserved.