Package com.postman.collection
Class Cookie
java.lang.Object
com.postman.collection.CollectionElement
com.postman.collection.Cookie
Encapsulates the
cookie
property of a Postman Collection.
Postman SDK analog: Cookie
.
NOTE: Provided for serialization/de-serialization only, doesn't provide any method capability.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetKey()
getName()
getPath()
getValue()
boolean
boolean
boolean
isSecure()
boolean
void
void
setExpires
(String expires) void
setExtensions
(PropertyList<Property> extensions) void
setHostOnly
(boolean hostOnly) void
setHttpOnly
(boolean httpOnly) void
void
void
void
setSecure
(boolean secure) void
setSession
(boolean session) void
Methods inherited from class com.postman.collection.CollectionElement
getCollection, getDefaultCollectionSchema, getDefaultValidationSchema, getParent, getUUID, getValidationMessages, isEquivalentTo, setParent, setUUID, toJson, toJson, validate, validate
-
Constructor Details
-
Cookie
public Cookie()
-
-
Method Details
-
getDomain
- Returns:
- String
-
setDomain
- Parameters:
domain
-
-
getExpires
- Returns:
- String
-
setExpires
- Parameters:
expires
-
-
getMaxAge
- Returns:
- String
-
setMaxAge
- Parameters:
maxAge
-
-
isHostOnly
public boolean isHostOnly()- Returns:
- boolean
-
setHostOnly
public void setHostOnly(boolean hostOnly) - Parameters:
hostOnly
-
-
isHttpOnly
public boolean isHttpOnly()- Returns:
- boolean
-
setHttpOnly
public void setHttpOnly(boolean httpOnly) - Parameters:
httpOnly
-
-
getName
- Returns:
- String
-
setName
- Parameters:
name
-
-
getPath
- Returns:
- String
-
setPath
- Parameters:
path
-
-
isSecure
public boolean isSecure()- Returns:
- boolean
-
setSecure
public void setSecure(boolean secure) - Parameters:
secure
-
-
isSession
public boolean isSession()- Returns:
- boolean
-
setSession
public void setSession(boolean session) - Parameters:
session
-
-
getValue
- Returns:
- String
-
setValue
- Parameters:
value
-
-
getExtensions
- Returns:
- ArrayList<
Property
>
-
setExtensions
- Parameters:
extensions
-
-
getKey
- Specified by:
getKey
in classCollectionElement
- Returns:
- String
-