public class CookieSettingWriter extends HeaderWriter<CookieSetting>
Constructor and Description |
---|
CookieSettingWriter() |
Modifier and Type | Method and Description |
---|---|
CookieSettingWriter |
append(CookieSetting cookieSetting)
Appends a value.
|
CookieSettingWriter |
appendValue(java.lang.String value,
int version)
Appends a source string as an HTTP comment.
|
static java.lang.String |
write(CookieSetting cookieSetting)
Writes a cookie setting.
|
static java.lang.String |
write(java.util.List<CookieSetting> cookieSettings)
Writes a list of cookie settings.
|
append, append, append, append, append, append, appendComment, appendExtension, appendExtension, appendParameterSeparator, appendProduct, appendQuotedPair, appendQuotedString, appendSpace, appendToken, appendUriEncoded, appendValueSeparator, canWrite
public static java.lang.String write(CookieSetting cookieSetting)
cookieSetting
- The cookie setting to format.public static java.lang.String write(java.util.List<CookieSetting> cookieSettings)
cookieSettings
- The cookie settings to write.public CookieSettingWriter append(CookieSetting cookieSetting) throws java.lang.IllegalArgumentException
HeaderWriter
append
in class HeaderWriter<CookieSetting>
cookieSetting
- The value.java.lang.IllegalArgumentException
public CookieSettingWriter appendValue(java.lang.String value, int version)
value
- The source string to format.version
- The cookie version.Copyright © 2005-2024 Restlet.