- java.lang.Object
-
- swim.http.HttpPart
-
- swim.http.LanguageRange
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LanguageRange
create(String tag)
static LanguageRange
create(String tag, float weight)
static LanguageRange
create(String tag, String subtag)
static LanguageRange
create(String tag, String subtag, float weight)
<T> Output<T>
debug(Output<T> output)
Writes a developer readable, debug-formatted string representation of this object tooutput
.boolean
equals(Object other)
int
hashCode()
Writer<?,?>
httpWriter(HttpWriter http)
static LanguageRange
parse(String string)
static LanguageRange
star()
String
subtag()
String
tag()
String
toString()
float
weight()
LanguageRange
weight(float weight)
Writer<?,?>
writeHttp(Output<?> output, HttpWriter http)
-
Methods inherited from class swim.http.HttpPart
httpWriter, toHttp, writeHttp
-
-
-
-
Method Detail
-
tag
public String tag()
-
subtag
public String subtag()
-
weight
public float weight()
-
weight
public LanguageRange weight(float weight)
-
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
.
-
star
public static LanguageRange star()
-
create
public static LanguageRange create(String tag, String subtag, float weight)
-
create
public static LanguageRange create(String tag, String subtag)
-
create
public static LanguageRange create(String tag, float weight)
-
create
public static LanguageRange create(String tag)
-
parse
public static LanguageRange parse(String string)
-
-