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.NetscapeDomainHandlerA 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 booleanmatch(org.apache.http.cookie.Cookie cookie, org.apache.http.cookie.CookieOrigin origin)voidvalidate(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:
validatein interfaceorg.apache.http.cookie.CookieAttributeHandler- Overrides:
validatein 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:
matchin interfaceorg.apache.http.cookie.CookieAttributeHandler- Overrides:
matchin classorg.apache.http.impl.cookie.NetscapeDomainHandler
-
-