- java.lang.Object
-
- swim.http.HttpPart
-
- swim.http.LanguageRange
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
debug(Output<?> output)
Writes a developer readable, debug-formatted string representation of this object tooutput
.boolean
equals(Object other)
static LanguageRange
from(String tag)
static LanguageRange
from(String tag, float weight)
static LanguageRange
from(String tag, String subtag)
static LanguageRange
from(String tag, String subtag, float weight)
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
-
star
public static LanguageRange star()
-
from
public static LanguageRange from(String tag, String subtag, float weight)
-
from
public static LanguageRange from(String tag, String subtag)
-
from
public static LanguageRange from(String tag, float weight)
-
from
public static LanguageRange from(String tag)
-
parse
public static LanguageRange parse(String string)
-
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 void debug(Output<?> output)
Description copied from interface:Debug
Writes a developer readable, debug-formatted string representation of this object tooutput
.
-
-