public class HttpResponse extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
HttpResponse.Callback |
| Modifier and Type | Field and Description |
|---|---|
static int |
HTTP_RESP_BUFFER_SIZE |
HttpRequest |
request |
| Constructor and Description |
|---|
HttpResponse(HttpRequest request) |
| Modifier and Type | Method and Description |
|---|---|
String |
checkRedirect() |
void |
endOfResponse() |
HttpHeader |
getHeaders() |
byte[] |
getRecvData() |
boolean |
parseHeader(byte[] data,
HttpResponse.Callback callback) |
int |
receive(SocketChannel socketChannel) |
void |
receiveData(ByteBuffer buf,
HttpResponse.Callback callback) |
public static final int HTTP_RESP_BUFFER_SIZE
public final HttpRequest request
public HttpResponse(HttpRequest request)
public void endOfResponse()
public String checkRedirect()
public byte[] getRecvData()
public int receive(SocketChannel socketChannel) throws IOException
IOExceptionpublic boolean parseHeader(byte[] data,
HttpResponse.Callback callback)
throws Exception
Exceptionpublic void receiveData(ByteBuffer buf, HttpResponse.Callback callback) throws IOException
IOExceptionpublic HttpHeader getHeaders()