com.meterware.httpunit
Class HttpUnitUtils

java.lang.Object
  |
  +--com.meterware.httpunit.HttpUnitUtils

public class HttpUnitUtils
extends Object

Utility code shared by httpunit and servletunit.


Field Summary
static int DEFAULT_BUFFER_SIZE
           
static int DEFAULT_TEXT_BUFFER_SIZE
           
 
Constructor Summary
HttpUnitUtils()
           
 
Method Summary
static String decode(String byteString)
          Returns an interpretation of the specified URL-encoded string.
static DocumentBuilder newParser()
          creates a parser using JAXP API.
static String[] parseContentTypeHeader(String header)
          Returns the content type and encoding as a pair of strings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_TEXT_BUFFER_SIZE

public static final int DEFAULT_TEXT_BUFFER_SIZE

DEFAULT_BUFFER_SIZE

public static final int DEFAULT_BUFFER_SIZE
Constructor Detail

HttpUnitUtils

public HttpUnitUtils()
Method Detail

parseContentTypeHeader

public static String[] parseContentTypeHeader(String header)
Returns the content type and encoding as a pair of strings. If no character set is specified, the second entry will be null.

decode

public static String decode(String byteString)
Returns an interpretation of the specified URL-encoded string. FIXME: currently assumes iso-8859-1 character set.

newParser

public static DocumentBuilder newParser()
                                 throws SAXException
creates a parser using JAXP API.