@Deprecated @DeprecationNotice(alternatives=InvokeHTTP.class, reason="This processor is deprecated and may be removed in future releases.") @SupportsBatching @InputRequirement(value=INPUT_REQUIRED) @Tags(value={"http","https","remote","copy","archive"}) @CapabilityDescription(value="Please be aware this processor is deprecated and may be removed in the near future. Use InvokeHTTP instead. Performs an HTTP Post with the content of the FlowFile. Uses a connection pool with max number of connections equal to the number of possible endpoints multiplied by the Concurrent Tasks configuration.") public class PostHTTP extends AbstractProcessor
| Modifier and Type | Class and Description |
|---|---|
private static class |
PostHTTP.DestinationAccepts
Deprecated.
|
| Constructor and Description |
|---|
PostHTTP()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected Collection<ValidationResult> |
customValidate(ValidationContext context)
Deprecated.
|
private String |
getBaseUrl(String url)
Deprecated.
|
private PostHTTP.DestinationAccepts |
getDestinationAcceptance(boolean sendAsFlowFile,
String uri,
String transactionId,
org.apache.http.protocol.HttpContext httpContext)
Deprecated.
|
Set<Relationship> |
getRelationships()
Deprecated.
|
protected List<PropertyDescriptor> |
getSupportedPropertyDescriptors()
Deprecated.
|
protected void |
init(ProcessorInitializationContext context)
Deprecated.
|
void |
onScheduled(ProcessContext context)
Deprecated.
|
void |
onStopped()
Deprecated.
|
void |
onTrigger(ProcessContext context,
ProcessSession session)
Deprecated.
|
onTriggergetControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTrueequals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitisStatefulgetPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validatepublic static final String CONTENT_TYPE_HEADER
public static final String ACCEPT
public static final String ACCEPT_ENCODING
public static final String DEFAULT_CONTENT_TYPE
public static final String FLOWFILE_CONFIRMATION_HEADER
public static final String LOCATION_HEADER_NAME
public static final String LOCATION_URI_INTENT_NAME
public static final String LOCATION_URI_INTENT_VALUE
public static final String GZIPPED_HEADER
public static final String CONTENT_ENCODING_HEADER
public static final String CONTENT_ENCODING_GZIP_VALUE
public static final String PROTOCOL_VERSION_HEADER
public static final String TRANSACTION_ID_HEADER
public static final String PROTOCOL_VERSION
public static final String REMOTE_DN
private static final String FLOW_FILE_CONNECTION_LOG
public static final PropertyDescriptor URL
public static final PropertyDescriptor SEND_AS_FLOWFILE
public static final PropertyDescriptor CONNECTION_TIMEOUT
public static final PropertyDescriptor DATA_TIMEOUT
public static final PropertyDescriptor USERNAME
public static final PropertyDescriptor PASSWORD
public static final PropertyDescriptor USER_AGENT
public static final PropertyDescriptor COMPRESSION_LEVEL
public static final PropertyDescriptor ATTRIBUTES_AS_HEADERS_REGEX
public static final PropertyDescriptor MAX_DATA_RATE
public static final PropertyDescriptor MAX_BATCH_SIZE
public static final PropertyDescriptor CHUNKED_ENCODING
public static final PropertyDescriptor SSL_CONTEXT_SERVICE
public static final PropertyDescriptor CONTENT_TYPE
public static final Relationship REL_SUCCESS
public static final Relationship REL_FAILURE
private Set<Relationship> relationships
private List<PropertyDescriptor> properties
private final AtomicReference<StreamThrottler> throttlerRef
private final ConcurrentMap<String,PostHTTP.DestinationAccepts> destinationAcceptsMap
private volatile org.apache.http.impl.conn.PoolingHttpClientConnectionManager connManager
private volatile org.apache.http.impl.client.CloseableHttpClient client
private volatile org.apache.http.client.config.RequestConfig requestConfig
private volatile Principal principal
protected void init(ProcessorInitializationContext context)
init in class AbstractSessionFactoryProcessorpublic Set<Relationship> getRelationships()
getRelationships in interface ProcessorgetRelationships in class AbstractSessionFactoryProcessorprotected List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors in class AbstractConfigurableComponentprotected Collection<ValidationResult> customValidate(ValidationContext context)
customValidate in class AbstractConfigurableComponent@OnStopped public void onStopped()
@OnScheduled public void onScheduled(ProcessContext context)
public void onTrigger(ProcessContext context, ProcessSession session)
onTrigger in class AbstractProcessorprivate PostHTTP.DestinationAccepts getDestinationAcceptance(boolean sendAsFlowFile, String uri, String transactionId, org.apache.http.protocol.HttpContext httpContext) throws IOException
IOExceptionCopyright © 2023 Apache NiFi Project. All rights reserved.