com.meterware.pseudoserver

Class HttpRequest

public class HttpRequest extends ReceivedHttpMessage

Represents a single HTTP request, extracted from the input stream.

Since: 1.6

Method Summary
StringgetCommand()
Returns the command associated with this request.
String[]getParameter(String name)
Returns the parameter with the specified name.
StringgetProtocol()
Returns the protocol string specified in the message header for this request.
StringgetURI()
Returns the URI specified in the message header for this request.

Method Detail

getCommand

public String getCommand()
Returns the command associated with this request.

getParameter

public String[] getParameter(String name)
Returns the parameter with the specified name. If no such parameter exists, will return null.

getProtocol

public String getProtocol()
Returns the protocol string specified in the message header for this request.

getURI

public String getURI()
Returns the URI specified in the message header for this request.