|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.continuuity.http.HttpResourceHandler
public final class HttpResourceHandler
HttpResourceHandler handles the http request. HttpResourceHandler looks up all Jax-rs annotations in classes and dispatches to appropriate method on receiving requests.
| Constructor Summary | |
|---|---|
HttpResourceHandler(Iterable<? extends HttpHandler> handlers,
Iterable<? extends HandlerHook> handlerHooks,
URLRewriter urlRewriter)
Construct HttpResourceHandler. |
|
| Method Summary | |
|---|---|
void |
destroy(HandlerContext context)
destroy method will be called before shutdown. |
com.continuuity.http.HttpMethodInfo |
getDestinationMethod(org.jboss.netty.handler.codec.http.HttpRequest request,
HttpResponder responder)
Call the appropriate handler for handling the httprequest. |
void |
handle(org.jboss.netty.handler.codec.http.HttpRequest request,
HttpResponder responder)
Call the appropriate handler for handling the httprequest. |
void |
init(HandlerContext context)
init method will be called before the netty pipeline is setup. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpResourceHandler(Iterable<? extends HttpHandler> handlers,
Iterable<? extends HandlerHook> handlerHooks,
URLRewriter urlRewriter)
HttpResourceModel as destination of the route.
handlers - Iterable of HttpHandler.handlerHooks - Iterable of HandlerHook.urlRewriter - URL re-writer.| Method Detail |
|---|
public void handle(org.jboss.netty.handler.codec.http.HttpRequest request,
HttpResponder responder)
request - instance of HttpRequestresponder - instance of HttpResponder to handle the request.
public com.continuuity.http.HttpMethodInfo getDestinationMethod(org.jboss.netty.handler.codec.http.HttpRequest request,
HttpResponder responder)
throws Exception
request - instance of HttpRequestresponder - instance of HttpResponder to handle the request.
Exceptionpublic void init(HandlerContext context)
HttpHandler
init in interface HttpHandlercontext - instance of HandlerContext.public void destroy(HandlerContext context)
HttpHandler
destroy in interface HttpHandlercontext - instance of HandlerContext.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||