public class AS2ReceiverHandler extends AbstractReceiverHandler
MA_HTTP_ORIGINAL_CONTENT_LENGTH, MA_HTTP_ORIGINAL_CONTENT_TRANSFER_ENCODING| Constructor and Description |
|---|
AS2ReceiverHandler(AS2ReceiverModule aModule) |
| Modifier and Type | Method and Description |
|---|---|
protected AS2Message |
createMessage(Socket aSocket)
Create a new message and record the source ip and port
|
protected void |
decompress(IMessage aMsg) |
protected void |
decrypt(IMessage aMsg) |
protected AS2ReceiverModule |
getReceiverModule() |
void |
handle(AbstractActiveNetModule aOwner,
Socket aSocket) |
void |
handleIncomingMessage(String sClientInfo,
DataSource aMsgData,
AS2Message aMsg,
IAS2HttpResponseHandler aResponseHandler)
This method can be used to handle an incoming HTTP message AFTER the
headers where extracted.
|
protected void |
sendMDN(String sClientInfo,
IAS2HttpResponseHandler aResponseHandler,
AS2Message aMsg,
DispositionType aDisposition,
String sText,
com.helger.commons.state.ESuccess eSuccess) |
protected void |
verify(IMessage aMsg) |
getClientInfo, readAndDecodeHttpRequestpublic AS2ReceiverHandler(@Nonnull AS2ReceiverModule aModule)
@Nonnull protected final AS2ReceiverModule getReceiverModule()
@Nonnull protected AS2Message createMessage(@Nonnull Socket aSocket)
aSocket - The socket through which the message will be read.AS2Message to use and never null.protected void decrypt(@Nonnull IMessage aMsg) throws OpenAS2Exception
OpenAS2Exceptionprotected void verify(@Nonnull IMessage aMsg) throws OpenAS2Exception
OpenAS2Exceptionprotected void decompress(@Nonnull IMessage aMsg) throws DispositionException
DispositionExceptionprotected void sendMDN(@Nonnull String sClientInfo, @Nonnull IAS2HttpResponseHandler aResponseHandler, @Nonnull AS2Message aMsg, @Nonnull DispositionType aDisposition, @Nonnull String sText, @Nonnull com.helger.commons.state.ESuccess eSuccess)
public void handleIncomingMessage(@Nonnull String sClientInfo, @Nullable DataSource aMsgData, @Nonnull AS2Message aMsg, @Nonnull IAS2HttpResponseHandler aResponseHandler)
sClientInfo - Client connection infoaMsgData - The message bodyaMsg - The AS2 message that will be filled by this methodaResponseHandler - The response handler which handles HTTP error messages as well as
synchronous MDN.public void handle(@Nonnull AbstractActiveNetModule aOwner, @Nonnull Socket aSocket)
Copyright © 2013–2019 Philip Helger. All rights reserved.