Top Description Interfaces Classes
[default module]

Package org.apache.hc.client5.http.cookie


Client HTTP state management APIs.

Interface Summary

Modifier and TypeInterface and Description
public interface
CommonCookieAttributeHandler

Extension of org.apache.hc.client5.http.cookie.CookieAttributeHandler intended to handle one specific common attribute whose name is returned with getAttributeName() method.

public interface
Cookie

Cookie interface represents a token or short packet of state information (also referred to as "magic-cookie") that the HTTP agent and the target server can exchange to maintain a session.

public interface
CookieAttributeHandler

This interface represents a cookie attribute handler responsible for parsing, validating, and matching a specific cookie attribute, such as path, domain, port, etc.

Different cookie specifications can provide a specific implementation for this class based on their cookie handling rules.

public interface
CookieSpec

Defines the cookie management specification.

public interface
CookieSpecFactory

Factory for CookieSpec implementations.

public interface
CookieStore

This interface represents an abstract store for Cookie objects.

public interface
SetCookie

This interface represents a Set-Cookie response header sent by the origin server to the HTTP agent in order to maintain a conversational state.

Class Summary

Modifier and TypeClass and Description
public class
BasicCookieStore

Default implementation of CookieStore

public class
CookieIdentityComparator

This cookie comparator can be used to compare identity of cookies.

public class
CookieOrigin

CookieOrigin class encapsulates details of an origin server that are relevant when parsing, validating or matching HTTP cookies.

public class
CookiePathComparator

This cookie comparator ensures that multiple cookies satisfying a common criteria are ordered in the Cookie header such that those with more specific Path attributes precede those with less specific.

public class
CookiePriorityComparator

This cookie comparator ensures that cookies with longer paths take precedence over cookies with shorter path.

public class
CookieRestrictionViolationException

Signals that a cookie violates a restriction imposed by the cookie specification.

public class
MalformedCookieException

Signals that a cookie is in some way invalid or illegal in a given context

public class
StandardCookieSpec

Cookie specifications by their names supported by the HttpClient.