public class HttpResponseChannel extends HttpMessageChannel<HttpResponse>
| Modifier and Type | Field and Description |
|---|---|
static int |
READING_CHUNK_BODY |
static int |
READING_CHUNK_HEADER |
static int |
READING_CHUNK_TRAILER |
static int |
READING_CRLF |
static int |
STATE_CLOSE_CONNECTION |
static int |
STATE_READING_CHUNKS |
STATE_READING_BODY, STATE_READING_HEADER| Constructor and Description |
|---|
HttpResponseChannel(ReadableByteChannel in)
Create a stream of http-response-packets by reading from the
given input-stream.
|
| Modifier and Type | Method and Description |
|---|---|
String |
chunkState() |
int |
getId() |
int |
getNumberOfResponses() |
boolean |
isConnectionClosed()
Returns true if the server has send an "Connection: close"
within the last response.
|
HttpChunk |
readChunk() |
HttpResponse |
readMessage() |
String |
status() |
String |
toString() |
close, getState, getTimeout, readBody, readHeader, setTimeout, timedOut, touchpublic static final int STATE_READING_CHUNKS
public static final int STATE_CLOSE_CONNECTION
public static final int READING_CHUNK_HEADER
public static final int READING_CHUNK_BODY
public static final int READING_CHUNK_TRAILER
public static final int READING_CRLF
public HttpResponseChannel(ReadableByteChannel in)
in - public HttpResponse readMessage() throws IOException, TimeOutException, ProtocolException
readMessage in class HttpMessageChannel<HttpResponse>IOExceptionTimeOutExceptionProtocolExceptionpublic HttpChunk readChunk() throws IOException, ProtocolException
IOExceptionProtocolExceptionpublic String status()
public String chunkState()
public boolean isConnectionClosed()
public int getNumberOfResponses()
public int getId()
Copyright © 2015 jwall.org. All Rights Reserved.