Top Constructors Methods
org.apache.hc.client5.http.impl.cookie

public abstract Class AbstractCookieAttributeHandler

extends Object
implements CookieAttributeHandler
Class Inheritance
All Implemented Interfaces
org.apache.hc.client5.http.cookie.CookieAttributeHandler
Known Direct Subclasses
org.apache.hc.client5.http.impl.cookie.BasicExpiresHandler, org.apache.hc.client5.http.impl.cookie.BasicMaxAgeHandler, org.apache.hc.client5.http.impl.cookie.BasicSecureHandler, org.apache.hc.client5.http.impl.cookie.LaxExpiresHandler, org.apache.hc.client5.http.impl.cookie.LaxMaxAgeHandler
Annotations
@Contract
threading:STATELESS
Imports
org.apache.hc.client5.http.cookie.Cookie, .CookieAttributeHandler, .CookieOrigin, .MalformedCookieException, org.apache.hc.core5.annotation.Contract, .ThreadingBehavior

Since
4.0

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
match(final Cookie cookie, final CookieOrigin
the cookie source to match against
origin
)

Implements org.apache.hc.client5.http.cookie.CookieAttributeHandler.match.

Matches the given value (property of the destination host where request is being submitted) with the corresponding cookie attribute.
public void
validate(final Cookie cookie, final CookieOrigin
the cookie source to validate against
origin
)

Implements org.apache.hc.client5.http.cookie.CookieAttributeHandler.validate.

Performs cookie validation for the given attribute value.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AbstractCookieAttributeHandlerback to summary
public AbstractCookieAttributeHandler()

Method Detail

matchback to summary
public boolean match(final Cookie cookie, final CookieOrigin origin)

Implements org.apache.hc.client5.http.cookie.CookieAttributeHandler.match.

Doc from org.apache.hc.client5.http.cookie.CookieAttributeHandler.match.

Matches the given value (property of the destination host where request is being submitted) with the corresponding cookie attribute.

Parameters
cookie:Cookie

org.apache.hc.client5.http.cookie.Cookie to match

origin:CookieOrigin

the cookie source to match against

Returns:boolean

true if the match is successful; false otherwise

Annotations
@Override
validateback to summary
public void validate(final Cookie cookie, final CookieOrigin origin) throws MalformedCookieException

Implements org.apache.hc.client5.http.cookie.CookieAttributeHandler.validate.

Doc from org.apache.hc.client5.http.cookie.CookieAttributeHandler.validate.

Performs cookie validation for the given attribute value.

Parameters
cookie:Cookie

org.apache.hc.client5.http.cookie.Cookie to validate

origin:CookieOrigin

the cookie source to validate against

Annotations
@Override
Exceptions
MalformedCookieException:
if cookie validation fails for this attribute