|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectHTTPClient.ResponseHandler
This holds various information about an active response. Used by the StreamDemultiplexor and RespInputStream.
| Field Summary | |
(package private) boolean |
eof
signals that the demux has closed the response stream, and that therefore no more data can be read |
(package private) IOException |
exception
this is non-null if the stream has an exception pending |
(package private) Request |
request
the response class |
(package private) Response |
resp
the response class |
(package private) RespInputStream |
stream
the response stream |
| Constructor Summary | |
(package private) |
ResponseHandler(Response resp,
Request request,
StreamDemultiplexor demux)
Creates a new handler. |
| Method Summary | |
(package private) byte[] |
getEndBoundary(BufferedInputStream MasterStream)
return the boundary string for this response. |
(package private) int[] |
getEndCompiled(BufferedInputStream MasterStream)
return the compilation of the boundary string for this response. |
(package private) void |
setupBoundary(BufferedInputStream MasterStream)
Gets the boundary string, compiles it for searching, and initializes the buffered input stream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
RespInputStream stream
Response resp
Request request
boolean eof
IOException exception
| Constructor Detail |
ResponseHandler(Response resp,
Request request,
StreamDemultiplexor demux)
resp - the reponserequest - the requestdemux - our stream demultiplexor.| Method Detail |
byte[] getEndBoundary(BufferedInputStream MasterStream)
throws IOException,
ParseException
MasterStream - the input stream from which the stream demux
is reading.
IOException
ParseException
int[] getEndCompiled(BufferedInputStream MasterStream)
throws IOException,
ParseException
MasterStream - the input stream from which the stream demux
is reading.
IOException
ParseException
void setupBoundary(BufferedInputStream MasterStream)
throws IOException,
ParseException
IOException
ParseException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||