- java.lang.Object
-
- swim.ws.WsFrame<T>
-
- swim.ws.WsControl<P,T>
-
- swim.ws.WsClose<P,T>
-
-
Method Summary
Modifier and Type Method Description Encoder<?,?>
contentEncoder(WsEncoder ws)
void
debug(Output<?> output)
Writes a developer readable, debug-formatted string representation of this object tooutput
.static <P,T>
WsClose<P,T>empty()
Encoder<?,?>
encodeContent(OutputBuffer<?> output, WsEncoder ws)
boolean
equals(Object other)
static <T> WsClose<WsStatus,T>
from(int code)
static <T> WsClose<WsStatus,T>
from(int code, String reason)
static <P,T>
WsClose<P,T>from(P payload)
static <P,T>
WsClose<P,T>from(P payload, Encoder<?,?> content)
static <T> WsClose<WsStatus,T>
from(WsStatus status)
int
hashCode()
WsOpcode
opcode()
P
payload()
String
toString()
-
-
-
Method Detail
-
empty
public static <P,T> WsClose<P,T> empty()
-
from
public static <P,T> WsClose<P,T> from(P payload)
-
contentEncoder
public Encoder<?,?> contentEncoder(WsEncoder ws)
- Specified by:
contentEncoder
in classWsFrame<T>
-
encodeContent
public Encoder<?,?> encodeContent(OutputBuffer<?> output, WsEncoder ws)
- Specified by:
encodeContent
in classWsFrame<T>
-
debug
public void debug(Output<?> output)
Description copied from interface:Debug
Writes a developer readable, debug-formatted string representation of this object tooutput
.
-
-