|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.http.params.AbstractHttpParams
org.apache.http.impl.client.ClientParamsStack
@Deprecated public class ClientParamsStack
Represents a stack of parameter collections. When retrieving a parameter, the stack is searched in a fixed order and the first match returned. Setting parameters via the stack is not supported. To minimize overhead, the stack has a fixed size and does not maintain an internal array. The supported stack entries, sorted by increasing priority, are:
HttpClient.
These provide client specific defaults.
HttpClient.
These can be used to set parameters that cannot be overridden
on a per-request basis.
null. That is preferable over
an empty params collection, since it avoids searching the empty collection
when looking up parameters.
| Field Summary | |
|---|---|
protected org.apache.http.params.HttpParams |
applicationParams
Deprecated. The application parameter collection, or null. |
protected org.apache.http.params.HttpParams |
clientParams
Deprecated. The client parameter collection, or null. |
protected org.apache.http.params.HttpParams |
overrideParams
Deprecated. The override parameter collection, or null. |
protected org.apache.http.params.HttpParams |
requestParams
Deprecated. The request parameter collection, or null. |
| Constructor Summary | |
|---|---|
ClientParamsStack(ClientParamsStack stack)
Deprecated. Creates a copy of a parameter stack. |
|
ClientParamsStack(ClientParamsStack stack,
org.apache.http.params.HttpParams aparams,
org.apache.http.params.HttpParams cparams,
org.apache.http.params.HttpParams rparams,
org.apache.http.params.HttpParams oparams)
Deprecated. Creates a modified copy of a parameter stack. |
|
ClientParamsStack(org.apache.http.params.HttpParams aparams,
org.apache.http.params.HttpParams cparams,
org.apache.http.params.HttpParams rparams,
org.apache.http.params.HttpParams oparams)
Deprecated. Creates a new parameter stack from elements. |
|
| Method Summary | |
|---|---|
org.apache.http.params.HttpParams |
copy()
Deprecated. Does not copy parameters. |
org.apache.http.params.HttpParams |
getApplicationParams()
Deprecated. Obtains the application parameters of this stack. |
org.apache.http.params.HttpParams |
getClientParams()
Deprecated. Obtains the client parameters of this stack. |
org.apache.http.params.HttpParams |
getOverrideParams()
Deprecated. Obtains the override parameters of this stack. |
Object |
getParameter(String name)
Deprecated. Obtains a parameter from this stack. |
org.apache.http.params.HttpParams |
getRequestParams()
Deprecated. Obtains the request parameters of this stack. |
boolean |
removeParameter(String name)
Deprecated. Does not remove a parameter. |
org.apache.http.params.HttpParams |
setParameter(String name,
Object value)
Deprecated. Does not set a parameter. |
| Methods inherited from class org.apache.http.params.AbstractHttpParams |
|---|
getBooleanParameter, getDoubleParameter, getIntParameter, getLongParameter, getNames, isParameterFalse, isParameterTrue, setBooleanParameter, setDoubleParameter, setIntParameter, setLongParameter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.apache.http.params.HttpParams applicationParams
null.
protected final org.apache.http.params.HttpParams clientParams
null.
protected final org.apache.http.params.HttpParams requestParams
null.
protected final org.apache.http.params.HttpParams overrideParams
null.
| Constructor Detail |
|---|
public ClientParamsStack(org.apache.http.params.HttpParams aparams,
org.apache.http.params.HttpParams cparams,
org.apache.http.params.HttpParams rparams,
org.apache.http.params.HttpParams oparams)
aparams - application parameters, or nullcparams - client parameters, or nullrparams - request parameters, or nulloparams - override parameters, or nullpublic ClientParamsStack(ClientParamsStack stack)
stack - the stack to copy
public ClientParamsStack(ClientParamsStack stack,
org.apache.http.params.HttpParams aparams,
org.apache.http.params.HttpParams cparams,
org.apache.http.params.HttpParams rparams,
org.apache.http.params.HttpParams oparams)
null,
the corresponding element from the argument stack is used.
There is no copying of parameters.
stack - the stack to modifyaparams - application parameters, or nullcparams - client parameters, or nullrparams - request parameters, or nulloparams - override parameters, or null| Method Detail |
|---|
public final org.apache.http.params.HttpParams getApplicationParams()
nullpublic final org.apache.http.params.HttpParams getClientParams()
nullpublic final org.apache.http.params.HttpParams getRequestParams()
nullpublic final org.apache.http.params.HttpParams getOverrideParams()
nullpublic Object getParameter(String name)
name - the name of the parameter to obtain
null if it is not set anywhere in this stack
public org.apache.http.params.HttpParams setParameter(String name,
Object value)
throws UnsupportedOperationException
name - ignoredvalue - ignored
UnsupportedOperationException - alwayspublic boolean removeParameter(String name)
name - ignored
UnsupportedOperationException - alwayspublic org.apache.http.params.HttpParams copy()
Derived classes may change this behavior.
this parameter stack
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||