Package com.netscape.cmsutil.http
Class HttpRequest
- java.lang.Object
-
- com.netscape.cmsutil.http.HttpMessage
-
- com.netscape.cmsutil.http.HttpRequest
-
public class HttpRequest extends HttpMessage
Basic HTTP Request. not optimized for performance. Set fields or parse from input. Handles text content.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
GET
static java.lang.String
HEAD
protected java.lang.String
mHttpVers
protected java.lang.String
mMethod
protected java.lang.String
mURI
static java.lang.String
POST
-
Fields inherited from class com.netscape.cmsutil.http.HttpMessage
mContent, mHeaders, mLine
-
-
Constructor Summary
Constructors Constructor Description HttpRequest()
Instantiate a HttpResponse for write to http client.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getHttpVers()
get http versionjava.lang.String
getMethod()
get methodjava.lang.String
getURI()
get reason phrasevoid
parse(java.io.BufferedReader reader)
parse a http request from a http clientvoid
reset()
void
setMethod(java.lang.String method)
set set request method.void
setURI(java.lang.String uri)
set reason phrase.void
write(java.io.OutputStreamWriter writer)
write request to the http client-
Methods inherited from class com.netscape.cmsutil.http.HttpMessage
getContent, getHeader, readHeaders, setContent, setHeader, writeHeaders
-
-
-
-
Field Detail
-
GET
public static final java.lang.String GET
- See Also:
- Constant Field Values
-
POST
public static final java.lang.String POST
- See Also:
- Constant Field Values
-
HEAD
public static final java.lang.String HEAD
- See Also:
- Constant Field Values
-
mMethod
protected java.lang.String mMethod
-
mURI
protected java.lang.String mURI
-
mHttpVers
protected java.lang.String mHttpVers
-
-
Method Detail
-
setMethod
public void setMethod(java.lang.String method) throws HttpProtocolException
set set request method.- Throws:
HttpProtocolException
-
setURI
public void setURI(java.lang.String uri)
set reason phrase.
-
write
public void write(java.io.OutputStreamWriter writer) throws java.io.IOException
write request to the http client- Overrides:
write
in classHttpMessage
- Throws:
java.io.IOException
-
parse
public void parse(java.io.BufferedReader reader) throws java.io.IOException
parse a http request from a http client- Overrides:
parse
in classHttpMessage
- Throws:
java.io.IOException
-
reset
public void reset()
- Overrides:
reset
in classHttpMessage
-
getMethod
public java.lang.String getMethod()
get method
-
getURI
public java.lang.String getURI()
get reason phrase
-
getHttpVers
public java.lang.String getHttpVers()
get http version
-
-