| 
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.http.server.util.RequestDispatcher
public class RequestDispatcher
Implementation of a HattpHandler that dispatches incoming requests to RequestHandlers that registered themselves with this RequestDispatcher.
| Constructor Summary | |
|---|---|
RequestDispatcher()
Default constructor.  | 
|
| Method Summary | |
|---|---|
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.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public RequestDispatcher()
| Method Detail | 
|---|
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 RequestHandler
public void handle(HttpExchange he)
            throws java.io.IOException
handle in interface HttpHandlerhe - the HttpExchange object
java.io.IOException - handling the request (e.g. a org.eclipse.jetty.http.HttpException)
  | 
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||