- java.lang.Object
-
- swim.http.HttpPart
-
- swim.http.HttpHeader
-
- swim.http.header.SecWebSocketVersion
-
- All Implemented Interfaces:
Debug
public final class SecWebSocketVersion extends HttpHeader
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SecWebSocketVersioncreate(Integer... versions)static SecWebSocketVersioncreate(FingerTrieSeq<Integer> versions)<T> Output<T>debug(Output<T> output)Writes a developer readable, debug-formatted string representation of this object tooutput.booleanequals(Object other)inthashCode()booleanisBlank()StringlowerCaseName()Stringname()static Parser<SecWebSocketVersion>parseHttpValue(Input input, HttpParser http)booleansupports(int version)static SecWebSocketVersionversion13()FingerTrieSeq<Integer>versions()Writer<?,?>writeHttpValue(Output<?> output, HttpWriter http)-
Methods inherited from class swim.http.HttpHeader
httpWriter, parseHttp, toString, value, writeHttp
-
Methods inherited from class swim.http.HttpPart
httpWriter, toHttp, writeHttp
-
-
-
-
Method Detail
-
isBlank
public boolean isBlank()
- Overrides:
isBlankin classHttpHeader
-
lowerCaseName
public String lowerCaseName()
- Specified by:
lowerCaseNamein classHttpHeader
-
name
public String name()
- Specified by:
namein classHttpHeader
-
versions
public FingerTrieSeq<Integer> versions()
-
supports
public boolean supports(int version)
-
writeHttpValue
public Writer<?,?> writeHttpValue(Output<?> output, HttpWriter http)
- Specified by:
writeHttpValuein classHttpHeader
-
debug
public <T> Output<T> debug(Output<T> output)
Description copied from interface:DebugWrites a developer readable, debug-formatted string representation of this object tooutput.- Specified by:
debugin interfaceDebug- Specified by:
debugin classHttpHeader- Returns:
- the continuation of the
output.
-
version13
public static SecWebSocketVersion version13()
-
create
public static SecWebSocketVersion create(FingerTrieSeq<Integer> versions)
-
create
public static SecWebSocketVersion create(Integer... versions)
-
parseHttpValue
public static Parser<SecWebSocketVersion> parseHttpValue(Input input, HttpParser http)
-
-