Class AS2ClientManager
java.lang.Object
org.apache.camel.component.as2.api.AS2ClientManager
Sends EDI Messages over HTTP
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe HTTP Context Attribute containing the AS2 Connection used to send request message.static final StringThe HTTP Context Attribute containing the AS2 System Identifier of the sending systemstatic final StringThe HTTP Context Attribute indicating the AS2 message structure to be sent.static final StringThe HTTP Context Attribute containing the AS2 System Identifier of the receiving systemstatic final StringPrefix for all AS2 HTTP Context Attributes used by the AS2 Client Manager.static final StringThe HTTP Context Attribute containing the algorithm used to compress EDI messagestatic final StringThe HTTP Context Attribute containing the internet e-mail address of sending system requesting a message disposition notification.static final StringThe HTTP Context Attribute indicating the EDI message content type to be sent.static final StringThe HTTP Context Attribute indicating the EDI message transfer encoding to be sent.static final StringThe HTTP Context Attribute containing the algorithm name used to encrypt EDI messagestatic final StringThe HTTP Context Attribute containing the certificate used to encrypt EDI messagestatic final StringThe HTTP Context Attribute containing the internet e-mail address of sending systemstatic final StringThe HTTP Context Attribute containing the HTTP request message transporting the EDI messagestatic final StringThe HTTP Context Attribute containing the HTTP response message transporting the EDI messagestatic final Stringstatic final StringThe HTTP Context Attribute containing the request URI identifying the process on the receiving system responsible for unpacking and handling of message data and generating a reply for the sending system that contains a Message Disposition Acknowledgement (MDN)static final StringThe HTTP Context Attribute containing the list of names of the requested MIC algorithms to be used by the receiving system to construct a message disposition notification.static final StringThe HTTP Context Attribute containing the algorithm used to sign EDI messagestatic final StringThe HTTP Context Attribute containing the certificate chain used to sign EDI messagestatic final StringThe HTTP Context Attribute containing the private key used to sign EDI messagestatic final StringThe HTTP Context Attribute containing the subject header sent in an AS2 message. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.operator.OutputCompressorcreateCompressor(org.apache.hc.core5.http.protocol.HttpCoreContext httpContext) org.bouncycastle.cms.CMSCompressedDataGeneratororg.bouncycastle.cms.CMSEnvelopedDataGeneratorcreateEncryptingGenerator(org.apache.hc.core5.http.protocol.HttpCoreContext httpContext) org.bouncycastle.operator.OutputEncryptorcreateEncryptor(org.apache.hc.core5.http.protocol.HttpCoreContext httpContext) createSigningGenerator(org.apache.hc.core5.http.protocol.HttpCoreContext httpContext) org.apache.hc.core5.http.protocol.HttpCoreContextsend(Object ediMessage, String requestUri, String subject, String from, String as2From, String as2To, AS2MessageStructure as2MessageStructure, org.apache.hc.core5.http.ContentType ediMessageContentType, String ediMessageTransferEncoding, AS2SignatureAlgorithm signingAlgorithm, Certificate[] signingCertificateChain, PrivateKey signingPrivateKey, AS2CompressionAlgorithm compressionAlgorithm, String dispositionNotificationTo, String[] signedReceiptMicAlgorithms, AS2EncryptionAlgorithm encryptingAlgorithm, Certificate[] encryptingCertificateChain, String attachedFileName, String receiptDeliveryOption) SendediMessageto trading partner.
-
Field Details
-
CAMEL_AS2_CLIENT_PREFIX
Prefix for all AS2 HTTP Context Attributes used by the AS2 Client Manager.- See Also:
-
AS2_MESSAGE_STRUCTURE
The HTTP Context Attribute indicating the AS2 message structure to be sent.- See Also:
-
EDI_MESSAGE_CONTENT_TYPE
The HTTP Context Attribute indicating the EDI message content type to be sent.- See Also:
-
EDI_MESSAGE_TRANSFER_ENCODING
The HTTP Context Attribute indicating the EDI message transfer encoding to be sent.- See Also:
-
HTTP_REQUEST
The HTTP Context Attribute containing the HTTP request message transporting the EDI message- See Also:
-
HTTP_RESPONSE
The HTTP Context Attribute containing the HTTP response message transporting the EDI message- See Also:
-
AS2_CONNECTION
The HTTP Context Attribute containing the AS2 Connection used to send request message.- See Also:
-
REQUEST_URI
The HTTP Context Attribute containing the request URI identifying the process on the receiving system responsible for unpacking and handling of message data and generating a reply for the sending system that contains a Message Disposition Acknowledgement (MDN)- See Also:
-
SUBJECT
The HTTP Context Attribute containing the subject header sent in an AS2 message.- See Also:
-
FROM
The HTTP Context Attribute containing the internet e-mail address of sending system- See Also:
-
AS2_FROM
The HTTP Context Attribute containing the AS2 System Identifier of the sending system- See Also:
-
AS2_TO
The HTTP Context Attribute containing the AS2 System Identifier of the receiving system- See Also:
-
SIGNING_ALGORITHM
The HTTP Context Attribute containing the algorithm used to sign EDI message- See Also:
-
SIGNING_CERTIFICATE_CHAIN
The HTTP Context Attribute containing the certificate chain used to sign EDI message- See Also:
-
SIGNING_PRIVATE_KEY
The HTTP Context Attribute containing the private key used to sign EDI message- See Also:
-
ENCRYPTING_ALGORITHM
The HTTP Context Attribute containing the algorithm name used to encrypt EDI message- See Also:
-
ENCRYPTING_CERTIFICATE_CHAIN
The HTTP Context Attribute containing the certificate used to encrypt EDI message- See Also:
-
COMPRESSION_ALGORITHM
The HTTP Context Attribute containing the algorithm used to compress EDI message- See Also:
-
DISPOSITION_NOTIFICATION_TO
The HTTP Context Attribute containing the internet e-mail address of sending system requesting a message disposition notification.- See Also:
-
SIGNED_RECEIPT_MIC_ALGORITHMS
The HTTP Context Attribute containing the list of names of the requested MIC algorithms to be used by the receiving system to construct a message disposition notification.- See Also:
-
RECEIPT_DELIVERY_OPTION
- See Also:
-
-
Constructor Details
-
AS2ClientManager
-
-
Method Details
-
send
public org.apache.hc.core5.http.protocol.HttpCoreContext send(Object ediMessage, String requestUri, String subject, String from, String as2From, String as2To, AS2MessageStructure as2MessageStructure, org.apache.hc.core5.http.ContentType ediMessageContentType, String ediMessageTransferEncoding, AS2SignatureAlgorithm signingAlgorithm, Certificate[] signingCertificateChain, PrivateKey signingPrivateKey, AS2CompressionAlgorithm compressionAlgorithm, String dispositionNotificationTo, String[] signedReceiptMicAlgorithms, AS2EncryptionAlgorithm encryptingAlgorithm, Certificate[] encryptingCertificateChain, String attachedFileName, String receiptDeliveryOption) throws org.apache.hc.core5.http.HttpException SendediMessageto trading partner.- Parameters:
ediMessage- - EDI message to transportrequestUri- - resource location to deliver messagesubject- - message subjectfrom- - RFC2822 address of senderas2From- - AS2 name of senderas2To- - AS2 name of recipientas2MessageStructure- - the structure of AS2 to send; seeAS2MessageStructureediMessageContentType- - the content type of EDI messageediMessageTransferEncoding- - the transfer encoding used to transport EDI messagesigningAlgorithm- - the algorithm used to sign the message ornullif sending EDI message unsignedsigningCertificateChain- - the chain of certificates used to sign the message ornullif sending EDI message unsignedsigningPrivateKey- - the private key used to sign EDI messagecompressionAlgorithm- - the algorithm used to compress the message ornullif sending EDI message uncompresseddispositionNotificationTo- - an RFC2822 address to request a receipt ornullif no receipt requestedsignedReceiptMicAlgorithms- - the senders list of signing algorithms for signing receipt, in preferred order, ornullif requesting an unsigned receipt.encryptingAlgorithm- - the algorithm used to encrypt the message ornullif sending EDI message unencryptedencryptingCertificateChain- - the chain of certificates used to encrypt the message ornullif sending EDI message unencryptedattachedFileName- - the name of the attached file ornullif user doesn't want to specify it- Returns:
HttpCoreContextcontaining request and response used to send EDI message- Throws:
org.apache.hc.core5.http.HttpException- when things go wrong.
-
createSigningGenerator
public AS2SignedDataGenerator createSigningGenerator(org.apache.hc.core5.http.protocol.HttpCoreContext httpContext) throws org.apache.hc.core5.http.HttpException - Throws:
org.apache.hc.core5.http.HttpException
-
createEncryptingGenerator
public org.bouncycastle.cms.CMSEnvelopedDataGenerator createEncryptingGenerator(org.apache.hc.core5.http.protocol.HttpCoreContext httpContext) throws org.apache.hc.core5.http.HttpException - Throws:
org.apache.hc.core5.http.HttpException
-
createCompressorGenerator
public org.bouncycastle.cms.CMSCompressedDataGenerator createCompressorGenerator() -
createEncryptor
public org.bouncycastle.operator.OutputEncryptor createEncryptor(org.apache.hc.core5.http.protocol.HttpCoreContext httpContext) throws org.apache.hc.core5.http.HttpException - Throws:
org.apache.hc.core5.http.HttpException
-
createCompressor
public org.bouncycastle.operator.OutputCompressor createCompressor(org.apache.hc.core5.http.protocol.HttpCoreContext httpContext) throws org.apache.hc.core5.http.HttpException - Throws:
org.apache.hc.core5.http.HttpException
-