public abstract class AbstractHttpHandler extends Object implements HttpHandler
Constructor and Description |
---|
AbstractHttpHandler() |
Modifier and Type | Method and Description |
---|---|
HttpContext |
getHttpContext() |
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(String name) |
void |
start()
Start the LifeCycle.
|
void |
stop()
Stop the LifeCycle.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
handle
public void setName(String name)
public 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 Exception
LifeCycle
public void stop() throws InterruptedException
LifeCycle
stop
in interface LifeCycle
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()
public void handleTrace(HttpRequest request, HttpResponse response) throws IOException
IOException
Copyright © 2016. All Rights Reserved.