|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.continuuity.http.AbstractHttpHandler
public abstract class AbstractHttpHandler
A base implementation of HttpHandler that provides a method for sending a request to other
handlers that exist in the same server.
| Constructor Summary | |
|---|---|
AbstractHttpHandler()
|
|
| Method Summary | |
|---|---|
void |
destroy(HandlerContext context)
destroy method will be called before shutdown. |
void |
init(HandlerContext context)
init method will be called before the netty pipeline is setup. |
protected InternalHttpResponse |
sendInternalRequest(org.jboss.netty.handler.codec.http.HttpRequest request)
Send a request to another handler internal to the server, getting back the response body and response code. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractHttpHandler()
| Method Detail |
|---|
public 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.protected InternalHttpResponse sendInternalRequest(org.jboss.netty.handler.codec.http.HttpRequest request)
request - request to send to another handler.
BasicInternalHttpResponse containing the response code and body.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||