public class HttpResponse extends HttpMessage
| Modifier and Type | Field and Description |
|---|---|
static String |
ACCEPT_RANGES |
static String |
AGE |
protected HttpResponseChannel |
channel
The http stream over which this response has been received
|
static String |
ETAG |
static String |
LOCATION |
static String |
PROXY_AUTHENTICATE |
static String |
RETRY_AFTER |
static String |
SERVER |
static String |
VARY |
static String |
WWW_AUTHENTICATE |
body, header, version| Constructor and Description |
|---|
HttpResponse(HttpHeader header,
byte[] data) |
HttpResponse(String resHeader,
byte[] responseData) |
HttpResponse(String resHeader,
byte[] responseData,
HttpResponseChannel ch) |
| Modifier and Type | Method and Description |
|---|---|
HttpResponseChannel |
getChannel() |
String |
getCharset() |
String |
getContentType() |
HttpResponseChannel |
getHttpStream() |
String |
getMessage() |
String |
getPayload() |
Integer |
getStatus() |
boolean |
isChunk() |
boolean |
isChunked() |
boolean |
isConnectionClosed() |
boolean |
isGZipped() |
protected void |
parseStartLine(String line)
This method must be overwritten
|
void |
setBody(ByteBuffer body) |
void |
setChannel(HttpResponseChannel ch) |
getBody, getBodyAsString, getHeader, getHeader, getHeaderNames, getMessageHeader, getVersion, hasBody, toStringpublic static final String ACCEPT_RANGES
public static final String AGE
public static final String ETAG
public static final String LOCATION
public static final String PROXY_AUTHENTICATE
public static final String RETRY_AFTER
public static final String SERVER
public static final String VARY
public static final String WWW_AUTHENTICATE
protected HttpResponseChannel channel
public HttpResponse(HttpHeader header, byte[] data) throws ProtocolException
ProtocolExceptionpublic HttpResponse(String resHeader, byte[] responseData) throws ProtocolException
reqData - ExceptionProtocolExceptionpublic HttpResponse(String resHeader, byte[] responseData, HttpResponseChannel ch) throws ProtocolException
ProtocolExceptionprotected void parseStartLine(String line) throws MessageFormatException
HttpMessageparseStartLine in class HttpMessageMessageFormatExceptionpublic HttpResponseChannel getHttpStream()
public Integer getStatus()
public String getMessage()
public boolean isConnectionClosed()
public boolean isChunked()
public boolean isGZipped()
public String getCharset()
public String getContentType()
public String getPayload()
public void setBody(ByteBuffer body)
public void setChannel(HttpResponseChannel ch)
public HttpResponseChannel getChannel()
public boolean isChunk()
Copyright © 2014 jwall.org. All Rights Reserved.