Methods Summary |
---|
public boolean | getBooleanParameter(java.lang.String name, boolean defaultValue)
Object param = getParameter(name);
if (param == null) {
return defaultValue;
}
return ((Boolean)param).booleanValue();
|
public double | getDoubleParameter(java.lang.String name, double defaultValue)
Object param = getParameter(name);
if (param == null) {
return defaultValue;
}
return ((Double)param).doubleValue();
|
public int | getIntParameter(java.lang.String name, int defaultValue)
Object param = getParameter(name);
if (param == null) {
return defaultValue;
}
return ((Integer)param).intValue();
|
public long | getLongParameter(java.lang.String name, long defaultValue)
Object param = getParameter(name);
if (param == null) {
return defaultValue;
}
return ((Long)param).longValue();
|
public boolean | isParameterFalse(java.lang.String name)
return !getBooleanParameter(name, false);
|
public boolean | isParameterTrue(java.lang.String name)
return getBooleanParameter(name, false);
|
public org.apache.http.params.HttpParams | setBooleanParameter(java.lang.String name, boolean value)
setParameter(name, value ? Boolean.TRUE : Boolean.FALSE);
return this;
|
public org.apache.http.params.HttpParams | setDoubleParameter(java.lang.String name, double value)
setParameter(name, new Double(value));
return this;
|
public org.apache.http.params.HttpParams | setIntParameter(java.lang.String name, int value)
setParameter(name, new Integer(value));
return this;
|
public org.apache.http.params.HttpParams | setLongParameter(java.lang.String name, long value)
setParameter(name, new Long(value));
return this;
|