|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectHTTPClient.RedirectionModule
This module handles the redirection status codes 301, 302, 303, 305, 306 and 307.
| Field Summary |
| Fields inherited from interface HTTPClient.HTTPClientModuleConstants |
REQ_CONTINUE, REQ_NEWCON_RST, REQ_NEWCON_SND, REQ_RESPONSE, REQ_RESTART, REQ_RETURN, REQ_SHORTCIRC, RSP_CONTINUE, RSP_NEWCON_REQ, RSP_NEWCON_SND, RSP_REQUEST, RSP_RESTART, RSP_SEND, RSP_SHORTCIRC |
| Constructor Summary | |
(package private) |
RedirectionModule()
Start with level 0. |
| Method Summary | |
int |
requestHandler(Request req,
Response[] resp)
Invoked by the HTTPClient. |
void |
responsePhase1Handler(Response resp,
RoRequest req)
Invoked by the HTTPClient. |
int |
responsePhase2Handler(Response resp,
Request req)
Invoked by the HTTPClient. |
void |
responsePhase3Handler(Response resp,
RoRequest req)
Invoked by the HTTPClient. |
void |
trailerHandler(Response resp,
RoRequest req)
Invoked by the HTTPClient. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
RedirectionModule()
| Method Detail |
public int requestHandler(Request req,
Response[] resp)
requestHandler in interface HTTPClientModulereq - the request - may be modified as neededresp - the response if the status is REQ_RESPONSE or REQ_RETURN
public void responsePhase1Handler(Response resp,
RoRequest req)
throws IOException
responsePhase1Handler in interface HTTPClientModuleresp - the response - may be modifiedreq - the original request
IOException - if an IOException occurs on the socket
public int responsePhase2Handler(Response resp,
Request req)
throws IOException
responsePhase2Handler in interface HTTPClientModuleresp - the response - may be modifiedreq - the request; if the status is RSP_REQUEST then this
must contain the new request; however do not modify
this if you don't return a RSP_REQUEST status.
IOException - if an IOException occurs on the socket
public void responsePhase3Handler(Response resp,
RoRequest req)
responsePhase3Handler in interface HTTPClientModuleresp - the response - may be modifiedreq - the original request
public void trailerHandler(Response resp,
RoRequest req)
trailerHandler in interface HTTPClientModuleresp - the responsereq - the request
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||