- 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)voiddebug(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)booleanequals(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)inthashCode()WsOpcodeopcode()Ppayload()StringtoString()
-
-
-
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:
contentEncoderin classWsFrame<T>
-
encodeContent
public Encoder<?,?> encodeContent(OutputBuffer<?> output, WsEncoder ws)
- Specified by:
encodeContentin classWsFrame<T>
-
debug
public void debug(Output<?> output)
Description copied from interface:DebugWrites a developer readable, debug-formatted string representation of this object tooutput.
-
-