public class ScrapingCookie
extends java.lang.Object
| Constructor and Description |
|---|
ScrapingCookie(java.lang.String name,
java.lang.String value,
java.lang.String domain,
java.lang.String path,
java.util.Date expires,
boolean isSecure)
Creates the cookie
|
ScrapingCookie(java.lang.String name,
java.lang.String value,
java.lang.String domain,
java.lang.String path,
java.lang.Long maxAge,
boolean isSecure)
Creates the cookie
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDomain()
Returns the Domain for the object
|
java.util.Date |
getExpires()
Returns the Expires for the object
|
java.lang.String |
getName()
Returns the Name for the object
|
java.lang.String |
getPath()
Returns the Path for the object
|
java.lang.String |
getValue()
Returns the Value for the object
|
boolean |
isSecure()
Returns the IsSecure for the object
|
java.lang.String |
toString() |
public ScrapingCookie(@NotNull java.lang.String name, @NotNull java.lang.String value, @NotNull java.lang.String domain, @Nullable java.lang.String path, @Nullable java.util.Date expires, boolean isSecure)
name - The name of the cookievalue - The value of the cookiedomain - The domain in which the cookie appliespath - The path the cookie applies to, or null for the entire domainexpires - When the cookie expires, or null for session durationisSecure - Is a secure cookie or notpublic ScrapingCookie(@NotNull java.lang.String name, @NotNull java.lang.String value, @NotNull java.lang.String domain, @Nullable java.lang.String path, @Nullable java.lang.Long maxAge, boolean isSecure)
name - The name of the cookievalue - The value of the cookiedomain - The domain in which the cookie appliespath - The path the cookie applies to, or null for the entire domainmaxAge - The max age of the cookie, or null for session durationisSecure - Is a secure cookie or not@NotNull public java.lang.String getName()
@NotNull public java.lang.String getValue()
@NotNull public java.lang.String getDomain()
@Nullable public java.lang.String getPath()
@Nullable public java.util.Date getExpires()
public boolean isSecure()
public java.lang.String toString()
toString in class java.lang.Object