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