public class RequestDispatcher extends java.lang.Object implements HttpHandler
| Constructor and Description |
|---|
RequestDispatcher()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(ComponentContext context)
DS activate method.
|
void |
addRequestHandler(RequestHandler handler)
Add a RequestHandler..
|
java.lang.String |
getRootContextPath() |
void |
handle(HttpExchange he)
Handles a HttpExchange containing a HttpRequest.
|
void |
removeRequestHandler(RequestHandler handler)
Remove the given RequestHandler.
|
protected void activate(ComponentContext context)
context - ComponentContextpublic java.lang.String getRootContextPath()
getRootContextPath in interface HttpHandlerpublic void addRequestHandler(RequestHandler handler)
handler - the new RequestHandlerpublic void removeRequestHandler(RequestHandler handler)
handler - the RequestHandlerpublic void handle(HttpExchange he) throws java.io.IOException
handle in interface HttpHandlerhe - the HttpExchange objectjava.io.IOException - handling the request (e.g. a org.eclipse.jetty.http.HttpException)