Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mortbay.http.handler
Class SecurityHandler  view SecurityHandler download SecurityHandler.java

java.lang.Object
  extended byorg.mortbay.http.handler.AbstractHttpHandler
      extended byorg.mortbay.http.handler.SecurityHandler
All Implemented Interfaces:
org.mortbay.http.HttpHandler, org.mortbay.util.LifeCycle, java.io.Serializable

public class SecurityHandler
extends AbstractHttpHandler

Handler to enforce SecurityConstraints.

Version:
$Id: SecurityHandler.java,v 1.30 2003/09/18 13:29:23 gregwilkins Exp $

Field Summary
private  java.lang.String _authMethod
           
private static org.apache.commons.logging.Log log
           
 
Fields inherited from class org.mortbay.http.handler.AbstractHttpHandler
 
Constructor Summary
SecurityHandler()
           
 
Method Summary
 java.lang.String getAuthMethod()
           
 void handle(java.lang.String pathInContext, java.lang.String pathParams, org.mortbay.http.HttpRequest request, org.mortbay.http.HttpResponse response)
          Handle a request.
 void setAuthMethod(java.lang.String method)
           
 void start()
          Start the LifeCycle.
 
Methods inherited from class org.mortbay.http.handler.AbstractHttpHandler
getHttpContext, getName, handleTrace, initialize, isStarted, setName, stop, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

private static org.apache.commons.logging.Log log

_authMethod

private java.lang.String _authMethod
Constructor Detail

SecurityHandler

public SecurityHandler()
Method Detail

getAuthMethod

public java.lang.String getAuthMethod()

setAuthMethod

public void setAuthMethod(java.lang.String method)

start

public void start()
           throws java.lang.Exception
Description copied from interface: org.mortbay.util.LifeCycle
Start the LifeCycle.

Specified by:
start in interface org.mortbay.util.LifeCycle
Overrides:
start in class AbstractHttpHandler

handle

public void handle(java.lang.String pathInContext,
                   java.lang.String pathParams,
                   org.mortbay.http.HttpRequest request,
                   org.mortbay.http.HttpResponse response)
            throws org.mortbay.http.HttpException,
                   java.io.IOException
Description copied from interface: org.mortbay.http.HttpHandler
Handle a request. Note that Handlers are tried in order until one has handled the request. i.e. until request.isHandled() returns true. In broad terms this means, either a response has been commited or request.setHandled(true) has been called.