Class HttpRequest
java.lang.Object
com.netscape.cmsutil.http.HttpMessage
com.netscape.cmsutil.http.HttpRequest
Basic HTTP Request. not optimized for performance.
Set fields or parse from input.
Handles text content.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringprotected Stringprotected Stringprotected Stringstatic final StringFields inherited from class com.netscape.cmsutil.http.HttpMessage
mContent, mHeaders, mLine -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget http versionget methodgetURI()get reason phrasevoidparse(BufferedReader reader) parse a http request from a http clientvoidreset()voidset set request method.voidset reason phrase.voidwrite(OutputStreamWriter writer) write request to the http clientMethods inherited from class com.netscape.cmsutil.http.HttpMessage
getContent, getHeader, readHeaders, setContent, setHeader, writeHeaders
-
Field Details
-
GET
- See Also:
-
POST
- See Also:
-
HEAD
- See Also:
-
mMethod
-
mURI
-
mHttpVers
-
-
Constructor Details
-
HttpRequest
public HttpRequest()Instantiate a HttpResponse for write to http client.
-
-
Method Details
-
setMethod
set set request method.- Throws:
HttpProtocolException
-
setURI
set reason phrase. -
write
write request to the http client- Overrides:
writein classHttpMessage- Throws:
IOException
-
parse
parse a http request from a http client- Overrides:
parsein classHttpMessage- Throws:
IOException
-
reset
public void reset()- Overrides:
resetin classHttpMessage
-
getMethod
get method -
getURI
get reason phrase -
getHttpVers
get http version
-