- java.lang.Object
-
- swim.http.HttpPart
-
- swim.http.HttpHeader
-
- swim.http.header.SetCookieHeader
-
- All Implemented Interfaces:
Comparable<HttpHeader>,Debug
public class SetCookieHeader extends HttpHeader
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSetCookieHeader.SameSite
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SetCookieHeadercreate(String name)static SetCookieHeadercreate(String name, String value)static SetCookieHeadercreate(Cookie cookie)<T> Output<T>debug(Output<T> output)Writes a developer readable, debug-formatted string representation of this object tooutput.booleanequals(Object other)voidexpire()inthashCode()booleanisBlank()StringlowerCaseName()Stringname()voidsetDomain(String domain)voidsetHttpOnly()voidsetMaxAge(long maxAge)voidsetPath(String path)voidsetSameSite(SetCookieHeader.SameSite sameSite)voidsetSecure()voidunsetDomain()voidunsetHttpOnly()voidunsetMaxAge()voidunsetPath()voidunsetSameSite()voidunsetSecure()Writer<?,?>writeHeaderValue(Output<?> output, HttpWriter http)-
Methods inherited from class swim.http.HttpHeader
compareTo, httpWriter, parseHttp, toString, value, writeHttp
-
Methods inherited from class swim.http.HttpPart
httpWriter, toHttp, writeHttp
-
-
-
-
Method Detail
-
isBlank
public boolean isBlank()
- Overrides:
isBlankin classHttpHeader
-
lowerCaseName
public String lowerCaseName()
- Specified by:
lowerCaseNamein classHttpHeader
-
name
public String name()
- Specified by:
namein classHttpHeader
-
writeHeaderValue
public Writer<?,?> writeHeaderValue(Output<?> output, HttpWriter http)
- Specified by:
writeHeaderValuein classHttpHeader
-
debug
public <T> Output<T> debug(Output<T> output)
Description copied from interface:DebugWrites a developer readable, debug-formatted string representation of this object tooutput.- Specified by:
debugin interfaceDebug- Specified by:
debugin classHttpHeader- Returns:
- the continuation of the
output.
-
create
public static SetCookieHeader create(Cookie cookie)
-
create
public static SetCookieHeader create(String name, String value)
-
create
public static SetCookieHeader create(String name)
-
expire
public void expire()
-
setSecure
public void setSecure()
-
unsetSecure
public void unsetSecure()
-
setHttpOnly
public void setHttpOnly()
-
unsetHttpOnly
public void unsetHttpOnly()
-
setMaxAge
public void setMaxAge(long maxAge)
-
unsetMaxAge
public void unsetMaxAge()
-
setDomain
public void setDomain(String domain)
-
unsetDomain
public void unsetDomain()
-
setPath
public void setPath(String path)
-
unsetPath
public void unsetPath()
-
setSameSite
public void setSameSite(SetCookieHeader.SameSite sameSite)
-
unsetSameSite
public void unsetSameSite()
-
-