@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, isEnabledcustomValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, toString, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitinitializegetIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validatepublic static final PropertyDescriptor MAX_OUTSTANDING_REQUESTS
public static final PropertyDescriptor REQUEST_EXPIRATION
protected java.util.List<PropertyDescriptor> getSupportedPropertyDescriptors()
AbstractConfigurableComponentgetSupportedPropertyDescriptors 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)
HttpContextMapregister in interface HttpContextMapidentifier - identifierrequest - requestresponse - responsecontext - contextpublic javax.servlet.http.HttpServletResponse getResponse(java.lang.String identifier)
HttpContextMapgetResponse in interface HttpContextMapidentifier - identifiernull if it does not existpublic void complete(java.lang.String identifier)
HttpContextMapcomplete in interface HttpContextMapidentifier - identifier