java.lang.Object
org.mortbay.http.handler.AbstractHttpHandler
- All Implemented Interfaces:
- org.mortbay.http.HttpHandler, org.mortbay.util.LifeCycle, java.io.Serializable
- Direct Known Subclasses:
- DumpHandler, ErrorPageHandler, ExpiryHandler, ForwardHandler, HTAccessHandler, IPAccessHandler, MsieSslHandler, NotFoundHandler, NullHandler, ProxyHandler, ResourceHandler, SecurityHandler, SetResponseHeadersHandler, TestTEHandler
- public abstract class AbstractHttpHandler
- extends java.lang.Object
- implements org.mortbay.http.HttpHandler
Base HTTP Handler.
This No-op handler is a good base for other handlers
- Version:
- $Id: AbstractHttpHandler.java,v 1.6 2003/09/18 13:29:23 gregwilkins Exp $
log
private static org.apache.commons.logging.Log log
_name
private java.lang.String _name
_context
private transient org.mortbay.http.HttpContext _context
_started
private transient boolean _started
AbstractHttpHandler
public AbstractHttpHandler()
setName
public void setName(java.lang.String name)
getName
public java.lang.String getName()
- Description copied from interface:
org.mortbay.http.HttpHandler
- Get the name of the handler.
- Specified by:
getName in interface org.mortbay.http.HttpHandler
getHttpContext
public org.mortbay.http.HttpContext getHttpContext()
- Specified by:
getHttpContext in interface org.mortbay.http.HttpHandler
initialize
public void initialize(org.mortbay.http.HttpContext context)
- Initialize with a HttpContext.
Called by addHandler methods of HttpContext.
- Specified by:
initialize in interface org.mortbay.http.HttpHandler
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
stop
public void stop()
throws java.lang.InterruptedException
- Description copied from interface:
org.mortbay.util.LifeCycle
- Stop the LifeCycle.
The LifeCycle may wait for current activities to complete
normally, but it can be interrupted.
- Specified by:
stop in interface org.mortbay.util.LifeCycle
isStarted
public boolean isStarted()
- Specified by:
isStarted in interface org.mortbay.util.LifeCycle
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object
- Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method
never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string
concatenation with this object. If the result is
null, string concatenation will instead
use "null".
The default implementation returns
getClass().getName() + "@" +
Integer.toHexString(hashCode()).
handleTrace
public void handleTrace(org.mortbay.http.HttpRequest request,
org.mortbay.http.HttpResponse response)
throws java.io.IOException