Code example for CookieOrigin

Methods: getHost, getPath

0
 
/** 
 * <p>RFC 2965 specific cookie management functions.</p> 
 *  
 * @author jain.samit@gmail.com (Samit Jain) 
 * @author <a href="mailto:oleg at ural.ru">Oleg Kalnichevski</a> 
 * 
 * @since 3.1 
 */ 
public class RFC2965Spec extends RFC2109Spec {
 
    /**  
     * Default constructor  
     *  
     */ 
    public RFC2965Spec() { 
        this(null, false); 
    } 
     
    public RFC2965Spec(final String[] datepatterns, boolean oneHeader) {
        super(datepatterns, oneHeader);
        registerAttribHandler(ClientCookie.DOMAIN_ATTR, new RFC2965DomainAttributeHandler());
        registerAttribHandler(ClientCookie.PORT_ATTR, new RFC2965PortAttributeHandler());
        registerAttribHandler(ClientCookie.COMMENTURL_ATTR, new RFC2965CommentUrlAttributeHandler());