- java.lang.Object
-
- swim.http.HttpPart
-
- swim.http.MediaRange
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MediaRange
create(String type, String subtype)
static MediaRange
create(String type, String subtype, float weight)
static MediaRange
create(String type, String subtype, float weight, HashTrieMap<String,String> params)
static MediaRange
create(String type, String subtype, HashTrieMap<String,String> params)
<T> Output<T>
debug(Output<T> output)
Writes a developer readable, debug-formatted string representation of this object tooutput
.boolean
equals(Object other)
String
getParam(String key)
int
hashCode()
Writer<?,?>
httpWriter(HttpWriter http)
boolean
isApplication()
boolean
isAudio()
boolean
isImage()
boolean
isMultipart()
boolean
isText()
boolean
isVideo()
MediaRange
param(String key, String value)
HashTrieMap<String,String>
params()
static MediaRange
parse(String string)
String
subtype()
String
toString()
String
type()
float
weight()
MediaRange
weight(float weight)
Writer<?,?>
writeHttp(Output<?> output, HttpWriter http)
-
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()
-
weight
public float weight()
-
weight
public MediaRange weight(float weight)
-
params
public HashTrieMap<String,String> params()
-
param
public MediaRange param(String key, String value)
-
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
.
-
create
public static MediaRange create(String type, String subtype, float weight, HashTrieMap<String,String> params)
-
create
public static MediaRange create(String type, String subtype, float weight)
-
create
public static MediaRange create(String type, String subtype, HashTrieMap<String,String> params)
-
create
public static MediaRange create(String type, String subtype)
-
parse
public static MediaRange parse(String string)
-
-