@InputRequirement(value=INPUT_REQUIRED) @Tags(value={"http","https","response","egress","web service"}) @CapabilityDescription(value="Sends an HTTP Response to the Requestor that generated a FlowFile. This Processor is designed to be used in conjunction with the HandleHttpRequest in order to create a web service.") @DynamicProperty(name="An HTTP header name", value="An HTTP header value", description="These HTTPHeaders are set in the HTTP Response", expressionLanguageScope=FLOWFILE_ATTRIBUTES) @ReadsAttribute(attribute="http.context.identifier",description="The value of this attribute is used to lookup the HTTP Response so that the proper message can be sent back to the requestor. If this attribute is missing, the FlowFile will be routed to \'failure.\'") @ReadsAttribute(attribute="http.request.uri",description="Value of the URI requested by the client. Used for provenance event.") @ReadsAttribute(attribute="http.remote.host",description="IP address of the client. Used for provenance event.") @ReadsAttribute(attribute="http.local.name",description="IP address/hostname of the server. Used for provenance event.") @ReadsAttribute(attribute="http.server.port",description="Listening port of the server. Used for provenance event.") @ReadsAttribute(attribute="http.subject.dn",description="SSL distinguished name (if any). Used for provenance event.") @SeeAlso(value=HandleHttpRequest.class, classNames="org.apache.nifi.http.StandardHttpContextMap") public class HandleHttpResponse extends AbstractProcessor
Modifier and Type | Field and Description |
---|---|
static PropertyDescriptor |
ATTRIBUTES_AS_HEADERS_REGEX |
static PropertyDescriptor |
HTTP_CONTEXT_MAP |
static Relationship |
REL_FAILURE |
static Relationship |
REL_SUCCESS |
static PropertyDescriptor |
STATUS_CODE |
Constructor and Description |
---|
HandleHttpResponse() |
Modifier and Type | Method and Description |
---|---|
Set<Relationship> |
getRelationships() |
protected PropertyDescriptor |
getSupportedDynamicPropertyDescriptor(String propertyDescriptorName) |
List<PropertyDescriptor> |
getSupportedPropertyDescriptors() |
private static boolean |
isNumber(String value) |
void |
onTrigger(ProcessContext context,
ProcessSession session) |
onTrigger
getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, init, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTrue
customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, hashCode, onPropertyModified, validate
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isStateful
getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validate
public static final PropertyDescriptor STATUS_CODE
public static final PropertyDescriptor HTTP_CONTEXT_MAP
public static final PropertyDescriptor ATTRIBUTES_AS_HEADERS_REGEX
public static final Relationship REL_SUCCESS
public static final Relationship REL_FAILURE
public final List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors
in class AbstractConfigurableComponent
public Set<Relationship> getRelationships()
getRelationships
in interface Processor
getRelationships
in class AbstractSessionFactoryProcessor
protected PropertyDescriptor getSupportedDynamicPropertyDescriptor(String propertyDescriptorName)
getSupportedDynamicPropertyDescriptor
in class AbstractConfigurableComponent
public void onTrigger(ProcessContext context, ProcessSession session) throws ProcessException
onTrigger
in class AbstractProcessor
ProcessException
private static boolean isNumber(String value)
Copyright © 2024 Apache NiFi Project. All rights reserved.