Package io.servicetalk.http.api
Class DefaultHttpCookiePair
java.lang.Object
io.servicetalk.http.api.DefaultHttpCookiePair
- All Implemented Interfaces:
HttpCookiePair
Default implementation of
HttpCookiePair
.-
Constructor Summary
ConstructorsConstructorDescriptionDefaultHttpCookiePair
(CharSequence cookieName, CharSequence cookieValue) Create a new instance.DefaultHttpCookiePair
(CharSequence cookieName, CharSequence cookieValue, boolean isWrapped) Create a new instance. -
Method Summary
Modifier and TypeMethodDescriptionencoded()
Get the encoded value of thisHttpCookiePair
.boolean
int
hashCode()
boolean
Returnstrue
if the value should be wrapped in DQUOTE as described in cookie-value.name()
Returns the name of thisHttpCookiePair
.toString()
value()
Returns the value of thisHttpCookiePair
.
-
Constructor Details
-
DefaultHttpCookiePair
Create a new instance.- Parameters:
cookieName
- The cookie-name.cookieValue
- The cookie-value.
-
DefaultHttpCookiePair
Create a new instance.- Parameters:
cookieName
- The cookie-name.cookieValue
- The cookie-value.isWrapped
-true
if the value should be wrapped in DQUOTE as described in cookie-value
-
-
Method Details
-
name
Description copied from interface:HttpCookiePair
Returns the name of thisHttpCookiePair
.- Specified by:
name
in interfaceHttpCookiePair
- Returns:
- The name of this
HttpCookiePair
-
value
Description copied from interface:HttpCookiePair
Returns the value of thisHttpCookiePair
.- Specified by:
value
in interfaceHttpCookiePair
- Returns:
- The value of this
HttpCookiePair
-
isWrapped
public boolean isWrapped()Description copied from interface:HttpCookiePair
Returnstrue
if the value should be wrapped in DQUOTE as described in cookie-value.- Specified by:
isWrapped
in interfaceHttpCookiePair
- Returns:
true
if the value should be wrapped in DQUOTE as described in cookie-value.
-
encoded
Description copied from interface:HttpCookiePair
Get the encoded value of thisHttpCookiePair
.- Specified by:
encoded
in interfaceHttpCookiePair
- Returns:
- the encoded value of this
HttpCookiePair
.
-
equals
-
hashCode
public int hashCode() -
toString
-