|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.mortbay.http.handler.AbstractHttpHandler
Base HTTP Handler. This No-op handler is a good base for other handlers
Constructor Summary | |
AbstractHttpHandler()
|
Method Summary | |
HttpContext |
getHttpContext()
|
java.lang.String |
getName()
Get the name of the handler. |
void |
handleTrace(HttpRequest request,
HttpResponse response)
|
void |
initialize(HttpContext context)
Initialize with a HttpContext. |
boolean |
isStarted()
|
void |
setName(java.lang.String name)
|
void |
start()
Start the LifeCycle. |
void |
stop()
Stop the LifeCycle. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.mortbay.http.HttpHandler |
handle |
Constructor Detail |
public AbstractHttpHandler()
Method Detail |
public void setName(java.lang.String name)
public java.lang.String getName()
HttpHandler
getName
in interface HttpHandler
public HttpContext getHttpContext()
getHttpContext
in interface HttpHandler
public void initialize(HttpContext context)
initialize
in interface HttpHandler
context
- Must be the HttpContext of the handlerpublic void start() throws java.lang.Exception
LifeCycle
start
in interface LifeCycle
java.lang.Exception
- An arbitrary exception may be thrown.public void stop() throws java.lang.InterruptedException
LifeCycle
stop
in interface LifeCycle
java.lang.InterruptedException
- Stopping a lifecycle is rarely atomic
and may be interrupted by another thread. If this happens
InterruptedException is throw and the component will be in an
indeterminant state and should probably be discarded.public boolean isStarted()
isStarted
in interface LifeCycle
public java.lang.String toString()
toString
in class java.lang.Object
public void handleTrace(HttpRequest request, HttpResponse response) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |