org.jwall.web.http
Class HttpResponse
java.lang.Object
org.jwall.web.http.HttpMessage
org.jwall.web.http.HttpResponse
- Direct Known Subclasses:
- HttpChunk
public class HttpResponse
- extends HttpMessage
This class represents an abstract http message.
- Author:
- Christian Bockermann
ACCEPT_RANGES
public static final String ACCEPT_RANGES
- See Also:
- Constant Field Values
AGE
public static final String AGE
- See Also:
- Constant Field Values
ETAG
public static final String ETAG
- See Also:
- Constant Field Values
LOCATION
public static final String LOCATION
- See Also:
- Constant Field Values
PROXY_AUTHENTICATE
public static final String PROXY_AUTHENTICATE
- See Also:
- Constant Field Values
RETRY_AFTER
public static final String RETRY_AFTER
- See Also:
- Constant Field Values
SERVER
public static final String SERVER
- See Also:
- Constant Field Values
VARY
public static final String VARY
- See Also:
- Constant Field Values
WWW_AUTHENTICATE
public static final String WWW_AUTHENTICATE
- See Also:
- Constant Field Values
HttpResponse
public HttpResponse(HttpHeader header,
byte[] data)
throws ProtocolException
- Throws:
ProtocolException
HttpResponse
public HttpResponse(String resHeader,
byte[] responseData)
throws ProtocolException
- Parameters:
reqData -
- Throws:
Exception
ProtocolException
HttpResponse
public HttpResponse(String resHeader,
byte[] responseData,
HttpResponseChannel ch)
throws ProtocolException
- Throws:
ProtocolException
getHttpStream
public HttpResponseChannel getHttpStream()
getStatus
public Integer getStatus()
getMessage
public String getMessage()
isConnectionClosed
public boolean isConnectionClosed()
isChunked
public boolean isChunked()
isGZipped
public boolean isGZipped()
getCharset
public String getCharset()
getContentType
public String getContentType()
getPayload
public String getPayload()
setBody
public void setBody(ByteBuffer body)
setChannel
public void setChannel(HttpResponseChannel ch)
getChannel
public HttpResponseChannel getChannel()
isChunk
public boolean isChunk()
Copyright © 2012 jwall.org. All Rights Reserved.