
org.openas2.processor.resender.DirectoryResenderModule 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.processor.resender;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.StringTokenizer;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.openas2.OpenAS2Exception;
import org.openas2.Session;
import org.openas2.WrappedException;
import org.openas2.message.Message;
import org.openas2.params.InvalidParameterException;
import org.openas2.processor.sender.SenderModule;
import org.openas2.util.AS2Util;
import org.openas2.util.DateUtil;
import org.openas2.util.IOUtil;
public class DirectoryResenderModule extends BaseResenderModule {
public static final String PARAM_RESEND_DIRECTORY = "resenddir";
public static final String PARAM_ERROR_DIRECTORY = "errordir";
public static final String PARAM_RESEND_DELAY = "resenddelay"; // in seconds
private String resendDirPath;
// TODO Resend set to 15 minutes. Implement a scaling resend time with eventual permanent failure of transmission
public static final long DEFAULT_RESEND_DELAY = 15 * 60 * 1000; // 15 minutes
private Log logger = LogFactory.getLog(DirectoryResenderModule.class.getSimpleName());
public boolean canHandle(String action, Message msg, Map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy