|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Used for pipelined and non-blocking HttpURLConnections. This notifies the user that the response is ready to read (pipelined and non-blocking) or the request is ready to be written (non-blocking). The order that the HttpURLConnections are presented to this Callback is determined by the order in which the connections are associated with the callback. If you are using a default callback (setDefaultCallback()) this is the order in which the HttpURLConnections are created.
Method Summary | |
void |
error(HttpURLConnection urlCon,
java.io.InputStream is,
java.lang.Exception ex)
Some error happened that caused the connection to fail. |
void |
readResponse(HttpURLConnection urlCon,
java.io.InputStream is)
This connection is ready to have its data read, and has completed successfully. |
void |
writeRequest(HttpURLConnection urlCon,
java.io.OutputStream os)
This connection is ready to have its data written. |
Method Detail |
public void writeRequest(HttpURLConnection urlCon, java.io.OutputStream os)
urlCon
- the connection.os
- the OutputStream on which the data is written. Call the
close() method on this when done.public void readResponse(HttpURLConnection urlCon, java.io.InputStream is)
urlCon
- the connection.is
- the InputStream on which to read the data. Call the close()
method on this when done. This will be provided even in the
exception case if there is anything to read.public void error(HttpURLConnection urlCon, java.io.InputStream is, java.lang.Exception ex)
urlCon
- the connection.is
- the InputStream on which to read the data, if there is any
data to report.ex
- an Exception. The Exception can be null if this is being
called because of an bad response code.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |