public class

AuthFilter

extends Filter
java.lang.Object
   ↳ com.sun.net.httpserver.Filter
     ↳ sun.net.httpserver.AuthFilter

Summary

Public Constructors
AuthFilter(Authenticator authenticator)
Public Methods
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)
[Expand]
Inherited Methods
From class com.sun.net.httpserver.Filter
From class java.lang.Object

Public Constructors

public AuthFilter (Authenticator authenticator)

Public Methods

public void consumeInput (HttpExchange t)

Throws
IOException

public String description ()

returns a short description of this Filter

Returns
  • a string describing the Filter

public void doFilter (HttpExchange t, Filter.Chain chain)

The filter's implementation, which is invoked by the server

Parameters
t the HttpExchange to be filtered.
chain the Chain which allows the next filter to be invoked.
Throws
IOException

public void setAuthenticator (Authenticator a)