java.lang.Object
io.inverno.mod.http.base.header.AbstractHeaderCodec<CookieCodec.Cookie,CookieCodec.Cookie.Builder>
io.inverno.mod.http.base.internal.header.ParameterizedHeaderCodec<CookieCodec.Cookie,CookieCodec.Cookie.Builder>
io.inverno.mod.http.base.internal.header.CookieCodec
- All Implemented Interfaces:
HeaderCodec<CookieCodec.Cookie>
public class CookieCodec
extends ParameterizedHeaderCodec<CookieCodec.Cookie,CookieCodec.Cookie.Builder>
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
ConstructorsConstructorDescriptionCookieCodec(ObjectConverter<String> parameterConverter) Creates a cookie header codec with the specified parameter value converter. -
Method Summary
Modifier and TypeMethodDescriptionencodeValue(CookieCodec.Cookie 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
-
CookieCodec
Creates a cookie header codec with the specified parameter value converter.
- Parameters:
parameterConverter- a string object converter
-
-
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<CookieCodec.Cookie>- Overrides:
encodeValuein classParameterizedHeaderCodec<CookieCodec.Cookie,CookieCodec.Cookie.Builder> - Parameters:
headerField- the header to encode- Returns:
- the encoded header value
-