|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectittp.protocol.Protocol
ittp.protocol.response.Response
This class build the response send to the client according to the method and the headers.
Nested Class Summary | |
class |
Response.Body
This class create the body of the response according to the request of the client. |
class |
Response.Code
This class allow to know the state of the response. |
class |
Response.Headers
Abstract class headers that allows to build the different headers for the response. |
Field Summary | |
static java.lang.String |
ALLOW
Declaration of the different headers send in a response |
Response.Body |
body
|
Response.Code |
code
|
static java.lang.String |
CONNECTION
|
static java.lang.String |
CONTENT_LENGTH
|
static java.lang.String |
CONTENT_MD5
|
static java.lang.String |
CONTENT_RANGE
|
static java.lang.String |
CONTENT_TYPE
|
static java.lang.String |
DATE
|
Response.Headers |
headers
|
static java.lang.String |
HOST
|
static java.lang.String |
LAST_MODIFIED
|
static java.lang.String |
SERVER
|
Fields inherited from class ittp.protocol.Protocol |
dateFormat, ITTP_version, VERSION |
Constructor Summary | |
Response()
Creates a new instance of Headers |
Method Summary | |
Response.Headers |
getHeaders(java.lang.String headerString)
Accessor for the object Headers |
void |
setVirtualBody(boolean virtualBody)
Mutators for the boolean virtualBody |
java.io.InputStream |
toStream()
Method to convert the headers and the body to an InputStream. |
java.lang.String |
toString()
Method to convert the response to a string. |
Methods inherited from class ittp.protocol.Protocol |
getITTP_version, setITTP_version |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public Response.Code code
public Response.Headers headers
public Response.Body body
public static final java.lang.String ALLOW
public static final java.lang.String CONNECTION
public static final java.lang.String CONTENT_LENGTH
public static final java.lang.String CONTENT_MD5
public static final java.lang.String CONTENT_RANGE
public static final java.lang.String CONTENT_TYPE
public static final java.lang.String DATE
public static final java.lang.String HOST
public static final java.lang.String LAST_MODIFIED
public static final java.lang.String SERVER
Constructor Detail |
public Response()
Method Detail |
public Response.Headers getHeaders(java.lang.String headerString)
headerString
- String containing the name of the header.
public java.lang.String toString()
public java.io.InputStream toStream()
public void setVirtualBody(boolean virtualBody)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |