Top Description Fields Constructors Methods
org.apache.hc.client5.http.cookie

public final Class CookieOrigin

extends Object
Class Inheritance
Annotations
@Contract
threading:IMMUTABLE
Imports
java.util.Locale, org.apache.hc.core5.annotation.Contract, .ThreadingBehavior, org.apache.hc.core5.util.Args, .TextUtils

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

Field Summary

Modifier and TypeField and Description
private final String
private final String
private final int
private final boolean

Constructor Summary

AccessConstructor and Description
public
CookieOrigin(final String host, final int port, final String path, final boolean secure)

Method Summary

Modifier and TypeMethod and Description
public String
public String
public int
public boolean
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

hostback to summary
private final String host
pathback to summary
private final String path
portback to summary
private final int port
secureback to summary
private final boolean secure

Constructor Detail

CookieOriginback to summary
public CookieOrigin(final String host, final int port, final String path, final boolean secure)

Method Detail

getHostback to summary
public String getHost()
getPathback to summary
public String getPath()
getPortback to summary
public int getPort()
isSecureback to summary
public boolean isSecure()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override