Module io.inverno.mod.http.base
Class SetCookieCodec
java.lang.Object
io.inverno.mod.http.base.header.AbstractHeaderCodec<SetCookieCodec.SetCookie,SetCookieCodec.SetCookie.Builder>
io.inverno.mod.http.base.internal.header.ParameterizedHeaderCodec<SetCookieCodec.SetCookie,SetCookieCodec.SetCookie.Builder>
io.inverno.mod.http.base.internal.header.SetCookieCodec
- All Implemented Interfaces:
HeaderCodec<SetCookieCodec.SetCookie>
public class SetCookieCodec
extends ParameterizedHeaderCodec<SetCookieCodec.SetCookie,SetCookieCodec.SetCookie.Builder>
Set-cookie HTTP HeaderCodec implementation.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class io.inverno.mod.http.base.internal.header.ParameterizedHeaderCodec
DEFAULT_PARAMETER_DELIMITER, DEFAULT_VALUE_DELIMITER, parameterDelimiter, parameterValueDelimiter, valueDelimiterFields inherited from class io.inverno.mod.http.base.header.AbstractHeaderCodec
builderSupplier, supportedHeaderNames -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionencodeValue(SetCookieCodec.SetCookie headerField) Encodes the value of the specified header as a string.Methods inherited from class io.inverno.mod.http.base.internal.header.ParameterizedHeaderCodec
decode, decode, encodeMethods inherited from class io.inverno.mod.http.base.header.AbstractHeaderCodec
getSupportedHeaderNamesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.inverno.mod.http.base.header.HeaderCodec
encode, encodeValue
-
Constructor Details
-
SetCookieCodec
public SetCookieCodec()Creates a set-cookie header codec.
-
-
Method Details
-
encodeValue
Description copied from interface:HeaderCodecEncodes the value of the specified header as a string.
The resulting value corresponds to the header field value as defined by RFC 7230 Section 3.2.
- Specified by:
encodeValuein interfaceHeaderCodec<SetCookieCodec.SetCookie>- Overrides:
encodeValuein classParameterizedHeaderCodec<SetCookieCodec.SetCookie,SetCookieCodec.SetCookie.Builder> - Parameters:
headerField- the header to encode- Returns:
- the encoded header value
-