org.apache.http.client.params
Class HttpClientParams

java.lang.Object
  extended by org.apache.http.client.params.HttpClientParams

public class HttpClientParams
extends java.lang.Object

An adaptor for accessing HTTP client parameters in HttpParams.

Since:
4.0
Version:
$Revision: 580079 $
Author:
Oleg Kalnichevski

Method Summary
static long getConnectionManagerTimeout(org.apache.http.params.HttpParams params)
          Returns the timeout in milliseconds used when retrieving a ManagedClientConnection from the ClientConnectionManager.
static java.lang.String getCookiePolicy(org.apache.http.params.HttpParams params)
           
static boolean isAuthenticating(org.apache.http.params.HttpParams params)
           
static boolean isAuthenticationPreemptive(org.apache.http.params.HttpParams params)
          Returns true if authentication should be attempted preemptively, false otherwise.
static boolean isRedirecting(org.apache.http.params.HttpParams params)
           
static void setAuthenticating(org.apache.http.params.HttpParams params, boolean value)
           
static void setAuthenticationPreemptive(org.apache.http.params.HttpParams params, boolean value)
          Sets whether authentication should be attempted preemptively.
static void setConnectionManagerTimeout(org.apache.http.params.HttpParams params, long timeout)
          Sets the timeout in milliseconds used when retrieving a ManagedClientConnection from the ClientConnectionManager.
static void setCookiePolicy(org.apache.http.params.HttpParams params, java.lang.String cookiePolicy)
           
static void setRedirecting(org.apache.http.params.HttpParams params, boolean value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getConnectionManagerTimeout

public static long getConnectionManagerTimeout(org.apache.http.params.HttpParams params)
Returns the timeout in milliseconds used when retrieving a ManagedClientConnection from the ClientConnectionManager.

Returns:
timeout in milliseconds.

setConnectionManagerTimeout

public static void setConnectionManagerTimeout(org.apache.http.params.HttpParams params,
                                               long timeout)
Sets the timeout in milliseconds used when retrieving a ManagedClientConnection from the ClientConnectionManager.

Parameters:
timeout - the timeout in milliseconds

isRedirecting

public static boolean isRedirecting(org.apache.http.params.HttpParams params)

setRedirecting

public static void setRedirecting(org.apache.http.params.HttpParams params,
                                  boolean value)

isAuthenticating

public static boolean isAuthenticating(org.apache.http.params.HttpParams params)

setAuthenticating

public static void setAuthenticating(org.apache.http.params.HttpParams params,
                                     boolean value)

isAuthenticationPreemptive

public static boolean isAuthenticationPreemptive(org.apache.http.params.HttpParams params)
Returns true if authentication should be attempted preemptively, false otherwise.

Returns:
true if authentication should be attempted preemptively, false otherwise.

setAuthenticationPreemptive

public static void setAuthenticationPreemptive(org.apache.http.params.HttpParams params,
                                               boolean value)
Sets whether authentication should be attempted preemptively.

Parameters:
value - true if authentication should be attempted preemptively, false otherwise.

getCookiePolicy

public static java.lang.String getCookiePolicy(org.apache.http.params.HttpParams params)

setCookiePolicy

public static void setCookiePolicy(org.apache.http.params.HttpParams params,
                                   java.lang.String cookiePolicy)


Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.