public interface HttpContextMap extends ControllerService
An interface that provides the capability of receiving an HTTP servlet request in one component and responding to that request in another component.
The intended flow is for the component receiving the HTTP request to register the request, response, and AsyncContext with a particular identifier via the
register(String, HttpServletRequest, HttpServletResponse, AsyncContext) method. Another component is then able to obtain the response by providing that identifier to the
getResponse(String) method. After writing to the HttpServletResponse, the transaction is to then be completed via the complete(String) method.
| Modifier and Type | Method and Description |
|---|---|
void |
complete(String identifier)
Marks the HTTP request/response for the given identifier as complete
|
javax.servlet.http.HttpServletResponse |
getResponse(String identifier)
Retrieves the HttpServletResponse for the given identifier, if it exists
|
boolean |
register(String identifier,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.AsyncContext context)
Registers an HttpServletRequest, HttpServletResponse, and the AsyncContext for a given identifier
|
initializegetIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateboolean register(String identifier, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.AsyncContext context)
identifier - identifierrequest - requestresponse - responsecontext - contextIllegalStateException - if the identifier is already registeredjavax.servlet.http.HttpServletResponse getResponse(String identifier)
identifier - identifiernull if it does not existvoid complete(String identifier)
identifier - identifierIllegalStateException - if the identifier is not registered to a valid AsyncContextCopyright © 2016 Apache NiFi Project. All rights reserved.