|
||||||||||
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.HttpResponse
public class HttpResponse
This class represents an HTTP response and supports streaming that request out to an indicated stream.
Constructor Summary | |
---|---|
HttpResponse(int statusCode,
java.lang.String reasonPhrase)
Constructs an instance |
|
HttpResponse(int statusCode,
java.lang.String reasonPhrase,
Encoding encoding)
Constructs an instance |
|
HttpResponse(java.lang.String httpVersion,
int statusCode,
java.lang.String reasonPhrase)
Constructs an instance |
|
HttpResponse(java.lang.String httpVersion,
int statusCode,
java.lang.String reasonPhrase,
Encoding encoding)
Constructs an instance |
Method Summary | |
---|---|
protected java.lang.String |
getVersionString()
Get the HTTP version string for this instance. |
protected void |
marshalStartLine(java.io.OutputStream os)
Constructs and returns the HTTP status line for this response. |
boolean |
mustCloseConnection()
|
Methods inherited from class com.flat502.rox.http.HttpMessage |
---|
addHeader, formatDate, getHeaderValue, getStartLine, 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 HttpResponse(int statusCode, java.lang.String reasonPhrase)
public HttpResponse(java.lang.String httpVersion, int statusCode, java.lang.String reasonPhrase)
public HttpResponse(int statusCode, java.lang.String reasonPhrase, Encoding encoding)
public HttpResponse(java.lang.String httpVersion, int statusCode, java.lang.String reasonPhrase, Encoding encoding)
Method Detail |
---|
protected java.lang.String getVersionString()
HttpMessage
getVersionString
in class HttpMessage
HTTP/1.1
.protected void marshalStartLine(java.io.OutputStream os) throws java.io.IOException
The request line is defined in section 6.1 of RFC 2616 and consists of the following three values delimited by spaces:
HttpMessage.getVersionString()
.constructor
.constructor
.
marshalStartLine
in class HttpMessage
os
- The stream to write the start line to.
java.io.IOException
public boolean mustCloseConnection()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |