|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ClientListener
A client that handles the event generated by the ClientBase class.
Method Summary | |
---|---|
boolean |
followRedirects()
Check if this client request wants to automatically follow redirects |
void |
handleFailure(HttpHeader request,
Exception e)
Handle a failure of a given request. |
void |
handleResponse(HttpHeader request,
HttpHeader response,
WebConnectionResourceSource wcrs)
Handle a response for a request. |
void |
handleTimeout(HttpHeader request)
Handle a timeout of a given request. |
void |
redirected(HttpHeader request,
String location,
ClientBase base)
Handle a redirected request |
void |
requestDone(HttpHeader request)
A request has been fully handled. |
Method Detail |
---|
void redirected(HttpHeader request, String location, ClientBase base)
request
- the request that was redirectedlocation
- the location the redirect givesvoid handleResponse(HttpHeader request, HttpHeader response, WebConnectionResourceSource wcrs)
request
- the request maderesponse
- the response headerwcrs
- the actual resourceboolean followRedirects()
void requestDone(HttpHeader request)
void handleTimeout(HttpHeader request)
void handleFailure(HttpHeader request, Exception e)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |