public class DeserializableCookie extends Object implements org.apache.http.cookie.ClientCookie
BasicClientCookie, which does not have
a no-args constructor, during deserialization by a
Gson instance.| Modifier and Type | Class and Description |
|---|---|
static class |
DeserializableCookie.Builder |
| Modifier and Type | Method and Description |
|---|---|
static DeserializableCookie.Builder |
builder(String name,
String value) |
boolean |
containsAttribute(String name) |
com.google.common.collect.ImmutableMap<String,String> |
copyAttributes() |
protected static boolean |
equals(Date a,
Date b) |
boolean |
equals(Object o) |
protected String |
findAttributeKey(String name) |
String |
getAttribute(String name) |
String |
getBestDomainProperty() |
String |
getComment() |
String |
getCommentURL() |
Date |
getCreationDate() |
String |
getDomain() |
String |
getDomainAttribute() |
Date |
getExpiryDate() |
Date |
getLastAccessed() |
String |
getName() |
String |
getPath() |
int[] |
getPorts() |
String |
getValue() |
int |
getVersion() |
int |
hashCode() |
boolean |
isExpired(Date now)
Returns true if this cookie has expired.
|
boolean |
isHttpOnly() |
boolean |
isPersistent() |
boolean |
isSecure() |
String |
toString() |
public static DeserializableCookie.Builder builder(String name, String value)
public String getAttribute(String name)
getAttribute in interface org.apache.http.cookie.ClientCookiepublic boolean containsAttribute(String name)
containsAttribute in interface org.apache.http.cookie.ClientCookiepublic String getName()
getName in interface org.apache.http.cookie.Cookiepublic String getValue()
getValue in interface org.apache.http.cookie.Cookiepublic String getComment()
getComment in interface org.apache.http.cookie.Cookiepublic String getCommentURL()
getCommentURL in interface org.apache.http.cookie.Cookiepublic Date getExpiryDate()
getExpiryDate in interface org.apache.http.cookie.Cookiepublic boolean isPersistent()
isPersistent in interface org.apache.http.cookie.Cookiepublic String getDomain()
getDomain in interface org.apache.http.cookie.Cookiepublic String getPath()
getPath in interface org.apache.http.cookie.Cookiepublic int[] getPorts()
getPorts in interface org.apache.http.cookie.Cookiepublic boolean isSecure()
isSecure in interface org.apache.http.cookie.Cookiepublic int getVersion()
getVersion in interface org.apache.http.cookie.Cookiepublic boolean isExpired(Date now)
isExpired in interface org.apache.http.cookie.Cookienow - Current timetrue if the cookie has expired.public Date getCreationDate()
public Date getLastAccessed()
public String getDomainAttribute()
public boolean isHttpOnly()
public String getBestDomainProperty()
Copyright © 2016–2018. All rights reserved.