- java.lang.Object
-
- swim.http.HttpPart
-
- swim.http.MediaType
-
-
Method Summary
-
Methods inherited from class swim.http.HttpPart
httpWriter, toHttp, writeHttp
-
-
-
-
Method Detail
-
isApplication
public boolean isApplication()
-
isAudio
public boolean isAudio()
-
isImage
public boolean isImage()
-
isMultipart
public boolean isMultipart()
-
isText
public boolean isText()
-
isVideo
public boolean isVideo()
-
type
public String type()
-
subtype
public String subtype()
-
params
public HashTrieMap<String,String> params()
-
httpWriter
public Writer<?,?> httpWriter(HttpWriter http)
- Specified by:
httpWriter
in classHttpPart
-
writeHttp
public Writer<?,?> writeHttp(Output<?> output, HttpWriter http)
-
debug
public <T> Output<T> debug(Output<T> output)
Description copied from interface:Debug
Writes a developer readable, debug-formatted string representation of this object tooutput
.
-
applicationJavascript
public static MediaType applicationJavascript()
-
applicationJson
public static MediaType applicationJson()
-
applicationOctetStream
public static MediaType applicationOctetStream()
-
applicationXml
public static MediaType applicationXml()
-
applicationXRecon
public static MediaType applicationXRecon()
-
imageJpeg
public static MediaType imageJpeg()
-
imagePng
public static MediaType imagePng()
-
imageSvgXml
public static MediaType imageSvgXml()
-
textCss
public static MediaType textCss()
-
textHtml
public static MediaType textHtml()
-
textPlain
public static MediaType textPlain()
-
create
public static MediaType create(String type, String subtype, HashTrieMap<String,String> params)
-
-