All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openas2.processor.sender.HttpSenderModule Maven / Gradle / Ivy

Go to download

Open source implementation of the AS2 standard for signed encrypted and compressed document transfer

There is a newer version: 2.10.1
Show newest version
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