sun.net.httpserver
Class AuthFilter

java.lang.Object
  extended by com.sun.net.httpserver.Filter
      extended by sun.net.httpserver.AuthFilter

public class AuthFilter
extends Filter


Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.net.httpserver.Filter
Filter.Chain
 
Constructor Summary
AuthFilter(Authenticator authenticator)
           
 
Method Summary
 void consumeInput(HttpExchange t)
           
 java.lang.String description()
          returns a short description of this Filter
 void doFilter(HttpExchange t, Filter.Chain chain)
          The filter's implementation, which is invoked by the server
 void setAuthenticator(Authenticator a)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthFilter

public AuthFilter(Authenticator authenticator)
Method Detail

description

public java.lang.String description()
Description copied from class: Filter
returns a short description of this Filter

Specified by:
description in class Filter
Returns:
a string describing the Filter

setAuthenticator

public void setAuthenticator(Authenticator a)

consumeInput

public void consumeInput(HttpExchange t)
                  throws java.io.IOException
Throws:
java.io.IOException

doFilter

public void doFilter(HttpExchange t,
                     Filter.Chain chain)
              throws java.io.IOException
The filter's implementation, which is invoked by the server

Specified by:
doFilter in class Filter
Parameters:
t - the HttpExchange to be filtered.
chain - the Chain which allows the next filter to be invoked.
Throws:
java.io.IOException - may be thrown by any filter module, and if caught, must be rethrown again.


Copyright © 2005-2011 Oracle Corporation. All Rights Reserved.