org.mortbay.http.handler
Class NullHandler
java.lang.Object
|
+--org.mortbay.http.handler.NullHandler
- All Implemented Interfaces:
- HttpHandler, LifeCycle
- Direct Known Subclasses:
- DumpHandler, ForwardHandler, HTAccessHandler, NotFoundHandler, ResourceHandler, SecurityHandler, ServletHandler, TestRFC2616.RedirectHandler, TestTEHandler
- public abstract class NullHandler
- extends java.lang.Object
- implements HttpHandler
Base HTTP Handler.
This No-op handler is a good base for other handlers
- Version:
- $Id: NullHandler.java,v 1.1 2001/09/02 01:13:08 gregwilkins Exp $
- Author:
- Greg Wilkins (gregw)
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NullHandler
public NullHandler()
setName
public void setName(java.lang.String name)
getName
public java.lang.String getName()
- Specified by:
getName
in interface HttpHandler
getHandlerContext
public HandlerContext getHandlerContext()
- Specified by:
getHandlerContext
in interface HttpHandler
initialize
public void initialize(HandlerContext context)
- Initialize with a HandlerContext.
- Specified by:
initialize
in interface HttpHandler
- Parameters:
configuration
- Must be the HandlerContext of the handler
start
public void start()
throws java.lang.Exception
- Description copied from interface:
HttpHandler
- Start the handler.
All requests are ignored until start is called.
- Specified by:
start
in interface HttpHandler
- Following copied from interface:
org.mortbay.util.LifeCycle
- Throws:
java.lang.Exception
- An arbitrary exception may be thrown.
stop
public void stop()
- Description copied from interface:
HttpHandler
- Stop the handler.
New requests are refused and the handler may attempt to wait
for existing requests to complete. The caller may interrupt
the stop call is waiting is taking too long.
- Specified by:
stop
in interface HttpHandler
destroy
public void destroy()
- Description copied from interface:
HttpHandler
- Destroy the handler.
New requests are refused and all current requests are immediately
terminated.
- Specified by:
destroy
in interface HttpHandler
isStarted
public boolean isStarted()
- Specified by:
isStarted
in interface HttpHandler
- Following copied from interface:
org.mortbay.http.HttpHandler
- Returns:
- True if the handler has been started.
isDestroyed
public boolean isDestroyed()
- Specified by:
isDestroyed
in interface HttpHandler
- Following copied from interface:
org.mortbay.http.HttpHandler
- Returns:
- True if the handler has been destroyed.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2000 Mortbay Consulting Pty. Ltd. All Rights Reserved.