|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.w3c.www.protocol.http.auth.AuthFilter
public class AuthFilter
Field Summary | |
---|---|
protected HttpManager |
manager
the HttpManager that installed us. |
protected static java.util.Hashtable |
realms
The per-server realms we know about. |
Constructor Summary | |
---|---|
AuthFilter()
|
Method Summary | |
---|---|
boolean |
exceptionFilter(Request request,
HttpException ex)
This filter doesn't handle exceptions. |
Reply |
ingoingFilter(Request request)
On the way out, we let the request fly through. |
void |
initialize(HttpManager manager)
PropRequestFilter implementation - Initialize the filter. |
protected static HttpCredential |
lookupRealm(Request request,
Reply reply)
|
Reply |
outgoingFilter(Request request,
Reply reply)
Catch any authentication requirement, and fullfill it with user's help. |
protected static void |
registerRealm(Request request,
Reply reply,
HttpCredential credentials)
|
void |
sync()
We don't maintain cached informations. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static java.util.Hashtable realms
protected HttpManager manager
Constructor Detail |
---|
public AuthFilter()
Method Detail |
---|
protected static void registerRealm(Request request, Reply reply, HttpCredential credentials)
protected static HttpCredential lookupRealm(Request request, Reply reply)
public void initialize(HttpManager manager)
initialize
in interface PropRequestFilter
manager
- The HTTP manager that is initializing ourself.public boolean exceptionFilter(Request request, HttpException ex)
exceptionFilter
in interface RequestFilter
request
- The request that triggered the exception.ex
- The triggered exception.
public Reply ingoingFilter(Request request)
ingoingFilter
in interface RequestFilter
request
- The request about to be emitted.
public Reply outgoingFilter(Request request, Reply reply) throws HttpException
It then retries the request with the provided authentication informations.
outgoingFilter
in interface RequestFilter
request
- The request that requires authentication.reply
- The original reply.
HttpException
- If some HTTP error occurs.public void sync()
sync
in interface RequestFilter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |