Package com.helger.phase4.sender
Class AS4BidirectionalClientHelper
java.lang.Object
com.helger.phase4.sender.AS4BidirectionalClientHelper
Helper class to send and AS4 message and handle an incoming AS4 response.
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidsendAS4PullRequestAndReceiveAS4UserMessage(IAS4CryptoFactory aCryptoFactorySign, IAS4CryptoFactory aCryptoFactoryCrypt, IAS4PModeResolver aPModeResolver, IAS4IncomingAttachmentFactory aIAF, IAS4IncomingProfileSelector aIncomingProfileSelector, AS4ClientPullRequestMessage aClientPullRequest, Locale aLocale, String sURL, IAS4ClientBuildMessageCallback aBuildMessageCallback, IAS4OutgoingDumper aOutgoingDumper, IAS4IncomingDumper aIncomingDumper, IAS4IncomingSecurityConfiguration aIncomingSecurityConfiguration, IAS4IncomingReceiverConfiguration aIncomingReceiverConfiguration, IAS4RetryCallback aRetryCallback, IAS4RawResponseConsumer aResponseConsumer, IAS4UserMessageConsumer aUserMsgConsumer, IPMode aPMode) static voidsendAS4PullRequestAndReceiveAS4UserOrSignalMessage(IAS4CryptoFactory aCryptoFactorySign, IAS4CryptoFactory aCryptoFactoryCrypt, IAS4PModeResolver aPModeResolver, IAS4IncomingAttachmentFactory aIAF, IAS4IncomingProfileSelector aIncomingProfileSelector, AS4ClientPullRequestMessage aClientPullRequest, Locale aLocale, String sURL, IAS4ClientBuildMessageCallback aBuildMessageCallback, IAS4OutgoingDumper aOutgoingDumper, IAS4IncomingDumper aIncomingDumper, IAS4IncomingSecurityConfiguration aIncomingSecurityConfiguration, IAS4IncomingReceiverConfiguration aIncomingReceiverConfiguration, IAS4RetryCallback aRetryCallback, IAS4RawResponseConsumer aResponseConsumer, IAS4UserMessageConsumer aUserMsgConsumer, IAS4SignalMessageConsumer aSignalMsgConsumer, IAS4SignalMessageValidationResultHandler aSignalMsgValidationResultHandler, IPMode aPMode) static voidsendAS4UserMessageAndReceiveAS4SignalMessage(IAS4CryptoFactory aCryptoFactorySign, IAS4CryptoFactory aCryptoFactoryCrypt, IAS4PModeResolver aPModeResolver, IAS4IncomingAttachmentFactory aIAF, IAS4IncomingProfileSelector aIncomingProfileSelector, AS4ClientUserMessage aClientUserMsg, Locale aLocale, String sURL, IAS4ClientBuildMessageCallback aBuildMessageCallback, IAS4OutgoingDumper aOutgoingDumper, IAS4IncomingDumper aIncomingDumper, IAS4IncomingSecurityConfiguration aIncomingSecurityConfiguration, IAS4IncomingReceiverConfiguration aIncomingReceiverConfiguration, IAS4RetryCallback aRetryCallback, IAS4RawResponseConsumer aRawResponseConsumer, IAS4SignalMessageConsumer aSignalMsgConsumer, IAS4SignalMessageValidationResultHandler aSignalMsgValidationResultHandler)
-
Method Details
-
sendAS4UserMessageAndReceiveAS4SignalMessage
public static void sendAS4UserMessageAndReceiveAS4SignalMessage(@Nonnull IAS4CryptoFactory aCryptoFactorySign, @Nonnull IAS4CryptoFactory aCryptoFactoryCrypt, @Nonnull IAS4PModeResolver aPModeResolver, @Nonnull IAS4IncomingAttachmentFactory aIAF, @Nonnull IAS4IncomingProfileSelector aIncomingProfileSelector, @Nonnull AS4ClientUserMessage aClientUserMsg, @Nonnull Locale aLocale, @Nonnull String sURL, @Nullable IAS4ClientBuildMessageCallback aBuildMessageCallback, @Nullable IAS4OutgoingDumper aOutgoingDumper, @Nullable IAS4IncomingDumper aIncomingDumper, @Nonnull IAS4IncomingSecurityConfiguration aIncomingSecurityConfiguration, @Nonnull IAS4IncomingReceiverConfiguration aIncomingReceiverConfiguration, @Nullable IAS4RetryCallback aRetryCallback, @Nullable IAS4RawResponseConsumer aRawResponseConsumer, @Nullable IAS4SignalMessageConsumer aSignalMsgConsumer, @Nullable IAS4SignalMessageValidationResultHandler aSignalMsgValidationResultHandler) throws IOException, Phase4Exception, org.apache.wss4j.common.ext.WSSecurityException, jakarta.mail.MessagingException - Throws:
IOExceptionPhase4Exceptionorg.apache.wss4j.common.ext.WSSecurityExceptionjakarta.mail.MessagingException
-
sendAS4PullRequestAndReceiveAS4UserMessage
public static void sendAS4PullRequestAndReceiveAS4UserMessage(@Nonnull IAS4CryptoFactory aCryptoFactorySign, @Nonnull IAS4CryptoFactory aCryptoFactoryCrypt, @Nonnull IAS4PModeResolver aPModeResolver, @Nonnull IAS4IncomingAttachmentFactory aIAF, @Nonnull IAS4IncomingProfileSelector aIncomingProfileSelector, @Nonnull AS4ClientPullRequestMessage aClientPullRequest, @Nonnull Locale aLocale, @Nonnull String sURL, @Nullable IAS4ClientBuildMessageCallback aBuildMessageCallback, @Nullable IAS4OutgoingDumper aOutgoingDumper, @Nullable IAS4IncomingDumper aIncomingDumper, @Nonnull IAS4IncomingSecurityConfiguration aIncomingSecurityConfiguration, @Nonnull IAS4IncomingReceiverConfiguration aIncomingReceiverConfiguration, @Nullable IAS4RetryCallback aRetryCallback, @Nullable IAS4RawResponseConsumer aResponseConsumer, @Nullable IAS4UserMessageConsumer aUserMsgConsumer, @Nullable IPMode aPMode) throws IOException, Phase4Exception, org.apache.wss4j.common.ext.WSSecurityException, jakarta.mail.MessagingException - Throws:
IOExceptionPhase4Exceptionorg.apache.wss4j.common.ext.WSSecurityExceptionjakarta.mail.MessagingException
-
sendAS4PullRequestAndReceiveAS4UserOrSignalMessage
public static void sendAS4PullRequestAndReceiveAS4UserOrSignalMessage(@Nonnull IAS4CryptoFactory aCryptoFactorySign, @Nonnull IAS4CryptoFactory aCryptoFactoryCrypt, @Nonnull IAS4PModeResolver aPModeResolver, @Nonnull IAS4IncomingAttachmentFactory aIAF, @Nonnull IAS4IncomingProfileSelector aIncomingProfileSelector, @Nonnull AS4ClientPullRequestMessage aClientPullRequest, @Nonnull Locale aLocale, @Nonnull String sURL, @Nullable IAS4ClientBuildMessageCallback aBuildMessageCallback, @Nullable IAS4OutgoingDumper aOutgoingDumper, @Nullable IAS4IncomingDumper aIncomingDumper, @Nonnull IAS4IncomingSecurityConfiguration aIncomingSecurityConfiguration, @Nonnull IAS4IncomingReceiverConfiguration aIncomingReceiverConfiguration, @Nullable IAS4RetryCallback aRetryCallback, @Nullable IAS4RawResponseConsumer aResponseConsumer, @Nullable IAS4UserMessageConsumer aUserMsgConsumer, @Nullable IAS4SignalMessageConsumer aSignalMsgConsumer, @Nullable IAS4SignalMessageValidationResultHandler aSignalMsgValidationResultHandler, @Nullable IPMode aPMode) throws IOException, Phase4Exception, org.apache.wss4j.common.ext.WSSecurityException, jakarta.mail.MessagingException - Throws:
IOExceptionPhase4Exceptionorg.apache.wss4j.common.ext.WSSecurityExceptionjakarta.mail.MessagingException
-