Lightweight HTTP Server 1.0.0.Beta1

org.jboss.sun.net.httpserver
Class AuthFilter

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

public class AuthFilter
extends Filter


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jboss.com.sun.net.httpserver.Filter
Filter.Chain
 
Constructor Summary
AuthFilter(Authenticator authenticator)
           
 
Method Summary
 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)
           
 
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 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.

Lightweight HTTP Server 1.0.0.Beta1

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.