- java.lang.Object
-
- swim.http.HttpPart
-
- swim.http.HttpHeader
-
- swim.http.header.SecWebSocketKeyHeader
-
- All Implemented Interfaces:
Comparable<HttpHeader>
,Debug
public final class SecWebSocketKeyHeader extends HttpHeader
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SecWebSocketAcceptHeader
accept()
static SecWebSocketKeyHeader
create(byte[] key)
static SecWebSocketKeyHeader
create(String keyString)
<T> Output<T>
debug(Output<T> output)
Writes a developer readable, debug-formatted string representation of this object tooutput
.boolean
equals(Object other)
static SecWebSocketKeyHeader
generate()
int
hashCode()
byte[]
key()
String
lowerCaseName()
String
name()
static Parser<SecWebSocketKeyHeader>
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
-
key
public byte[] key()
-
accept
public SecWebSocketAcceptHeader accept()
-
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
.
-
create
public static SecWebSocketKeyHeader create(byte[] key)
-
create
public static SecWebSocketKeyHeader create(String keyString)
-
generate
public static SecWebSocketKeyHeader generate()
-
parseHeaderValue
public static Parser<SecWebSocketKeyHeader> parseHeaderValue(Input input, HttpParser http)
-
-