package org.apache.http.params;
import java.util.Set;
/**
* Abstract base class for parameter collections.
* Type specific setters and getters are mapped to the abstract,
* generic getters and setters.
*
* @since 4.0
*
* @deprecated (4.3) use configuration classes provided 'org.apache.http.config'
* and 'org.apache.http.client.config'
*/
@Deprecated
public abstract class AbstractHttpParams implements HttpParams, HttpParamsNames {
/**
* Instantiates parameters.
*/
protected AbstractHttpParams() {
super();
}
@Override
public long getLongParameter(final String name, final long defaultValue) {
final Object param = getParameter(name);
if (param == null) {
return defaultValue;
}
return ((Long) param).longValue();
}