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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.camel.component.as2.api.AS2MessageStructuregetAs2To()org.apache.camel.component.as2.api.AS2CompressionAlgorithmorg.apache.http.entity.ContentTypeorg.apache.camel.component.as2.api.AS2EncryptionAlgorithmgetFrom()String[]org.apache.camel.component.as2.api.AS2SignatureAlgorithmintvoidsetApiName(AS2ApiName apiName) What kind of operation to performvoidsetAs2From(String as2From) The value of the AS2From header of AS2 message.voidsetAs2MessageStructure(org.apache.camel.component.as2.api.AS2MessageStructure as2MessageStructure) The structure of AS2 Message.voidThe value of the AS2To header of AS2 message.voidsetAs2Version(String as2Version) The version of the AS2 protocol.voidsetAttachedFileName(String attachedFileName) The name of the attached filevoidsetClientFqdn(String clientFqdn) The Client Fully Qualified Domain Name (FQDN).voidsetCompressionAlgorithm(org.apache.camel.component.as2.api.AS2CompressionAlgorithm compressionAlgorithm) The algorithm used to compress EDI message.voidsetDecryptingPrivateKey(PrivateKey signingPrivateKey) The key used to encrypt the EDI message.voidsetDispositionNotificationTo(String dispositionNotificationTo) The value of the Disposition-Notification-To header.voidsetEdiMessageTransferEncoding(String ediMessageTransferEncoding) The transfer encoding of EDI message.voidsetEdiMessageType(org.apache.http.entity.ContentType ediMessageType) The content type of EDI message.voidsetEncryptingAlgorithm(org.apache.camel.component.as2.api.AS2EncryptionAlgorithm encryptingAlgorithm) The algorithm used to encrypt EDI message.voidsetEncryptingCertificateChain(Certificate[] signingCertificateChain) The chain of certificates used to encrypt EDI message.voidThe value of the From header of AS2 message.voidsetHostnameVerifier(HostnameVerifier hostnameVerifier) Set hostname verifier for SSL session.voidsetHttpConnectionPoolSize(Integer httpConnectionPoolSize) The maximum size of the connection pool for http connections (client only)voidsetHttpConnectionPoolTtl(Duration httpConnectionPoolTtl) The time to live for connections in the connection pool (client only)voidsetHttpConnectionTimeout(Duration httpConnectionTimeout) The timeout of the http connection (client only)voidsetHttpSocketTimeout(Duration httpSocketTimeout) The timeout of the underlying http socket (client only)voidsetMdnMessageTemplate(String mdnMessageTemplate) The template used to format MDN messagevoidsetMethodName(String methodName) What sub operation to use for the selected operationvoidsetRequestUri(String requestUri) The request URI of EDI message.voidThe value included in the Server message header identifying the AS2 Server.voidsetServerFqdn(String serverFqdn) The Server Fully Qualified Domain Name (FQDN).voidsetServerPortNumber(Integer serverPortNumber) The port number of server.voidsetSignedReceiptMicAlgorithms(String[] signedReceiptMicAlgorithms) The list of algorithms, in order of preference, requested to generate a message integrity check (MIC) returned in message dispostion notification (MDN)voidsetSigningAlgorithm(org.apache.camel.component.as2.api.AS2SignatureAlgorithm signingAlgorithm) The algorithm used to sign EDI message.voidsetSigningCertificateChain(Certificate[] signingCertificateChain) The chain of certificates used to sign EDI message.voidsetSigningPrivateKey(PrivateKey signingPrivateKey) The key used to sign the EDI message.voidsetSslContext(SSLContext sslContext) Set SSL context for connection to remote server.voidsetSubject(String subject) The value of Subject header of AS2 message.voidsetTargetHostname(String targetHostname) The host name (IP or DNS name) of target host.voidsetTargetPortNumber(Integer targetPortNumber) The port number of target host.voidsetUserAgent(String userAgent) The value included in the User-Agent message header identifying the AS2 user agent.voidsetValidateSigningCertificateChain(Certificate[] validateSigningCertificateChain) Certificates to validate the message's 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, application/xml -
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
Certificates to validate the message's signature against. If not supplied, validation will not take place. Server: validates the received message. Client: not yet implemented, should validate the MDN -
getSslContext
-
setSslContext
Set SSL context for connection to remote server.- Parameters:
sslContext-
-
getHostnameVerifier
-
setHostnameVerifier
Set hostname verifier for SSL session.- Parameters:
hostnameVerifier-
-