Package com.meterware.pseudoserver
Class HttpRequest
- java.lang.Object
-
- com.meterware.pseudoserver.HttpRequest
-
public class HttpRequest extends java.lang.ObjectRepresents 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.StringgetCommand()Returns the command associated with this request.java.lang.String[]getParameter(java.lang.String name)Returns the parameter with the specified name.java.lang.StringgetProtocol()Returns the protocol string specified in the message header for this request.java.lang.StringgetURI()Returns the URI specified in the message header for this request.java.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
-