|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openqa.jetty.http.handler.AbstractHttpHandler
public abstract class AbstractHttpHandler
Base HTTP Handler. This No-op handler is a good base for other handlers
| Constructor Summary | |
|---|---|
AbstractHttpHandler()
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.openqa.jetty.http.HttpHandler |
|---|
handle |
| Constructor Detail |
|---|
public AbstractHttpHandler()
| Method Detail |
|---|
public void setName(String name)
public String getName()
HttpHandler
getName in interface HttpHandlerpublic HttpContext getHttpContext()
getHttpContext in interface HttpHandlerpublic void initialize(HttpContext context)
initialize in interface HttpHandlercontext - Must be the HttpContext of the handler
public void start()
throws Exception
LifeCycle
start in interface LifeCycleException - An arbitrary exception may be thrown.
public void stop()
throws InterruptedException
LifeCycle
stop in interface LifeCycleInterruptedException - 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 LifeCyclepublic String toString()
toString in class Object
public void handleTrace(HttpRequest request,
HttpResponse response)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||