java.lang.Object
swim.http.HttpPart
swim.http.MediaRange
- All Implemented Interfaces:
Debug
-
Method Summary
Modifier and TypeMethodDescriptionstatic MediaRangestatic MediaRangestatic MediaRangestatic MediaRange<T> Output<T>Writes a developer readable, debug-formatted string representation of this object tooutput.booleaninthashCode()Writer<?,?> httpWriter(HttpWriter http) booleanbooleanisAudio()booleanisImage()booleanbooleanisText()booleanisVideo()params()static MediaRangesubtype()toString()type()floatweight()weight(float weight) Writer<?,?> writeHttp(Output<?> output, HttpWriter http) Methods inherited from class swim.http.HttpPart
httpWriter, toHttp, writeHttp
-
Method Details
-
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
-
subtype
-
weight
public float weight() -
weight
-
params
-
getParam
-
param
-
httpWriter
- Specified by:
httpWriterin classHttpPart
-
writeHttp
-
equals
-
hashCode
public int hashCode() -
debug
Description copied from interface:DebugWrites a developer readable, debug-formatted string representation of this object tooutput. -
toString
-
create
public static MediaRange create(String type, String subtype, float weight, HashTrieMap<String, String> params) -
create
-
create
-
create
-
parse
-