Java Code Examples for org.apache.commons.httpclient.cookie.CookiePolicy#DEFAULT

The following examples show how to use org.apache.commons.httpclient.cookie.CookiePolicy#DEFAULT . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: HttpMethodParams.java    From knopflerfish.org with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
/**
 * Returns {@link CookiePolicy cookie policy} to be used by the 
 * {@link org.apache.commons.httpclient.HttpMethod HTTP methods} 
 * this collection of parameters applies to. 
 *
 * @return {@link CookiePolicy cookie policy}
 */
public String getCookiePolicy() { 
    Object param = getParameter(COOKIE_POLICY);
    if (param == null) {
        return CookiePolicy.DEFAULT;
    }
    return (String)param;
}
 
Example 2
Source File: HTTPConnectionManagerSettings.java    From flex-blazeds with Apache License 2.0 5 votes vote down vote up
/**
 * Creates a default <code>HTTPConnectionManagerSettings</code> instance.
 */
public HTTPConnectionManagerSettings()
{
    cookiePolicy = CookiePolicy.DEFAULT;
    defaultMaxConnectionsPerHost = DEFAULT_MAX_CONNECTIONS_HOST;
    maxTotalConnections = DEFAULT_MAX_TOTAL_CONNECTIONS;
    linger = -1;
    staleCheckingEnabled = true;
    tcpNoDelay = true;
}