HttpParams
  public
  
  
  
  interface
  HttpParams
  
  
  
| org.apache.http.params.HttpParams | 
      This interface was deprecated
      in API level 22.
    Please use URL.openConnection() instead.
     Please visit this webpage
     for further details.
  
Represents a collection of HTTP protocol and framework parameters.
Summary
| Public methods | |
|---|---|
| 
        abstract
        
        
        
        
        HttpParams | 
      copy()
      Creates a copy of these parameters. | 
| 
        abstract
        
        
        
        
        boolean | 
      getBooleanParameter(String name, boolean defaultValue)
      Returns a  | 
| 
        abstract
        
        
        
        
        double | 
      getDoubleParameter(String name, double defaultValue)
      Returns a  | 
| 
        abstract
        
        
        
        
        int | 
      getIntParameter(String name, int defaultValue)
      Returns an  | 
| 
        abstract
        
        
        
        
        long | 
      getLongParameter(String name, long defaultValue)
      Returns a  | 
| 
        abstract
        
        
        
        
        Object | 
      getParameter(String name)
      Obtains the value of the given parameter. | 
| 
        abstract
        
        
        
        
        boolean | 
      isParameterFalse(String name)
      Checks if a boolean parameter is not set or  | 
| 
        abstract
        
        
        
        
        boolean | 
      isParameterTrue(String name)
      Checks if a boolean parameter is set to  | 
| 
        abstract
        
        
        
        
        boolean | 
      removeParameter(String name)
      Removes the parameter with the specified name. | 
| 
        abstract
        
        
        
        
        HttpParams | 
      setBooleanParameter(String name, boolean value)
      Assigns a  | 
| 
        abstract
        
        
        
        
        HttpParams | 
      setDoubleParameter(String name, double value)
      Assigns a  | 
| 
        abstract
        
        
        
        
        HttpParams | 
      setIntParameter(String name, int value)
      Assigns an  | 
| 
        abstract
        
        
        
        
        HttpParams | 
      setLongParameter(String name, long value)
      Assigns a  | 
| 
        abstract
        
        
        
        
        HttpParams | 
      setParameter(String name, Object value)
      Assigns the value to the parameter with the given name. | 
Public methods
copy
public abstract HttpParams copy ()
Creates a copy of these parameters.
| Returns | |
|---|---|
| HttpParams | a new set of parameters holding the same values as this one | 
getBooleanParameter
public abstract 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 | String: the parent name. | 
| defaultValue | boolean: the default value. | 
| Returns | |
|---|---|
| boolean | a Booleanthat represents the value of the parameter. | 
See also:
getDoubleParameter
public abstract 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 | String: the parent name. | 
| defaultValue | double: the default value. | 
| Returns | |
|---|---|
| double | a Doublethat represents the value of the parameter. | 
See also:
getIntParameter
public abstract 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 | String: the parent name. | 
| defaultValue | int: the default value. | 
| Returns | |
|---|---|
| int | a Integerthat represents the value of the parameter. | 
See also:
getLongParameter
public abstract 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 | String: the parent name. | 
| defaultValue | long: the default value. | 
| Returns | |
|---|---|
| long | a Longthat represents the value of the parameter. | 
See also:
getParameter
public abstract Object getParameter (String name)
Obtains the value of the given parameter.
| Parameters | |
|---|---|
| name | String: the parent name. | 
| Returns | |
|---|---|
| Object | an object that represents the value of the parameter, nullif the parameter is not set or if it
          is explicitly set tonull | 
See also:
isParameterFalse
public abstract boolean isParameterFalse (String name)
Checks if a boolean parameter is not set or false.
| Parameters | |
|---|---|
| name | String: parameter name | 
| Returns | |
|---|---|
| boolean | true if the parameter is either not set or
         set to value false,
         false if it is set to true | 
isParameterTrue
public abstract boolean isParameterTrue (String name)
Checks if a boolean parameter is set to true.
| Parameters | |
|---|---|
| name | String: parameter name | 
| Returns | |
|---|---|
| boolean | true if the parameter is set to value true,
         false if it is not set or set to false | 
removeParameter
public abstract boolean removeParameter (String name)
Removes the parameter with the specified name.
| Parameters | |
|---|---|
| name | String: parameter name | 
| Returns | |
|---|---|
| boolean | true if the parameter existed and has been removed, false else. | 
setBooleanParameter
public abstract HttpParams setBooleanParameter (String name, boolean value)
Assigns a Boolean to the parameter with the given name
| Parameters | |
|---|---|
| name | String: parameter name | 
| value | boolean: parameter value | 
| Returns | |
|---|---|
| HttpParams | |
setDoubleParameter
public abstract HttpParams setDoubleParameter (String name, double value)
Assigns a Double to the parameter with the given name
| Parameters | |
|---|---|
| name | String: parameter name | 
| value | double: parameter value | 
| Returns | |
|---|---|
| HttpParams | |
setIntParameter
public abstract HttpParams setIntParameter (String name, int value)
Assigns an Integer to the parameter with the given name
| Parameters | |
|---|---|
| name | String: parameter name | 
| value | int: parameter value | 
| Returns | |
|---|---|
| HttpParams | |
setLongParameter
public abstract HttpParams setLongParameter (String name, long value)
Assigns a Long to the parameter with the given name
| Parameters | |
|---|---|
| name | String: parameter name | 
| value | long: parameter value | 
| Returns | |
|---|---|
| HttpParams | |
setParameter
public abstract HttpParams setParameter (String name, Object value)
Assigns the value to the parameter with the given name.
| Parameters | |
|---|---|
| name | String: parameter name | 
| value | Object: parameter value | 
| Returns | |
|---|---|
| HttpParams | |
