- java.lang.Object
-
- swim.http.HttpPart
-
- swim.http.HttpHeader
-
- swim.http.header.SecWebSocketKey
-
- All Implemented Interfaces:
Debug
public final class SecWebSocketKey extends HttpHeader
-
-
Method Summary
Modifier and Type Method Description SecWebSocketAcceptaccept()voiddebug(Output<?> output)Writes a developer readable, debug-formatted string representation of this object tooutput.booleanequals(Object other)static SecWebSocketKeyfrom(byte[] key)static SecWebSocketKeyfrom(String keyString)static SecWebSocketKeygenerate()inthashCode()byte[]key()StringlowerCaseName()Stringname()static Parser<SecWebSocketKey>parseHttpValue(Input input, HttpParser http)Writer<?,?>writeHttpValue(Output<?> output, HttpWriter http)-
Methods inherited from class swim.http.HttpHeader
httpWriter, isBlank, parseHttp, toString, value, writeHttp
-
Methods inherited from class swim.http.HttpPart
httpWriter, toHttp, writeHttp
-
-
-
-
Method Detail
-
from
public static SecWebSocketKey from(byte[] key)
-
from
public static SecWebSocketKey from(String keyString)
-
generate
public static SecWebSocketKey generate()
-
parseHttpValue
public static Parser<SecWebSocketKey> parseHttpValue(Input input, HttpParser http)
-
lowerCaseName
public String lowerCaseName()
- Specified by:
lowerCaseNamein classHttpHeader
-
name
public String name()
- Specified by:
namein classHttpHeader
-
key
public byte[] key()
-
accept
public SecWebSocketAccept accept()
-
writeHttpValue
public Writer<?,?> writeHttpValue(Output<?> output, HttpWriter http)
- Specified by:
writeHttpValuein classHttpHeader
-
-