sun.net.httpserver
Class AuthFilter
java.lang.Object
com.sun.net.httpserver.Filter
sun.net.httpserver.AuthFilter
public class AuthFilter
- extends Filter
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AuthFilter
public AuthFilter(Authenticator authenticator)
description
public 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 IOException
- Throws:
IOException
doFilter
public void doFilter(HttpExchange t,
Filter.Chain chain)
throws 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:
IOException - may be thrown by any filter module, and if
caught, must be rethrown again.
Copyright © 2005-2011 Oracle Corporation. All Rights Reserved.