java.lang.Object
swim.http.HttpPart
swim.http.MediaRange
- All Implemented Interfaces:
Debug
-
Method Summary
Modifier and TypeMethodDescriptionstatic MediaRange
static MediaRange
static MediaRange
static MediaRange
<T> Output<T>
Writes a developer readable, debug-formatted string representation of this object tooutput
.boolean
int
hashCode()
Writer<?,
?> httpWriter
(HttpWriter http) boolean
boolean
isAudio()
boolean
isImage()
boolean
boolean
isText()
boolean
isVideo()
params()
static MediaRange
subtype()
toString()
type()
float
weight()
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:
httpWriter
in classHttpPart
-
writeHttp
-
equals
-
hashCode
public int hashCode() -
debug
Description copied from interface:Debug
Writes 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
-