
org.openas2.message.AS2MessageMDN Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openas2-server Show documentation
Show all versions of openas2-server Show documentation
Open source implementation of the AS2 standard for signed encrypted and compressed document transfer
package org.openas2.message;
import org.openas2.params.InvalidParameterException;
public class AS2MessageMDN extends BaseMessageMDN {
public static final String MDNA_REPORTING_UA = "REPORTING_UA";
public static final String MDNA_ORIG_RECIPIENT = "ORIGINAL_RECIPIENT";
public static final String MDNA_FINAL_RECIPIENT = "FINAL_RECIPIENT";
public static final String MDNA_ORIG_MESSAGEID = "ORIGINAL_MESSAGE_ID";
public static final String MDNA_DISPOSITION = "DISPOSITION";
public static final String MDNA_MIC = "MIC";
/**
*
*/
private static final long serialVersionUID = 1L;
public AS2MessageMDN(AS2Message msg, boolean copyMsgHeaders)
{
super(msg);
if (copyMsgHeaders)
{
copyHeaders(msg.getHeaders());
}
setHeader("AS2-To", msg.getHeader("AS2-From"));
setHeader("AS2-From", msg.getHeader("AS2-To"));
}
/**
* Generate Random Message ID based on data in the preconfigured format, sender and receiver IDs.
*
* @return a string
* @throws InvalidParameterException - the message ID generator could not identfy a parameter in the ID format string
*/
@Override
public String generateMessageID() throws InvalidParameterException
{
return org.openas2.util.AS2Util.generateMessageID(getMessage(), true);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy