|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.monoserv.http.HttpRequest
public class HttpRequest
Obtains and parses the information in an HTTP request.
Constructor Summary | |
---|---|
protected |
HttpRequest()
|
Method Summary | |
---|---|
boolean |
doesQueryFieldExist(java.lang.String fieldName)
Returns true if a field in the query string exists. |
java.lang.String |
getHttpMethod()
Returns the HTTP method as a string. |
HttpParameters |
getHttpParameters()
Returns a copy of the HTTP headers that were sent along with this request. |
java.lang.String |
getHttpUri()
Returns the URI that was parsed from the request. |
java.lang.String |
getHttpVersion()
Returns the HTTP version in String format. |
static HttpRequest |
makeRequest(java.lang.String httpMsg)
This takes the entire HTTP message in its entirety and parses it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected HttpRequest()
Method Detail |
---|
public java.lang.String getHttpMethod()
public java.lang.String getHttpVersion()
public java.lang.String getHttpUri()
public HttpParameters getHttpParameters()
public boolean doesQueryFieldExist(java.lang.String fieldName) throws java.lang.NullPointerException
fieldName
- The name of the field to look up
java.lang.NullPointerException
- If the query string is nullpublic static HttpRequest makeRequest(java.lang.String httpMsg)
httpMsg
- The whole HTTP message
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |