|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.w3c.www.protocol.http.cookies.CookieFilter
Client side CookieFilter :
| Field Summary | |
static java.lang.String |
COOKIES_FILE_P
The absolute Path of the file use to store cookies. |
protected HttpManager |
manager
|
| Constructor Summary | |
CookieFilter()
|
|
| Method Summary | |
boolean |
exceptionFilter(Request request,
HttpException ex)
An exception occured while talking to target server. |
Reply |
ingoingFilter(Request request)
The request pre-processing hook. |
void |
initialize(HttpManager manager)
Initialize this filter, using the provided manager. |
Reply |
outgoingFilter(Request request,
Reply reply)
The request post-processing hook. |
void |
sync()
Synchronized any pending state into stable storage. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String COOKIES_FILE_P
protected HttpManager manager
| Constructor Detail |
public CookieFilter()
| Method Detail |
public Reply ingoingFilter(Request request)
throws HttpException
ingoingFilter in interface RequestFilterrequest - The request that is about to be launched.
HttpException - If the filter is supposed to fulfill the
request, but some error happened during that processing.
public Reply outgoingFilter(Request request,
Reply reply)
throws HttpException
It gets the original request, and the actual reply as a parameter, and should return whatever reply it wants the caller to get.
outgoingFilter in interface RequestFilterrequest - The original (handled) request.reply - The reply, as emited by the target server, or constructed
by some other filter.
HttpException - If the reply emitted by the server is not
a valid HTTP reply.
public boolean exceptionFilter(Request request,
HttpException ex)
exceptionFilter in interface RequestFilterrequest - The request whose processing triggered the exception.ex - The exception that was triggered.
public void sync()
sync in interface RequestFilter
public void initialize(HttpManager manager)
throws PropRequestFilterException
setFilter
method.
initialize in interface PropRequestFiltermanager - The HttpManager initializing the filter.
PropRequestFilterException - If the filter couldn't be
initialized properly.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||