Package org.apache.camel.component.as2
Class AS2Configuration
java.lang.Object
org.apache.camel.component.as2.AS2Configuration
- Direct Known Subclasses:
AS2ClientManagerEndpointConfiguration
,AS2ServerManagerEndpointConfiguration
Component configuration for AS2 component.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.camel.component.as2.api.AS2MessageStructure
getAs2To()
org.apache.camel.component.as2.api.AS2CompressionAlgorithm
org.apache.http.entity.ContentType
org.apache.camel.component.as2.api.AS2EncryptionAlgorithm
getFrom()
String[]
org.apache.camel.component.as2.api.AS2SignatureAlgorithm
int
void
setApiName
(AS2ApiName apiName) What kind of operation to performvoid
setAs2From
(String as2From) The value of the AS2From header of AS2 message.void
setAs2MessageStructure
(org.apache.camel.component.as2.api.AS2MessageStructure as2MessageStructure) The structure of AS2 Message.void
The value of the AS2To header of AS2 message.void
setAs2Version
(String as2Version) The version of the AS2 protocol.void
setAttachedFileName
(String attachedFileName) The name of the attached filevoid
setClientFqdn
(String clientFqdn) The Client Fully Qualified Domain Name (FQDN).void
setCompressionAlgorithm
(org.apache.camel.component.as2.api.AS2CompressionAlgorithm compressionAlgorithm) The algorithm used to compress EDI message.void
setDecryptingPrivateKey
(PrivateKey signingPrivateKey) The key used to encrypt the EDI message.void
setDispositionNotificationTo
(String dispositionNotificationTo) The value of the Disposition-Notification-To header.void
setEdiMessageTransferEncoding
(String ediMessageTransferEncoding) The transfer encoding of EDI message.void
setEdiMessageType
(org.apache.http.entity.ContentType ediMessageType) The content type of EDI message.void
setEncryptingAlgorithm
(org.apache.camel.component.as2.api.AS2EncryptionAlgorithm encryptingAlgorithm) The algorithm used to encrypt EDI message.void
setEncryptingCertificateChain
(Certificate[] signingCertificateChain) The chain of certificates used to encrypt EDI message.void
The value of the From header of AS2 message.void
setHttpConnectionPoolSize
(Integer httpConnectionPoolSize) The maximum size of the connection pool for http connections (client only)void
setHttpConnectionPoolTtl
(Duration httpConnectionPoolTtl) The time to live for connections in the connection pool (client only)void
setHttpConnectionTimeout
(Duration httpConnectionTimeout) The timeout of the http connection (client only)void
setHttpSocketTimeout
(Duration httpSocketTimeout) The timeout of the underlying http socket (client only)void
setMdnMessageTemplate
(String mdnMessageTemplate) The template used to format MDN messagevoid
setMethodName
(String methodName) What sub operation to use for the selected operationvoid
setRequestUri
(String requestUri) The request URI of EDI message.void
The value included in the Server message header identifying the AS2 Server.void
setServerFqdn
(String serverFqdn) The Server Fully Qualified Domain Name (FQDN).void
setServerPortNumber
(Integer serverPortNumber) The port number of server.void
setSignedReceiptMicAlgorithms
(String[] signedReceiptMicAlgorithms) The list of algorithms, in order of preference, requested to generate a message integrity check (MIC) returned in message dispostion notification (MDN)void
setSigningAlgorithm
(org.apache.camel.component.as2.api.AS2SignatureAlgorithm signingAlgorithm) The algorithm used to sign EDI message.void
setSigningCertificateChain
(Certificate[] signingCertificateChain) The chain of certificates used to sign EDI message.void
setSigningPrivateKey
(PrivateKey signingPrivateKey) The key used to sign the EDI message.void
setSubject
(String subject) The value of Subject header of AS2 message.void
setTargetHostname
(String targetHostname) The host name (IP or DNS name) of target host.void
setTargetPortNumber
(Integer targetPortNumber) The port number of target host.void
setUserAgent
(String userAgent) The value included in the User-Agent message header identifying the AS2 user agent.void
setValidateSigningCertificateChain
(Certificate[] validateSigningCertificateChain) Certifiates to validate the messages signature against.
-
Constructor Details
-
AS2Configuration
public AS2Configuration()
-
-
Method Details
-
getApiName
-
setApiName
What kind of operation to perform -
getMethodName
-
setMethodName
What sub operation to use for the selected operation -
getAs2Version
-
setAs2Version
The version of the AS2 protocol. -
getUserAgent
-
setUserAgent
The value included in the User-Agent message header identifying the AS2 user agent. -
getServer
-
setServer
The value included in the Server message header identifying the AS2 Server. -
getServerFqdn
-
setServerFqdn
The Server Fully Qualified Domain Name (FQDN). Used in message ids sent by endpoint. -
getTargetHostname
-
setTargetHostname
The host name (IP or DNS name) of target host. -
getTargetPortNumber
public int getTargetPortNumber() -
setTargetPortNumber
The port number of target host. -1 indicates the scheme default port. -
getClientFqdn
-
setClientFqdn
The Client Fully Qualified Domain Name (FQDN). Used in message ids sent by endpoint. -
getServerPortNumber
-
setServerPortNumber
The port number of server. -
getRequestUri
-
setRequestUri
The request URI of EDI message. -
getEdiMessageType
public org.apache.http.entity.ContentType getEdiMessageType() -
setEdiMessageType
public void setEdiMessageType(org.apache.http.entity.ContentType ediMessageType) The content type of EDI message. One of application/edifact, application/edi-x12, application/edi-consent -
getEdiMessageTransferEncoding
-
setEdiMessageTransferEncoding
The transfer encoding of EDI message. -
getAs2MessageStructure
public org.apache.camel.component.as2.api.AS2MessageStructure getAs2MessageStructure() -
setAs2MessageStructure
public void setAs2MessageStructure(org.apache.camel.component.as2.api.AS2MessageStructure as2MessageStructure) The structure of AS2 Message. One of: PLAIN - No encryption, no signature, SIGNED - No encryption, signature, ENCRYPTED - Encryption, no signature, ENCRYPTED_SIGNED - Encryption, signature -
getSubject
-
setSubject
The value of Subject header of AS2 message. -
getFrom
-
setFrom
The value of the From header of AS2 message. -
getAs2From
-
setAs2From
The value of the AS2From header of AS2 message. -
getAs2To
-
setAs2To
The value of the AS2To header of AS2 message. -
getSigningAlgorithm
public org.apache.camel.component.as2.api.AS2SignatureAlgorithm getSigningAlgorithm() -
setSigningAlgorithm
public void setSigningAlgorithm(org.apache.camel.component.as2.api.AS2SignatureAlgorithm signingAlgorithm) The algorithm used to sign EDI message. -
getSigningCertificateChain
-
setSigningCertificateChain
The chain of certificates used to sign EDI message. -
getSigningPrivateKey
-
setSigningPrivateKey
The key used to sign the EDI message. -
getCompressionAlgorithm
public org.apache.camel.component.as2.api.AS2CompressionAlgorithm getCompressionAlgorithm() -
setCompressionAlgorithm
public void setCompressionAlgorithm(org.apache.camel.component.as2.api.AS2CompressionAlgorithm compressionAlgorithm) The algorithm used to compress EDI message. -
getDispositionNotificationTo
-
setDispositionNotificationTo
The value of the Disposition-Notification-To header. Assigning a value to this parameter requests a message disposition notification (MDN) for the AS2 message. -
getSignedReceiptMicAlgorithms
-
setSignedReceiptMicAlgorithms
The list of algorithms, in order of preference, requested to generate a message integrity check (MIC) returned in message dispostion notification (MDN) -
getEncryptingAlgorithm
public org.apache.camel.component.as2.api.AS2EncryptionAlgorithm getEncryptingAlgorithm() -
setEncryptingAlgorithm
public void setEncryptingAlgorithm(org.apache.camel.component.as2.api.AS2EncryptionAlgorithm encryptingAlgorithm) The algorithm used to encrypt EDI message. -
getEncryptingCertificateChain
-
setEncryptingCertificateChain
The chain of certificates used to encrypt EDI message. -
getDecryptingPrivateKey
-
setDecryptingPrivateKey
The key used to encrypt the EDI message. -
getMdnMessageTemplate
-
setMdnMessageTemplate
The template used to format MDN message -
getAttachedFileName
-
setAttachedFileName
The name of the attached file -
getHttpSocketTimeout
-
setHttpSocketTimeout
The timeout of the underlying http socket (client only) -
getHttpConnectionTimeout
-
setHttpConnectionTimeout
The timeout of the http connection (client only) -
getHttpConnectionPoolSize
-
setHttpConnectionPoolSize
The maximum size of the connection pool for http connections (client only) -
getHttpConnectionPoolTtl
-
setHttpConnectionPoolTtl
The time to live for connections in the connection pool (client only) -
getValidateSigningCertificateChain
-
setValidateSigningCertificateChain
Certifiates to validate the messages signature against. If not supplied, validation will not take place. Server: validates the received message. Client: not yet implemented, should validate the MDN
-