HandleHttpResponse 2.0.0

Bundle
org.apache.nifi | nifi-standard-nar
Description
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.
Tags
egress, http, https, response, web service
Input Requirement
REQUIRED
Supports Sensitive Dynamic Properties
false
  • Additional Details for HandleHttpResponse 2.0.0

    HandleHttpResponse

    Usage Description:

    The pairing of this Processor with a HandleHttpRequest Processor provides the ability to use NiFi to visually construct a web server that can carry out any functionality that is available through the existing Processors. For example, one could construct a Web-based front end to an SFTP Server by constructing a flow such as:

    HandleHttpRequest -> PutSFTP -> HandleHttpResponse

    This Processor must be configured with the same service as the corresponding HandleHttpRequest Processor. Otherwise, all FlowFiles will be routed to the ‘failure’ relationship.

Properties
Dynamic Properties
Relationships
Name Description
failure FlowFiles will be routed to this Relationship if the Processor is unable to respond to the requestor. This may happen, for instance, if the connection times out or if NiFi is restarted before responding to the HTTP Request.
success FlowFiles will be routed to this Relationship after the response has been successfully sent to the requestor
Reads Attributes
Name Description
http.context.identifier 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.'
http.request.uri Value of the URI requested by the client. Used for provenance event.
http.remote.host IP address of the client. Used for provenance event.
http.local.name IP address/hostname of the server. Used for provenance event.
http.server.port Listening port of the server. Used for provenance event.
http.subject.dn SSL distinguished name (if any). Used for provenance event.
See Also