public class GoAwayConverter extends Object implements JsonCodec<GoAway,JsonObject>
| Modifier and Type | Field and Description |
|---|---|
static GoAwayConverter |
INSTANCE |
| Constructor and Description |
|---|
GoAwayConverter() |
| Modifier and Type | Method and Description |
|---|---|
GoAway |
decode(JsonObject value)
Decode
<J> to <T>. |
JsonObject |
encode(GoAway value)
Encode
<T> to <J>. |
Class<GoAway> |
getTargetClass() |
public static final GoAwayConverter INSTANCE
public JsonObject encode(GoAway value)
JsonEncoder<T> to <J>.
value will not be null and the implementation must not return null.encode in interface JsonEncoder<GoAway,JsonObject>value - the valuepublic GoAway decode(JsonObject value)
JsonDecoder<J> to <T>.
json will not be null and the implementation must not return null.decode in interface JsonDecoder<GoAway,JsonObject>value - the json valuepublic Class<GoAway> getTargetClass()
getTargetClass in interface JsonDecoder<GoAway,JsonObject>getTargetClass in interface JsonEncoder<GoAway,JsonObject><T>Copyright © 2019 Eclipse. All rights reserved.