public static class EtcdResponseDecoders.JsonDecoder<T> extends java.lang.Object implements EtcdResponseDecoder<T>
| Constructor and Description |
|---|
EtcdResponseDecoders.JsonDecoder(java.lang.Class<T> type) |
public EtcdResponseDecoders.JsonDecoder(java.lang.Class<T> type)
public T decode(io.netty.handler.codec.http.HttpHeaders headers, io.netty.buffer.ByteBuf content) throws EtcdException, java.io.IOException
decode in interface EtcdResponseDecoder<T>headers - to decode withcontent - to decodeEtcdException - If etcd returns an exception from the serverjava.io.IOException - if content is faulty