public class AS2MDNReceiverHandler extends AbstractReceiverHandler
| Constructor and Description |
|---|
AS2MDNReceiverHandler(AS2MDNReceiverModule aModule) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkAsyncMDN(AS2Message aMsg)
verify if the mic is matched.
|
protected com.helger.commons.state.ESuccess |
deletePendingFile(AS2Message aMsg,
String sPendingFilename)
Delete the pending file itself.
|
protected com.helger.commons.state.ESuccess |
deletePendingInfoStream(AS2Message aMsg)
Delete the pending info file.
|
IAS2IncomingMDNCallback |
getIncomingMDNCallback() |
IMICMatchingHandler |
getMICMatchingHandler() |
AS2MDNReceiverModule |
getModule() |
protected File |
getPendingInfoFile(AS2Message aMsg)
Get the pending info file itself.
|
void |
handle(AbstractActiveNetModule aOwner,
Socket aSocket) |
void |
handleIncomingMessage(String sClientInfo,
DataSource aMsgData,
AS2Message aMsg,
IAS2HttpResponseHandler aResponseHandler) |
protected InputStream |
openPendingInfoStreamForReading(AS2Message aMsg)
Delete the pending info file for reading.
|
protected void |
receiveMDN(AS2Message aMsg,
byte[] aData,
IAS2HttpResponseHandler aResponseHandler,
AS2ResourceHelper aResHelper)
method for receiving and processing Async MDN sent from receiver.
|
void |
reparse(AS2Message aMsg,
AS2HttpClient aHttpClient,
IHTTPIncomingDumper aIncomingDumper) |
void |
setIncomingMDNCallback(IAS2IncomingMDNCallback aIMC)
Set the incoming MDN callback that is invoked for each received MDN.
|
void |
setMICMatchingHandler(IMICMatchingHandler aMICMatchingHandler)
Set the MIC matching handler to used.
|
getClientInfo, getEffectiveHttpIncomingDumper, getHttpIncomingDumper, getVerificationCertificateConsumer, setHttpIncomingDumper, setVerificationCertificateConsumerpublic AS2MDNReceiverHandler(@Nonnull AS2MDNReceiverModule aModule)
aModule - The receiver module for attributes, session etc. May not be
null.@Nonnull public final AS2MDNReceiverModule getModule()
null.@Nonnull public final IMICMatchingHandler getMICMatchingHandler()
null.public final void setMICMatchingHandler(@Nonnull IMICMatchingHandler aMICMatchingHandler)
aMICMatchingHandler - The new handler. May not be null.@Nullable public final IAS2IncomingMDNCallback getIncomingMDNCallback()
null.public final void setIncomingMDNCallback(@Nullable IAS2IncomingMDNCallback aIMC)
aIMC - The callback to be invoked. May be null.@Nullable protected File getPendingInfoFile(@Nonnull AS2Message aMsg) throws AS2Exception
aMsg - Source message. Never null.AS2Exception - In case of error@Nullable @OverrideOnDemand protected InputStream openPendingInfoStreamForReading(@Nonnull AS2Message aMsg) throws AS2Exception
aMsg - Source message. Never null.null if open failed.AS2Exception - In case of error@OverrideOnDemand protected com.helger.commons.state.ESuccess deletePendingInfoStream(@Nonnull AS2Message aMsg) throws AS2Exception
aMsg - Source message. Never null.ESuccessAS2Exception - In case of error@OverrideOnDemand protected com.helger.commons.state.ESuccess deletePendingFile(@Nonnull AS2Message aMsg, @Nonnull String sPendingFilename) throws AS2Exception
aMsg - Source message. Never null.sPendingFilename - Pending filenameESuccessAS2Exception - In case of errorpublic boolean checkAsyncMDN(@Nonnull AS2Message aMsg) throws AS2Exception
aMsg - Messagetrue if the MDN was processed, false e.g.
on MIC mismatchAS2Exception - In case of error; e.g. MIC mismatchprotected final void receiveMDN(@Nonnull AS2Message aMsg, byte[] aData, @Nonnull IAS2HttpResponseHandler aResponseHandler, @Nonnull AS2ResourceHelper aResHelper) throws AS2Exception, IOException
aMsg - The MDN messageaData - The MDN contentaResponseHandler - The HTTP response handler for setting the correct HTTP response codeaResHelper - Resource helperAS2Exception - In case of errorIOException - In case of IO errorpublic void reparse(@Nonnull AS2Message aMsg, @Nonnull AS2HttpClient aHttpClient, @Nullable IHTTPIncomingDumper aIncomingDumper) throws AS2Exception
AS2Exceptionpublic void handleIncomingMessage(@Nonnull @Nonempty String sClientInfo, @Nonnull DataSource aMsgData, @Nonnull AS2Message aMsg, @Nonnull IAS2HttpResponseHandler aResponseHandler)
public void handle(@Nonnull AbstractActiveNetModule aOwner, @Nonnull Socket aSocket)
Copyright © 2013–2022 Philip Helger. All rights reserved.