|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.flat502.rox.http.HttpMessage com.flat502.rox.http.HttpRequest
public class HttpRequest
This class represents an HTTP request and supports streaming that request out to an indicated stream.
Constructor Summary | |
---|---|
HttpRequest(java.lang.String method,
java.lang.String uri,
Encoding encoding)
Constructs a new instance using a given HTTP method and URI. |
Method Summary | |
---|---|
protected void |
marshalStartLine(java.io.OutputStream os)
Constructs and returns the HTTP request line for this request. |
Methods inherited from class com.flat502.rox.http.HttpMessage |
---|
addHeader, formatDate, getHeaderValue, getStartLine, getVersionString, isHeaderSet, marshal, marshal, marshalContent, marshalHeaders, normalizeHeaderName, setContent, setHeader, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HttpRequest(java.lang.String method, java.lang.String uri, Encoding encoding)
The URI provided is normalized by a call to
Utils.normalizeURIPath(String)
.
method
- The HTTP method to use in this request.
May not be null
.uri
- The URI to include in this request.
May not be null
.encoding
- An Encoding
describing the encoding to use when
constructing this message. This also informs the
Content-Encoding
header value. May be
null
.Method Detail |
---|
protected void marshalStartLine(java.io.OutputStream os) throws java.io.IOException
The request line is defined in section 5.1 of RFC 2616 and consists of the following three values delimited by spaces:
constructor
.constructor
.HttpMessage.getVersionString()
.
marshalStartLine
in class HttpMessage
os
- The stream to write the start line to.
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |