public class AuthFilter extends Filter
Filter.Chain| Constructor and Description |
|---|
AuthFilter(Authenticator authenticator) |
| Modifier and Type | Method and Description |
|---|---|
void |
consumeInput(HttpExchange t) |
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) |
public AuthFilter(Authenticator authenticator)
public String description()
Filterdescription in class Filterpublic void setAuthenticator(Authenticator a)
public void consumeInput(HttpExchange t) throws IOException
IOExceptionpublic void doFilter(HttpExchange t, Filter.Chain chain) throws IOException
doFilter in class Filtert - the HttpExchange to be filtered.chain - the Chain which allows the next filter to be invoked.IOException - may be thrown by any filter module, and if
caught, must be rethrown again.Copyright © 2014. All rights reserved.