
org.openas2.processor.sender.HttpSenderModule 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.sender;
import java.util.HashMap;
import java.util.Map;
import org.openas2.OpenAS2Exception;
import org.openas2.util.HTTPUtil;
public abstract class HttpSenderModule extends BaseSenderModule implements SenderModule {
public static final String PARAM_READ_TIMEOUT = "readtimeout";
public static final String PARAM_CONNECT_TIMEOUT = "connecttimeout";
// private Log logger = LogFactory.getLog(HttpSenderModule.class.getSimpleName());
public Map getHttpOptions() throws OpenAS2Exception {
Map options = new HashMap();
options.put(HTTPUtil.PARAM_READ_TIMEOUT, getParameter(PARAM_READ_TIMEOUT, "60000"));
options.put(HTTPUtil.PARAM_CONNECT_TIMEOUT, getParameter(PARAM_CONNECT_TIMEOUT, "60000"));
return options;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy