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, IPModeResolver aPModeResolver, IAS4IncomingAttachmentFactory aIAF, IAS4IncomingProfileSelector aIncomingProfileSelector, AS4ClientPullRequestMessage aClientPullRequest, Locale aLocale, String sURL, IAS4ClientBuildMessageCallback aBuildMessageCallback, IAS4OutgoingDumper aOutgoingDumper, IAS4IncomingDumper aIncomingDumper, IAS4IncomingSecurityConfiguration aIncomingSecurityConfiguration, IAS4RetryCallback aRetryCallback, IAS4RawResponseConsumer aResponseConsumer, IAS4UserMessageConsumer aUserMsgConsumer) static voidsendAS4UserMessageAndReceiveAS4SignalMessage(IAS4CryptoFactory aCryptoFactorySign, IAS4CryptoFactory aCryptoFactoryCrypt, IPModeResolver aPModeResolver, IAS4IncomingAttachmentFactory aIAF, IAS4IncomingProfileSelector aIncomingProfileSelector, AS4ClientUserMessage aClientUserMsg, Locale aLocale, String sURL, IAS4ClientBuildMessageCallback aBuildMessageCallback, IAS4OutgoingDumper aOutgoingDumper, IAS4IncomingDumper aIncomingDumper, IAS4IncomingSecurityConfiguration aIncomingSecurityConfiguration, IAS4RetryCallback aRetryCallback, IAS4RawResponseConsumer aRawResponseConsumer, IAS4SignalMessageConsumer aSignalMsgConsumer)
-
Method Details
-
sendAS4UserMessageAndReceiveAS4SignalMessage
public static void sendAS4UserMessageAndReceiveAS4SignalMessage(@Nonnull IAS4CryptoFactory aCryptoFactorySign, @Nonnull IAS4CryptoFactory aCryptoFactoryCrypt, @Nonnull IPModeResolver 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, @Nullable IAS4RetryCallback aRetryCallback, @Nullable IAS4RawResponseConsumer aRawResponseConsumer, @Nullable IAS4SignalMessageConsumer aSignalMsgConsumer) 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 IPModeResolver 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, @Nullable IAS4RetryCallback aRetryCallback, @Nullable IAS4RawResponseConsumer aResponseConsumer, @Nullable IAS4UserMessageConsumer aUserMsgConsumer) throws IOException, Phase4Exception, org.apache.wss4j.common.ext.WSSecurityException, jakarta.mail.MessagingException - Throws:
IOExceptionPhase4Exceptionorg.apache.wss4j.common.ext.WSSecurityExceptionjakarta.mail.MessagingException
-