Known Direct Subclasses
|
Class Overview
Abstract base class for parameter collections.
Type specific setters and getters are mapped to the abstract,
generic getters and setters.
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this Object .
|
boolean
|
equals(Object o)
Compares this instance with the specified object and indicates if they
are equal.
|
void
|
finalize()
Invoked when the garbage collector has detected that this instance is no longer reachable.
|
final
Class<?>
|
getClass()
Returns the unique instance of Class that represents this
object's class.
|
int
|
hashCode()
Returns an integer hash code for this object.
|
final
void
|
notify()
Causes a thread which is waiting on this object's monitor (by means of
calling one of the wait() methods) to be woken up.
|
final
void
|
notifyAll()
Causes all threads which are waiting on this object's monitor (by means
of calling one of the wait() methods) to be woken up.
|
String
|
toString()
Returns a string containing a concise, human-readable description of this
object.
|
final
void
|
wait()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.
|
final
void
|
wait(long millis, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait(long millis)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
|
From interface
org.apache.http.params.HttpParams
|
Protected Constructors
protected
AbstractHttpParams
()
Public Methods
public
boolean
getBooleanParameter
(String name, boolean defaultValue)
Returns a Boolean
parameter value with the given name.
If the parameter is not explicitly set, the default value is returned.
Parameters
name
| the parent name. |
defaultValue
| the default value. |
Returns
- a
Boolean
that represents the value of the parameter.
public
double
getDoubleParameter
(String name, double defaultValue)
Returns a Double
parameter value with the given name.
If the parameter is not explicitly set, the default value is returned.
Parameters
name
| the parent name. |
defaultValue
| the default value. |
Returns
- a
Double
that represents the value of the parameter.
public
int
getIntParameter
(String name, int defaultValue)
Returns an Integer
parameter value with the given name.
If the parameter is not explicitly set, the default value is returned.
Parameters
name
| the parent name. |
defaultValue
| the default value. |
Returns
- a
Integer
that represents the value of the parameter.
public
long
getLongParameter
(String name, long defaultValue)
Returns a Long
parameter value with the given name.
If the parameter is not explicitly set, the default value is returned.
Parameters
name
| the parent name. |
defaultValue
| the default value. |
Returns
- a
Long
that represents the value of the parameter.
public
boolean
isParameterFalse
(String name)
Checks if a boolean parameter is not set or false
.
Returns
- true if the parameter is either not set or
set to value false,
false if it is set to
true
public
boolean
isParameterTrue
(String name)
Checks if a boolean parameter is set to true
.
Returns
- true if the parameter is set to value true,
false if it is not set or set to
false
public
HttpParams
setBooleanParameter
(String name, boolean value)
Assigns a Boolean
to the parameter with the given name
Parameters
name
| parameter name |
value
| parameter value
|
public
HttpParams
setDoubleParameter
(String name, double value)
Assigns a Double
to the parameter with the given name
Parameters
name
| parameter name |
value
| parameter value
|
public
HttpParams
setIntParameter
(String name, int value)
Assigns an Integer
to the parameter with the given name
Parameters
name
| parameter name |
value
| parameter value
|
public
HttpParams
setLongParameter
(String name, long value)
Assigns a Long
to the parameter with the given name
Parameters
name
| parameter name |
value
| parameter value
|