public class AS2ReceiverHandler extends Object implements NetModuleHandler
| Constructor and Description |
|---|
AS2ReceiverHandler(AS2ReceiverModule module) |
| Modifier and Type | Method and Description |
|---|---|
MessageMDN |
createMDN(Session session,
AS2Message msg,
String mic,
DispositionType disposition,
String text) |
void |
createMDNData(Session session,
MessageMDN mdn,
String micAlg,
String signatureProtocol) |
protected AS2Message |
createMessage(Socket s) |
protected String |
decryptAndVerify(AS2Message msg) |
String |
getClientInfo(Socket s) |
AS2ReceiverModule |
getModule() |
void |
handle(NetModule owner,
Socket s) |
protected boolean |
sendResponse(AS2Message msg,
BufferedOutputStream out,
DispositionType disposition,
String mic,
String text)
Sends a response for received AS2 message.
|
public AS2ReceiverHandler(AS2ReceiverModule module)
public AS2ReceiverModule getModule()
public void handle(NetModule owner, Socket s)
handle in interface NetModuleHandlerprotected AS2Message createMessage(Socket s)
protected String decryptAndVerify(AS2Message msg) throws OpenAS2Exception
OpenAS2Exceptionprotected boolean sendResponse(AS2Message msg, BufferedOutputStream out, DispositionType disposition, String mic, String text)
MDNSenderModulemsg - The received message that an MDN must be sent for.out - The output stream for the connection the AS2 message was received ondisposition - The disposition type that must be sent in the MDNmic - The MIC of the received AS2 messagetext - The textual message describing the result of the message receipt and processingpublic MessageMDN createMDN(Session session, AS2Message msg, String mic, DispositionType disposition, String text) throws Exception
ExceptionCopyright © 2018. All rights reserved.