public abstract class AbstractHttpHandler extends Object implements HttpHandler
HttpHandler that provides a method for sending a request to other
handlers that exist in the same server.| Constructor and Description |
|---|
AbstractHttpHandler() |
| Modifier and Type | Method and Description |
|---|---|
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 io.cdap.http.internal.InternalHttpResponse |
sendInternalRequest(io.netty.handler.codec.http.HttpRequest request)
Send a request to another handler internal to the server, getting back the response body and response code.
|
public void init(HandlerContext context)
HttpHandlerinit in interface HttpHandlercontext - instance of HandlerContext.public void destroy(HandlerContext context)
HttpHandlerdestroy in interface HttpHandlercontext - instance of HandlerContext.protected io.cdap.http.internal.InternalHttpResponse sendInternalRequest(io.netty.handler.codec.http.HttpRequest request)
request - request to send to another handler.InternalHttpResponse containing the response code and body.Copyright 2020 Cask, Inc. Licensed under the Apache License, Version 2.0