Class SolrPortAwareCookieSpecFactory.PortAwareDomainHandler
- java.lang.Object
-
- org.apache.http.impl.cookie.BasicDomainHandler
-
- org.apache.http.impl.cookie.NetscapeDomainHandler
-
- org.apache.solr.client.solrj.impl.SolrPortAwareCookieSpecFactory.PortAwareDomainHandler
-
- All Implemented Interfaces:
org.apache.http.cookie.CommonCookieAttributeHandler
,org.apache.http.cookie.CookieAttributeHandler
- Enclosing class:
- SolrPortAwareCookieSpecFactory
public static class SolrPortAwareCookieSpecFactory.PortAwareDomainHandler extends org.apache.http.impl.cookie.NetscapeDomainHandler
A domain handler to validate and match cookies based on the domain and origin. The domain is tested against host and port both, and if it doesn't match, it delegates the handling to the base class' matching/validation logic.
-
-
Constructor Summary
Constructors Constructor Description PortAwareDomainHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
match(org.apache.http.cookie.Cookie cookie, org.apache.http.cookie.CookieOrigin origin)
void
validate(org.apache.http.cookie.Cookie cookie, org.apache.http.cookie.CookieOrigin origin)
-
-
-
Method Detail
-
validate
public void validate(org.apache.http.cookie.Cookie cookie, org.apache.http.cookie.CookieOrigin origin) throws org.apache.http.cookie.MalformedCookieException
- Specified by:
validate
in interfaceorg.apache.http.cookie.CookieAttributeHandler
- Overrides:
validate
in classorg.apache.http.impl.cookie.NetscapeDomainHandler
- Throws:
org.apache.http.cookie.MalformedCookieException
-
match
public boolean match(org.apache.http.cookie.Cookie cookie, org.apache.http.cookie.CookieOrigin origin)
- Specified by:
match
in interfaceorg.apache.http.cookie.CookieAttributeHandler
- Overrides:
match
in classorg.apache.http.impl.cookie.NetscapeDomainHandler
-
-