Example usage for org.apache.commons.httpclient.cookie RFC2109Spec RFC2109Spec

List of usage examples for org.apache.commons.httpclient.cookie RFC2109Spec RFC2109Spec

Introduction

In this page you can find the example usage for org.apache.commons.httpclient.cookie RFC2109Spec RFC2109Spec.

Prototype

public RFC2109Spec() 

Source Link

Usage

From source file:org.mule.transport.http.CookieHelper.java

/**
 * @return the {@link CookieSpec} (defaults to {@link RFC2109Spec} when spec is
 *         null)/*  w  w w  . j  a va 2  s.  c o m*/
 */
public static CookieSpec getCookieSpec(String spec) {
    if (spec != null && spec.equalsIgnoreCase(HttpConnector.COOKIE_SPEC_NETSCAPE)) {
        return new NetscapeDraftSpec();
    } else {
        return new RFC2109Spec();
    }
}