- java.lang.Object
-
- swim.http.HttpPart
-
- swim.http.HttpHeader
-
- swim.http.header.ContentTypeHeader
-
- All Implemented Interfaces:
Comparable<HttpHeader>,swim.codec.Debug
public final class ContentTypeHeader extends HttpHeader
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ContentTypeHeadercreate(String mediaType)static ContentTypeHeadercreate(String type, String subtype)static ContentTypeHeadercreate(String type, String subtype, swim.collections.HashTrieMap<String,String> params)static ContentTypeHeadercreate(MediaType mediaType)<T> swim.codec.Output<T>debug(swim.codec.Output<T> output)booleanequals(Object other)StringgetParam(String key)inthashCode()StringlowerCaseName()MediaTypemediaType()Stringname()ContentTypeHeaderparam(String key, String value)swim.collections.HashTrieMap<String,String>params()static swim.codec.Parser<ContentTypeHeader>parseHeaderValue(swim.codec.Input input, HttpParser http)Stringsubtype()Stringtype()swim.codec.Writer<?,?>writeHeaderValue(swim.codec.Output<?> output, HttpWriter http)-
Methods inherited from class swim.http.HttpHeader
compareTo, httpWriter, isBlank, parseHttp, toString, value, writeHttp
-
Methods inherited from class swim.http.HttpPart
httpWriter, toHttp, writeHttp
-
-
-
-
Method Detail
-
lowerCaseName
public String lowerCaseName()
- Specified by:
lowerCaseNamein classHttpHeader
-
name
public String name()
- Specified by:
namein classHttpHeader
-
mediaType
public MediaType mediaType()
-
type
public String type()
-
subtype
public String subtype()
-
param
public ContentTypeHeader param(String key, String value)
-
writeHeaderValue
public swim.codec.Writer<?,?> writeHeaderValue(swim.codec.Output<?> output, HttpWriter http)- Specified by:
writeHeaderValuein classHttpHeader
-
debug
public <T> swim.codec.Output<T> debug(swim.codec.Output<T> output)
- Specified by:
debugin interfaceswim.codec.Debug- Specified by:
debugin classHttpHeader
-
create
public static ContentTypeHeader create(MediaType mediaType)
-
create
public static ContentTypeHeader create(String type, String subtype, swim.collections.HashTrieMap<String,String> params)
-
create
public static ContentTypeHeader create(String type, String subtype)
-
create
public static ContentTypeHeader create(String mediaType)
-
parseHeaderValue
public static swim.codec.Parser<ContentTypeHeader> parseHeaderValue(swim.codec.Input input, HttpParser http)
-
-