public class JsonDecoder extends Object implements WebSocketDecoder
| Constructor and Description |
|---|
JsonDecoder() |
| Modifier and Type | Method and Description |
|---|---|
WebSocketDecodeContext |
decodeMessage(io.netty.buffer.ByteBuf binary)
Decodes the first few common wrapper fields of an incoming web socket message.
Sample: [1,1,2,{"<resource>":"<operation>", "data": <undecoded remainder>}] |
<T extends com.google.protobuf.Message.Builder> |
decodeMessageData(WebSocketDecodeContext ctx,
T builder)
Decodes any data that may be wrapped by the incoming web socket message
|
public WebSocketDecodeContext decodeMessage(io.netty.buffer.ByteBuf binary) throws WebSocketException
decodeMessage in interface WebSocketDecoderWebSocketExceptionpublic <T extends com.google.protobuf.Message.Builder> T decodeMessageData(WebSocketDecodeContext ctx, T builder) throws WebSocketException
WebSocketDecoderdecodeMessageData in interface WebSocketDecoderWebSocketExceptionCopyright © 2018 Space Applications Services. All rights reserved.