| |
|
| java.lang.Object org.apache.commons.httpclient.params.DefaultHttpParams org.apache.commons.httpclient.params.HttpMethodParams org.apache.commons.httpclient.params.HttpClientParams
HttpClientParams | public class HttpClientParams extends HttpMethodParams (Code) | | This class represents a collection of HTTP protocol parameters applicable to
org.apache.commons.httpclient.HttpClient instances of HttpClient .
Protocol parameters may be linked together to form a hierarchy. If a particular
parameter value has not been explicitly defined in the collection itself, its
value will be drawn from the parent collection of parameters.
author: Oleg Kalnichevski version: $Revision: 480424 $ since: 3.0 |
ALLOW_CIRCULAR_REDIRECTS | final public static String ALLOW_CIRCULAR_REDIRECTS(Code) | | Defines whether circular redirects (redirects to the same location) should be allowed.
The HTTP spec is not sufficiently clear whether circular redirects are permitted,
therefore optionally they can be enabled
This parameter expects a value of type
Boolean .
|
MAX_REDIRECTS | final public static String MAX_REDIRECTS(Code) | | Defines the maximum number of redirects to be followed.
The limit on number of redirects is intended to prevent infinite loops.
This parameter expects a value of type
Integer .
|
PREEMPTIVE_AUTHENTICATION | final public static String PREEMPTIVE_AUTHENTICATION(Code) | | Defines whether authentication should be attempted preemptively.
This parameter expects a value of type
Boolean .
|
REJECT_RELATIVE_REDIRECT | final public static String REJECT_RELATIVE_REDIRECT(Code) | | Defines whether relative redirects should be rejected.
This parameter expects a value of type
Boolean .
|
HttpClientParams | public HttpClientParams(HttpParams defaults)(Code) | | Creates a new collection of parameters with the given parent.
The collection will defer to its parent for a default value
if a particular parameter is not explicitly set in the collection
itself.
Parameters: defaults - the parent collection to defer to, if a parameteris not explictly set in the collection itself. See Also: HttpClientParams.getDefaultParams() |
isAuthenticationPreemptive | public boolean isAuthenticationPreemptive()(Code) | | Returns true if authentication should be attempted preemptively,
false otherwise.
true if authentication should be attempted preemptively,false otherwise. |
makeLenient | public void makeLenient()(Code) | | |
makeStrict | public void makeStrict()(Code) | | |
setAuthenticationPreemptive | public void setAuthenticationPreemptive(boolean value)(Code) | | Sets whether authentication should be attempted preemptively.
Parameters: value - true if authentication should be attempted preemptively,false otherwise. |
Methods inherited from org.apache.commons.httpclient.params.DefaultHttpParams | public void clear()(Code)(Java Doc) public Object clone() throws CloneNotSupportedException(Code)(Java Doc) public boolean getBooleanParameter(String name, boolean defaultValue)(Code)(Java Doc) public static HttpParams getDefaultParams()(Code)(Java Doc) public synchronized HttpParams getDefaults()(Code)(Java Doc) public double getDoubleParameter(String name, double defaultValue)(Code)(Java Doc) public int getIntParameter(String name, int defaultValue)(Code)(Java Doc) public long getLongParameter(String name, long defaultValue)(Code)(Java Doc) public synchronized Object getParameter(String name)(Code)(Java Doc) public boolean isParameterFalse(String name)(Code)(Java Doc) public boolean isParameterSet(String name)(Code)(Java Doc) public boolean isParameterSetLocally(String name)(Code)(Java Doc) public boolean isParameterTrue(String name)(Code)(Java Doc) public void setBooleanParameter(String name, boolean value)(Code)(Java Doc) public synchronized void setDefaults(HttpParams params)(Code)(Java Doc) public void setDoubleParameter(String name, double value)(Code)(Java Doc) public static void setHttpParamsFactory(HttpParamsFactory httpParamsFactory)(Code)(Java Doc) public void setIntParameter(String name, int value)(Code)(Java Doc) public void setLongParameter(String name, long value)(Code)(Java Doc) public synchronized void setParameter(String name, Object value)(Code)(Java Doc) public synchronized void setParameters(String[] names, Object value)(Code)(Java Doc)
|
|
|
|