JavaScript is disabled on your browser.
Skip navigation links
org.htmlunit.httpclient

Class HtmlUnitBrowserCompatCookieSpec

  • All Implemented Interfaces:
    org.apache.http.cookie.CookieSpec


    public class HtmlUnitBrowserCompatCookieSpec
    extends org.apache.http.impl.cookie.CookieSpecBase
    Customized BrowserCompatSpec for HtmlUnit.

    Workaround for HttpClient bug 1006: quotes are wrongly removed in cookie's values. Implementation is based on the HttpClient code.

    Author:
    Mike Bowler, Noboru Sinohara, David D. Kilzer, Marc Guillemot, Brad Clarke, Ahmed Ashour, Nicolas Belisle, Ronald Brill, John J Murdoch
    • Field Detail

      • EMPTY_COOKIE_NAME

        public static final String EMPTY_COOKIE_NAME
        The cookie name used for cookies with no name (HttpClient doesn't like empty names).
        See Also:
        Constant Field Values
      • LOCAL_FILESYSTEM_DOMAIN

        public static final String LOCAL_FILESYSTEM_DOMAIN
        Workaround for domain of local files.
        See Also:
        Constant Field Values
    • Constructor Detail

      • HtmlUnitBrowserCompatCookieSpec

        public HtmlUnitBrowserCompatCookieSpec(BrowserVersion browserVersion)
        Constructor.
        Parameters:
        browserVersion - the BrowserVersion to simulate
    • Method Detail

      • parse

        public List<org.apache.http.cookie.Cookie> parse(org.apache.http.Header header,
         org.apache.http.cookie.CookieOrigin origin)
         throws org.apache.http.cookie.MalformedCookieException
        Throws:
        org.apache.http.cookie.MalformedCookieException
      • formatCookies

        public List<org.apache.http.Header> formatCookies(List<org.apache.http.cookie.Cookie> cookies)
      • getVersion

        public int getVersion()
      • getVersionHeader

        public org.apache.http.Header getVersionHeader()
Skip navigation links

Copyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /