- java.lang.Object
-
- swim.http.HttpPart
-
- swim.http.HttpHeader
-
- swim.http.header.AcceptLanguageHeader
-
- All Implemented Interfaces:
Comparable<HttpHeader>
,Debug
public final class AcceptLanguageHeader extends HttpHeader
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AcceptLanguageHeader
create(String... languageStrings)
static AcceptLanguageHeader
create(FingerTrieSeq<LanguageRange> languages)
static AcceptLanguageHeader
create(LanguageRange... languages)
<T> Output<T>
debug(Output<T> output)
Writes a developer readable, debug-formatted string representation of this object tooutput
.static AcceptLanguageHeader
empty()
boolean
equals(Object other)
int
hashCode()
boolean
isBlank()
FingerTrieSeq<LanguageRange>
languages()
String
lowerCaseName()
String
name()
static Parser<AcceptLanguageHeader>
parseHeaderValue(Input input, HttpParser http)
Writer<?,?>
writeHeaderValue(Output<?> output, HttpWriter http)
-
Methods inherited from class swim.http.HttpHeader
compareTo, httpWriter, parseHttp, toString, value, writeHttp
-
Methods inherited from class swim.http.HttpPart
httpWriter, toHttp, writeHttp
-
-
-
-
Method Detail
-
isBlank
public boolean isBlank()
- Overrides:
isBlank
in classHttpHeader
-
lowerCaseName
public String lowerCaseName()
- Specified by:
lowerCaseName
in classHttpHeader
-
name
public String name()
- Specified by:
name
in classHttpHeader
-
languages
public FingerTrieSeq<LanguageRange> languages()
-
writeHeaderValue
public Writer<?,?> writeHeaderValue(Output<?> output, HttpWriter http)
- Specified by:
writeHeaderValue
in classHttpHeader
-
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
.- Specified by:
debug
in interfaceDebug
- Specified by:
debug
in classHttpHeader
- Returns:
- the continuation of the
output
.
-
empty
public static AcceptLanguageHeader empty()
-
create
public static AcceptLanguageHeader create(FingerTrieSeq<LanguageRange> languages)
-
create
public static AcceptLanguageHeader create(LanguageRange... languages)
-
create
public static AcceptLanguageHeader create(String... languageStrings)
-
parseHeaderValue
public static Parser<AcceptLanguageHeader> parseHeaderValue(Input input, HttpParser http)
-
-