- java.lang.Object
-
- swim.http.HttpPart
-
- swim.http.HttpHeader
-
- swim.http.header.ContentType
-
- All Implemented Interfaces:
swim.codec.Debug
public final class ContentType extends HttpHeader
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddebug(swim.codec.Output<?> output)booleanequals(Object other)static ContentTypefrom(String mediaType)static ContentTypefrom(String type, String subtype)static ContentTypefrom(String type, String subtype, swim.collections.HashTrieMap<String,String> params)static ContentTypefrom(MediaType mediaType)StringgetParam(String key)inthashCode()StringlowerCaseName()MediaTypemediaType()Stringname()ContentTypeparam(String key, String value)swim.collections.HashTrieMap<String,String>params()static swim.codec.Parser<ContentType>parseHttpValue(swim.codec.Input input, HttpParser http)Stringsubtype()Stringtype()swim.codec.Writer<?,?>writeHttpValue(swim.codec.Output<?> output, HttpWriter http)-
Methods inherited from class swim.http.HttpHeader
httpWriter, isBlank, parseHttp, toString, value, writeHttp
-
Methods inherited from class swim.http.HttpPart
httpWriter, toHttp, writeHttp
-
-
-
-
Method Detail
-
from
public static ContentType from(MediaType mediaType)
-
from
public static ContentType from(String type, String subtype, swim.collections.HashTrieMap<String,String> params)
-
from
public static ContentType from(String type, String subtype)
-
from
public static ContentType from(String mediaType)
-
parseHttpValue
public static swim.codec.Parser<ContentType> parseHttpValue(swim.codec.Input input, HttpParser http)
-
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 ContentType param(String key, String value)
-
writeHttpValue
public swim.codec.Writer<?,?> writeHttpValue(swim.codec.Output<?> output, HttpWriter http)- Specified by:
writeHttpValuein classHttpHeader
-
debug
public void debug(swim.codec.Output<?> output)
-
-