- java.lang.Object
-
- swim.http.HttpPart
-
- swim.http.HttpHeader
-
- All Implemented Interfaces:
Comparable<HttpHeader>
,Debug
- Direct Known Subclasses:
AcceptCharsetHeader
,AcceptEncodingHeader
,AcceptHeader
,AcceptLanguageHeader
,AllowHeader
,ConnectionHeader
,ContentEncodingHeader
,ContentLengthHeader
,ContentTypeHeader
,ExpectHeader
,HostHeader
,MaxForwardsHeader
,OriginHeader
,RawHeader
,SecWebSocketAcceptHeader
,SecWebSocketExtensionsHeader
,SecWebSocketKeyHeader
,SecWebSocketProtocolHeader
,SecWebSocketVersionHeader
,ServerHeader
,TransferEncodingHeader
,UpgradeHeader
,UserAgentHeader
public abstract class HttpHeader extends HttpPart implements Comparable<HttpHeader>, Debug
-
-
Constructor Summary
Constructors Constructor Description HttpHeader()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
compareTo(HttpHeader that)
abstract <T> Output<T>
debug(Output<T> output)
Writes a developer readable, debug-formatted string representation of this object tooutput
.Writer<?,?>
httpWriter(HttpWriter http)
boolean
isBlank()
abstract String
lowerCaseName()
abstract String
name()
static HttpHeader
parseHttp(String string)
String
toString()
String
value()
abstract Writer<?,?>
writeHeaderValue(Output<?> output, HttpWriter http)
Writer<?,?>
writeHttp(Output<?> output, HttpWriter http)
-
Methods inherited from class swim.http.HttpPart
httpWriter, toHttp, writeHttp
-
-
-
-
Method Detail
-
isBlank
public boolean isBlank()
-
lowerCaseName
public abstract String lowerCaseName()
-
name
public abstract String name()
-
value
public String value()
-
httpWriter
public Writer<?,?> httpWriter(HttpWriter http)
- Specified by:
httpWriter
in classHttpPart
-
writeHttp
public Writer<?,?> writeHttp(Output<?> output, HttpWriter http)
-
writeHeaderValue
public abstract Writer<?,?> writeHeaderValue(Output<?> output, HttpWriter http)
-
compareTo
public int compareTo(HttpHeader that)
- Specified by:
compareTo
in interfaceComparable<HttpHeader>
-
debug
public abstract <T> Output<T> debug(Output<T> output)
Description copied from interface:Debug
Writes a developer readable, debug-formatted string representation of this object tooutput
.
-
parseHttp
public static HttpHeader parseHttp(String string)
-
-