Package com.helger.phase4.incoming
Class AS4IncomingHandler
java.lang.Object
com.helger.phase4.incoming.AS4IncomingHandler
Utility methods for incoming AS4 messages.
- Since:
- v0.9.7
- Author:
- Philip Helger
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceCallback interface for handling the parsing result. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidparseAS4Message(IAS4IncomingAttachmentFactory aIAF, AS4ResourceHelper aResHelper, IAS4IncomingMessageMetadata aIncomingMessageMetadata, InputStream aPayloadIS, com.helger.commons.http.HttpHeaderMap aHttpHeaders, AS4IncomingHandler.IAS4ParsedMessageCallback aCallback, IAS4IncomingDumper aIncomingDumper) static Ebms3SignalMessageparseSignalMessage(IAS4CryptoFactory aCryptoFactorySign, IAS4CryptoFactory aCryptoFactoryCrypt, IAS4PModeResolver aPModeResolver, IAS4IncomingAttachmentFactory aIAF, IAS4IncomingProfileSelector aAS4ProfileSelector, AS4ResourceHelper aResHelper, IPMode aSendingPMode, Locale aLocale, IAS4IncomingMessageMetadata aIncomingMessageMetadata, org.apache.hc.core5.http.HttpResponse aHttpResponse, byte[] aMessagePayload, IAS4IncomingDumper aIncomingDumper, IAS4IncomingSecurityConfiguration aIncomingSecurityConfiguration, IAS4IncomingReceiverConfiguration aIncomingReceiverConfiguration, IAS4SignalMessageConsumer aSignalMsgConsumer) static Ebms3UserMessageparseUserMessage(IAS4CryptoFactory aCryptoFactorySign, IAS4CryptoFactory aCryptoFactoryCrypt, IAS4PModeResolver aPModeResolver, IAS4IncomingAttachmentFactory aIAF, IAS4IncomingProfileSelector aAS4ProfileSelector, AS4ResourceHelper aResHelper, IPMode aSendingPMode, Locale aLocale, IAS4IncomingMessageMetadata aIncomingMessageMetadata, org.apache.hc.core5.http.HttpResponse aHttpResponse, byte[] aMessagePayload, IAS4IncomingDumper aIncomingDumper, IAS4IncomingSecurityConfiguration aIncomingSecurityConfiguration, IAS4IncomingReceiverConfiguration aIncomingReceiverConfiguration, IAS4UserMessageConsumer aUserMsgConsumer) static com.helger.commons.state.ESuccessparseUserOrSignalMessage(IAS4CryptoFactory aCryptoFactorySign, IAS4CryptoFactory aCryptoFactoryCrypt, IAS4PModeResolver aPModeResolver, IAS4IncomingAttachmentFactory aIAF, IAS4IncomingProfileSelector aAS4ProfileSelector, AS4ResourceHelper aResHelper, IPMode aSendingPMode, Locale aLocale, IAS4IncomingMessageMetadata aIncomingMessageMetadata, org.apache.hc.core5.http.HttpResponse aHttpResponse, byte[] aMessagePayload, IAS4IncomingDumper aIncomingDumper, IAS4IncomingSecurityConfiguration aIncomingSecurityConfiguration, IAS4IncomingReceiverConfiguration aIncomingReceiverConfiguration, IAS4UserMessageConsumer aUserMsgConsumer, IAS4SignalMessageConsumer aSignalMsgConsumer) static IAS4IncomingMessageStateprocessEbmsMessage(AS4ResourceHelper aResHelper, Locale aLocale, SoapHeaderElementProcessorRegistry aRegistry, com.helger.commons.http.HttpHeaderMap aHttpHeaders, Document aSoapDocument, ESoapVersion eSoapVersion, com.helger.commons.collection.impl.ICommonsList<WSS4JAttachment> aIncomingAttachments, IAS4IncomingProfileSelector aAS4ProfileSelector, com.helger.commons.collection.impl.ICommonsList<Ebms3Error> aEbmsErrorMessagesTarget, IAS4IncomingMessageMetadata aMessageMetadata)
-
Method Details
-
parseAS4Message
public static void parseAS4Message(@Nonnull IAS4IncomingAttachmentFactory aIAF, @Nonnull @WillNotClose AS4ResourceHelper aResHelper, @Nonnull IAS4IncomingMessageMetadata aIncomingMessageMetadata, @Nonnull @WillClose InputStream aPayloadIS, @Nonnull com.helger.commons.http.HttpHeaderMap aHttpHeaders, @Nonnull AS4IncomingHandler.IAS4ParsedMessageCallback aCallback, @Nullable IAS4IncomingDumper aIncomingDumper) throws Phase4Exception, IOException, jakarta.mail.MessagingException, org.apache.wss4j.common.ext.WSSecurityException - Throws:
Phase4ExceptionIOExceptionjakarta.mail.MessagingExceptionorg.apache.wss4j.common.ext.WSSecurityException
-
processEbmsMessage
@Nonnull public static IAS4IncomingMessageState processEbmsMessage(@Nonnull @WillNotClose AS4ResourceHelper aResHelper, @Nonnull Locale aLocale, @Nonnull SoapHeaderElementProcessorRegistry aRegistry, @Nonnull com.helger.commons.http.HttpHeaderMap aHttpHeaders, @Nonnull Document aSoapDocument, @Nonnull ESoapVersion eSoapVersion, @Nonnull com.helger.commons.collection.impl.ICommonsList<WSS4JAttachment> aIncomingAttachments, @Nonnull IAS4IncomingProfileSelector aAS4ProfileSelector, @Nonnull com.helger.commons.collection.impl.ICommonsList<Ebms3Error> aEbmsErrorMessagesTarget, @Nonnull IAS4IncomingMessageMetadata aMessageMetadata) throws Phase4Exception - Throws:
Phase4Exception
-
parseSignalMessage
@Nullable public static Ebms3SignalMessage parseSignalMessage(@Nonnull IAS4CryptoFactory aCryptoFactorySign, @Nonnull IAS4CryptoFactory aCryptoFactoryCrypt, @Nonnull IAS4PModeResolver aPModeResolver, @Nonnull IAS4IncomingAttachmentFactory aIAF, @Nonnull IAS4IncomingProfileSelector aAS4ProfileSelector, @Nonnull @WillNotClose AS4ResourceHelper aResHelper, @Nullable IPMode aSendingPMode, @Nonnull Locale aLocale, @Nonnull IAS4IncomingMessageMetadata aIncomingMessageMetadata, @Nonnull org.apache.hc.core5.http.HttpResponse aHttpResponse, @Nonnull byte[] aMessagePayload, @Nullable IAS4IncomingDumper aIncomingDumper, @Nonnull IAS4IncomingSecurityConfiguration aIncomingSecurityConfiguration, @Nonnull IAS4IncomingReceiverConfiguration aIncomingReceiverConfiguration, @Nullable IAS4SignalMessageConsumer aSignalMsgConsumer) throws Phase4Exception - Throws:
Phase4Exception
-
parseUserMessage
@Nullable public static Ebms3UserMessage parseUserMessage(@Nonnull IAS4CryptoFactory aCryptoFactorySign, @Nonnull IAS4CryptoFactory aCryptoFactoryCrypt, @Nonnull IAS4PModeResolver aPModeResolver, @Nonnull IAS4IncomingAttachmentFactory aIAF, @Nonnull IAS4IncomingProfileSelector aAS4ProfileSelector, @Nonnull @WillNotClose AS4ResourceHelper aResHelper, @Nullable IPMode aSendingPMode, @Nonnull Locale aLocale, @Nonnull IAS4IncomingMessageMetadata aIncomingMessageMetadata, @Nonnull org.apache.hc.core5.http.HttpResponse aHttpResponse, @Nonnull byte[] aMessagePayload, @Nullable IAS4IncomingDumper aIncomingDumper, @Nonnull IAS4IncomingSecurityConfiguration aIncomingSecurityConfiguration, @Nonnull IAS4IncomingReceiverConfiguration aIncomingReceiverConfiguration, @Nullable IAS4UserMessageConsumer aUserMsgConsumer) throws Phase4Exception - Throws:
Phase4Exception
-
parseUserOrSignalMessage
@Nonnull public static com.helger.commons.state.ESuccess parseUserOrSignalMessage(@Nonnull IAS4CryptoFactory aCryptoFactorySign, @Nonnull IAS4CryptoFactory aCryptoFactoryCrypt, @Nonnull IAS4PModeResolver aPModeResolver, @Nonnull IAS4IncomingAttachmentFactory aIAF, @Nonnull IAS4IncomingProfileSelector aAS4ProfileSelector, @Nonnull @WillNotClose AS4ResourceHelper aResHelper, @Nullable IPMode aSendingPMode, @Nonnull Locale aLocale, @Nonnull IAS4IncomingMessageMetadata aIncomingMessageMetadata, @Nonnull org.apache.hc.core5.http.HttpResponse aHttpResponse, @Nonnull byte[] aMessagePayload, @Nullable IAS4IncomingDumper aIncomingDumper, @Nonnull IAS4IncomingSecurityConfiguration aIncomingSecurityConfiguration, @Nonnull IAS4IncomingReceiverConfiguration aIncomingReceiverConfiguration, @Nullable IAS4UserMessageConsumer aUserMsgConsumer, @Nullable IAS4SignalMessageConsumer aSignalMsgConsumer) throws Phase4Exception - Throws:
Phase4Exception
-