juju.reattore.protocol.http.impl
Class HttpParserHelper

java.lang.Object
  |
  +--juju.reattore.protocol.http.impl.HttpParserHelper

public class HttpParserHelper
extends java.lang.Object

Testing interface that wraps the impl parser and request/response.


Constructor Summary
HttpParserHelper()
           
 
Method Summary
static HttpParser create()
          Create a new parser.
static HttpRequest parseRequest(java.lang.String in)
          Parse the given string and return it as a request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpParserHelper

public HttpParserHelper()
Method Detail

create

public static HttpParser create()
Create a new parser.

Returns:
A parser instance.

parseRequest

public static HttpRequest parseRequest(java.lang.String in)
                                throws ParseException,
                                       java.io.IOException
Parse the given string and return it as a request.

Parameters:
in - HTTP request string to parse
Returns:
The parsed request.
Throws:
ParseException - if an error occurs while parsing.
java.io.IOException - on error.


Copyright © 2002-2003 Michael Hope. All Rights Reserved.