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