@SupportsBatching @InputRequirement(value=INPUT_REQUIRED) @Tags(value={"http","https","remote","copy","archive"}) @CapabilityDescription(value="Performs an HTTP Post with the content of the FlowFile") public class PostHTTP extends AbstractProcessor
Modifier and Type | Class and Description |
---|---|
private static class |
PostHTTP.Config |
private static class |
PostHTTP.DestinationAccepts |
Constructor and Description |
---|
PostHTTP() |
Modifier and Type | Method and Description |
---|---|
private SSLContext |
createSSLContext(SSLContextService service) |
protected Collection<ValidationResult> |
customValidate(ValidationContext context) |
private String |
getBaseUrl(String url) |
private PostHTTP.Config |
getConfig(String url,
ProcessContext context) |
private PostHTTP.DestinationAccepts |
getDestinationAcceptance(boolean sendAsFlowFile,
org.apache.http.client.HttpClient client,
String uri,
ProcessorLog logger,
String transactionId) |
Set<Relationship> |
getRelationships() |
protected List<PropertyDescriptor> |
getSupportedPropertyDescriptors() |
protected void |
init(ProcessorInitializationContext context) |
void |
onScheduled(ProcessContext context) |
void |
onStopped() |
void |
onTrigger(ProcessContext context,
ProcessSession session) |
onTrigger
getControllerServiceLookup, getIdentifier, getLogger, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTrue
equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, validate
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validate
public static final String CONTENT_TYPE_HEADER
public static final String ACCEPT
public static final String ACCEPT_ENCODING
public static final String APPLICATION_FLOW_FILE_V1
public static final String APPLICATION_FLOW_FILE_V2
public static final String APPLICATION_FLOW_FILE_V3
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 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 PROXY_HOST
public static final PropertyDescriptor PROXY_PORT
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<PostHTTP.DestinationAccepts> acceptsRef
private final AtomicReference<StreamThrottler> throttlerRef
private final ConcurrentMap<String,PostHTTP.Config> configMap
protected void init(ProcessorInitializationContext context)
init
in class AbstractSessionFactoryProcessor
public Set<Relationship> getRelationships()
getRelationships
in interface Processor
getRelationships
in class AbstractSessionFactoryProcessor
protected List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors
in class AbstractConfigurableComponent
protected Collection<ValidationResult> customValidate(ValidationContext context)
customValidate
in class AbstractConfigurableComponent
@OnStopped public void onStopped()
@OnScheduled public void onScheduled(ProcessContext context)
private PostHTTP.Config getConfig(String url, ProcessContext context)
private SSLContext createSSLContext(SSLContextService service) throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException, KeyManagementException, UnrecoverableKeyException
public void onTrigger(ProcessContext context, ProcessSession session)
onTrigger
in class AbstractProcessor
private PostHTTP.DestinationAccepts getDestinationAcceptance(boolean sendAsFlowFile, org.apache.http.client.HttpClient client, String uri, ProcessorLog logger, String transactionId) throws IOException
IOException
Copyright © 2016 Apache NiFi Project. All rights reserved.