Package org.apache.nifi.http
Class StandardHttpContextMap
java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.controller.AbstractControllerService
org.apache.nifi.http.StandardHttpContextMap
- All Implemented Interfaces:
ConfigurableComponent,ControllerService,HttpContextMap
@Tags({"http","request","response"})
@SeeAlso(classNames={"org.apache.nifi.processors.standard.HandleHttpRequest","org.apache.nifi.processors.standard.HandleHttpResponse"})
@CapabilityDescription("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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longprivate ScheduledExecutorServicestatic final PropertyDescriptorprivate longprivate intstatic final PropertyDescriptorprivate final ConcurrentMap<String, StandardHttpContextMap.Wrapper> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()voidlonggetRequestTimeout(TimeUnit timeUnit) javax.servlet.http.HttpServletResponsegetResponse(String identifier) protected List<PropertyDescriptor> voidonConfigured(ConfigurationContext context) booleanregister(String identifier, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.AsyncContext context) Methods inherited from class org.apache.nifi.controller.AbstractControllerService
abstractClearConfigContext, abstractStoreConfigContext, disabled, enabled, getConfigurationContext, getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, getProperty, getStateManager, init, initialize, isEnabledMethods inherited from class org.apache.nifi.components.AbstractConfigurableComponent
customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, toString, validateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.nifi.components.ConfigurableComponent
getIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateMethods inherited from interface org.apache.nifi.controller.ControllerService
initialize, isStateful, migrateProperties
-
Field Details
-
MAX_OUTSTANDING_REQUESTS
-
REQUEST_EXPIRATION
-
CLEANUP_MAX_DELAY_NANOS
private static final long CLEANUP_MAX_DELAY_NANOS- See Also:
-
wrapperMap
-
maxSize
private volatile int maxSize -
maxRequestNanos
private volatile long maxRequestNanos -
executor
-
-
Constructor Details
-
StandardHttpContextMap
public StandardHttpContextMap()
-
-
Method Details
-
getSupportedPropertyDescriptors
- Overrides:
getSupportedPropertyDescriptorsin classAbstractConfigurableComponent
-
onConfigured
-
cleanup
-
register
public boolean register(String identifier, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.AsyncContext context) - Specified by:
registerin interfaceHttpContextMap
-
getResponse
- Specified by:
getResponsein interfaceHttpContextMap
-
complete
- Specified by:
completein interfaceHttpContextMap
-
getRequestTimeout
- Specified by:
getRequestTimeoutin interfaceHttpContextMap
-