    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class w3c.www.protocol.http.auth.AuthFilter

    java.lang.Object
       |
       +----w3c.www.protocol.http.auth.AuthFilter

public class AuthFilter
extends Object
implements PropRequestFilter

##

manager
  the HttpManager that installed us.
realms
  The per-server realms we know about.

##

AuthFilter()

##

exceptionFilter(Request, HttpException)
  This filter doesn't handle exceptions.
ingoingFilter(Request)
  On the way out, we let the request fly through.
initialize(HttpManager)
  PropRequestFilter implementation - Initialize the filter.
lookupRealm(Request, Reply)
outgoingFilter(Request, Reply)
  Catch any authentication requirement, and fullfill it with user's help.
registerRealm(Request, Reply, HttpCredential)
sync()
  We don't maintain cached informations.

##

realms

     protected static Hashtable realms

  The per-server realms we know about.

manager

     protected HttpManager manager

  the HttpManager that installed us.

##

AuthFilter

     public AuthFilter()

##

registerRealm

     protected static void registerRealm(Request request,
                                         Reply reply,
                                         HttpCredential credentials)

lookupRealm

     protected static HttpCredential lookupRealm(Request request,
                                                 Reply reply)

initialize

     public void initialize(HttpManager manager)

  PropRequestFilter implementation - Initialize the filter. Time to register ourself to the HttpManager.

  Parameters:
    manager - The HTTP manager that is initializing ourself.

exceptionFilter

     public boolean exceptionFilter(Request request,
                                    HttpException ex)

  This filter doesn't handle exceptions.

  Parameters:
    request - The request that triggered the exception.
    ex - The triggered exception.
  Returns:
    Always false.

ingoingFilter

     public Reply ingoingFilter(Request request)

  On the way out, we let the request fly through.

  Parameters:
    request - The request about to be emitted.

outgoingFilter

     public Reply outgoingFilter(Request request,
                                 Reply reply) throws HttpException

  Catch any authentication requirement, and fullfill it with user's help. This method trap all request for authentication, and pops up a dialog prompting for the user's name and password.

  It then retries the request with the provided authentication informations.

  Parameters:
    request - The request that requires authentication.
    reply - The original reply.

sync

     public void sync()

  We don't maintain cached informations.

    All Packages  Class Hierarchy  This Package  Previous  Next  Index