|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.mozilla.jrex.io.JRexStreamListenerImpl
Class implementing JRexStreamListener interface.
Constructor Summary | |
JRexStreamListenerImpl()
|
Method Summary | |
boolean |
onDataAvailable(String requestURI,
int requestStatus,
boolean isRequestPending,
Object ctxt,
JRexInputStream in,
int off,
int len)
Called when the next chunk of data (corresponding to the request) may be read without blocking the calling thread. |
boolean |
onStartRequest(String requestURI,
int requestStatus,
boolean isRequestPending,
Object ctxt)
Called to signify the beginning of an asynchronous request. |
void |
onStopRequest(String requestURI,
int requestStatus,
boolean isRequestPending,
Object ctxt,
int statusCode)
Called to signify the end of an asynchronous request. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JRexStreamListenerImpl()
Method Detail |
public boolean onStartRequest(String requestURI, int requestStatus, boolean isRequestPending, Object ctxt)
JRexStreamListener
onStartRequest
in interface JRexStreamListener
requestURI
- request URI corresponding to the source of the datarequestStatus
- request Status corresponding to the source of the dataisRequestPending
- request pending corresponding to the source of the datactxt
- user defined context
false
to cancel the request.public void onStopRequest(String requestURI, int requestStatus, boolean isRequestPending, Object ctxt, int statusCode)
JRexStreamListener
onStopRequest
in interface JRexStreamListener
requestURI
- request URI corresponding to the source of the datarequestStatus
- request Status corresponding to the source of the dataisRequestPending
- request pending corresponding to the source of the datactxt
- user defined contextstatusCode
- reason for stopping, NS_OK if successful.public boolean onDataAvailable(String requestURI, int requestStatus, boolean isRequestPending, Object ctxt, JRexInputStream in, int off, int len)
JRexStreamListener
onDataAvailable
in interface JRexStreamListener
requestURI
- request URI corresponding to the source of the datarequestStatus
- request Status corresponding to the source of the dataisRequestPending
- request pending corresponding to the source of the datactxt
- user defined contextin
- input stream containing the data chunkoff
- current stream positionlen
- number of bytes available in the stream
false
to cancel the request.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |