|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.oaklandsw.http.AbstractCallback
Default implementation of the Callback interface that does nothing.
Constructor Summary | |
AbstractCallback()
|
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. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractCallback()
Method Detail |
public void readResponse(HttpURLConnection urlCon, java.io.InputStream is)
Callback
readResponse
in interface Callback
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 writeRequest(HttpURLConnection urlCon, java.io.OutputStream os)
Callback
writeRequest
in interface Callback
urlCon
- the connection.os
- the OutputStream on which the data is written. Call the
close() method on this when done.public void error(HttpURLConnection urlCon, java.io.InputStream is, java.lang.Exception ex)
Callback
error
in interface Callback
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 |