Package com.meterware.pseudoserver
Class HttpRequest
- java.lang.Object
-
- com.meterware.pseudoserver.HttpRequest
-
public class HttpRequest extends java.lang.Object
Represents a single HTTP request, extracted from the input stream.- Since:
- 1.6
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCommand()
Returns the command associated with this request.java.lang.String[]
getParameter(java.lang.String name)
Returns the parameter with the specified name.java.lang.String
getProtocol()
Returns the protocol string specified in the message header for this request.java.lang.String
getURI()
Returns the URI specified in the message header for this request.java.lang.String
toString()
-
-
-
Method Detail
-
getCommand
public java.lang.String getCommand()
Returns the command associated with this request.
-
getURI
public java.lang.String getURI()
Returns the URI specified in the message header for this request.
-
getProtocol
public java.lang.String getProtocol()
Returns the protocol string specified in the message header for this request.
-
getParameter
public java.lang.String[] getParameter(java.lang.String name)
Returns the parameter with the specified name. If no such parameter exists, will return null.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-