- java.lang.Object
-
- swim.ws.WsFrame<T>
-
- swim.ws.WsDataFrame<T>
-
- swim.ws.WsTextFrame<T>
-
- All Implemented Interfaces:
Debug
public final class WsTextFrame<T> extends WsDataFrame<T> implements Debug
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WsTextFrame<String>
create(String payloadValue)
static <T> WsTextFrame<T>
create(Encoder<?,?> payloadEncoder)
static <T> WsTextFrame<T>
create(T payloadValue, Encoder<?,?> payloadEncoder)
<T> Output<T>
debug(Output<T> output)
Writes a developer readable, debug-formatted string representation of this object tooutput
.static WsTextFrame<String>
empty()
boolean
equals(Object other)
WsOpcode
frameType()
int
hashCode()
Encoder<?,?>
payloadEncoder(WsEncoder ws)
T
payloadValue()
String
toString()
-
-
-
Method Detail
-
payloadValue
public T payloadValue()
- Specified by:
payloadValue
in classWsDataFrame<T>
-
payloadEncoder
public Encoder<?,?> payloadEncoder(WsEncoder ws)
- Specified by:
payloadEncoder
in classWsFrame<T>
-
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
.
-
empty
public static WsTextFrame<String> empty()
-
create
public static <T> WsTextFrame<T> create(T payloadValue, Encoder<?,?> payloadEncoder)
-
create
public static WsTextFrame<String> create(String payloadValue)
-
create
public static <T> WsTextFrame<T> create(Encoder<?,?> payloadEncoder)
-
-