Methods Summary |
---|
public static java.lang.String | getCookiePolicy(org.apache.http.params.HttpParams params)
if (params == null) {
throw new IllegalArgumentException("HTTP parameters may not be null");
}
String cookiePolicy = (String)
params.getParameter(ClientPNames.COOKIE_POLICY);
if (cookiePolicy == null) {
return CookiePolicy.BEST_MATCH;
}
return cookiePolicy;
|
public static boolean | isAuthenticating(org.apache.http.params.HttpParams params)
if (params == null) {
throw new IllegalArgumentException("HTTP parameters may not be null");
}
return params.getBooleanParameter
(ClientPNames.HANDLE_AUTHENTICATION, true);
|
public static boolean | isRedirecting(org.apache.http.params.HttpParams params)
if (params == null) {
throw new IllegalArgumentException("HTTP parameters may not be null");
}
return params.getBooleanParameter
(ClientPNames.HANDLE_REDIRECTS, true);
|
public static void | setAuthenticating(org.apache.http.params.HttpParams params, boolean value)
if (params == null) {
throw new IllegalArgumentException("HTTP parameters may not be null");
}
params.setBooleanParameter
(ClientPNames.HANDLE_AUTHENTICATION, value);
|
public static void | setCookiePolicy(org.apache.http.params.HttpParams params, java.lang.String cookiePolicy)
if (params == null) {
throw new IllegalArgumentException("HTTP parameters may not be null");
}
params.setParameter(ClientPNames.COOKIE_POLICY, cookiePolicy);
|
public static void | setRedirecting(org.apache.http.params.HttpParams params, boolean value)
if (params == null) {
throw new IllegalArgumentException("HTTP parameters may not be null");
}
params.setBooleanParameter
(ClientPNames.HANDLE_REDIRECTS, value);
|