@Tags(value={"http","request","response"}) @SeeAlso(classNames={"org.apache.nifi.processors.standard.HandleHttpRequest","org.apache.nifi.processors.standard.HandleHttpResponse"}) @CapabilityDescription(value="Provides the ability to store and retrieve HTTP requests and responses external to a Processor, so that multiple Processors can interact with the same HTTP request.") public class StandardHttpContextMap extends AbstractControllerService implements HttpContextMap
Modifier and Type | Field and Description |
---|---|
static PropertyDescriptor |
MAX_OUTSTANDING_REQUESTS |
static PropertyDescriptor |
REQUEST_EXPIRATION |
Constructor and Description |
---|
StandardHttpContextMap() |
Modifier and Type | Method and Description |
---|---|
void |
cleanup() |
void |
complete(java.lang.String identifier)
Marks the HTTP request/response for the given identifier as complete
|
javax.servlet.http.HttpServletResponse |
getResponse(java.lang.String identifier)
Retrieves the HttpServletResponse for the given identifier, if it exists
|
protected java.util.List<PropertyDescriptor> |
getSupportedPropertyDescriptors()
Allows subclasses to register which property descriptor objects are
supported.
|
void |
onConfigured(ConfigurationContext context) |
boolean |
register(java.lang.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
|
abstractClearConfigContext, abstractStoreConfigContext, disabled, enabled, getConfigurationContext, getControllerServiceLookup, getIdentifier, getLogger, getProperty, getStateManager, init, initialize, isEnabled
customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, toString, validate
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
initialize
getIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validate
public static final PropertyDescriptor MAX_OUTSTANDING_REQUESTS
public static final PropertyDescriptor REQUEST_EXPIRATION
protected java.util.List<PropertyDescriptor> getSupportedPropertyDescriptors()
AbstractConfigurableComponent
getSupportedPropertyDescriptors
in class AbstractConfigurableComponent
@OnEnabled public void onConfigured(ConfigurationContext context)
@OnShutdown @OnDisabled public void cleanup()
public boolean register(java.lang.String identifier, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.AsyncContext context)
HttpContextMap
register
in interface HttpContextMap
identifier
- identifierrequest
- requestresponse
- responsecontext
- contextpublic javax.servlet.http.HttpServletResponse getResponse(java.lang.String identifier)
HttpContextMap
getResponse
in interface HttpContextMap
identifier
- identifiernull
if it does not existpublic void complete(java.lang.String identifier)
HttpContextMap
complete
in interface HttpContextMap
identifier
- identifier