com.jdroid.java.http.AbstractHttpService Maven / Gradle / Ivy
package com.jdroid.java.http;
import com.jdroid.java.collections.Lists;
import com.jdroid.java.collections.Maps;
import com.jdroid.java.exception.UnexpectedException;
import com.jdroid.java.http.parser.Parser;
import com.jdroid.java.utils.EncodingUtils;
import com.jdroid.java.utils.FileUtils;
import com.jdroid.java.utils.LoggerUtils;
import com.jdroid.java.utils.StringUtils;
import org.slf4j.Logger;
import java.io.InputStream;
import java.util.Collection;
import java.util.List;
import java.util.Map;
public abstract class AbstractHttpService implements HttpService {
protected static final Logger LOGGER = LoggerUtils.getLogger(AbstractHttpService.class);
private Boolean ssl = false;
/** Connection timeout in milliseconds. 10 seconds as default */
private Integer connectionTimeout = 10000;
/** Read timeout in milliseconds. 60 seconds as default */
private Integer readTimeout = 60000;
/** Write timeout in milliseconds. 60 seconds as default */
private Integer writeTimeout = 60000;
private String userAgent;
private Server server;
private List