public class EtcdKeysResponseDecoder extends AbstractJsonResponseDecoder<EtcdKeysResponse>
| Modifier and Type | Field and Description |
|---|---|
static EtcdKeysResponseDecoder |
INSTANCE |
protected static java.lang.CharSequence |
X_ETCD_CLUSTER_ID |
protected static java.lang.CharSequence |
X_ETCD_INDEX |
protected static java.lang.CharSequence |
X_RAFT_INDEX |
protected static java.lang.CharSequence |
X_RAFT_TERM |
| Constructor and Description |
|---|
EtcdKeysResponseDecoder() |
| Modifier and Type | Method and Description |
|---|---|
protected static java.util.Date |
convertDate(java.lang.String date)
Converts an ISO8601 date to Java date
|
protected EtcdKeysResponse |
decodeJson(io.netty.handler.codec.http.HttpHeaders headers,
com.fasterxml.jackson.core.JsonParser parser)
Parses the Json content of the Etcd Response
|
decodepublic static final EtcdKeysResponseDecoder INSTANCE
protected static final java.lang.CharSequence X_ETCD_CLUSTER_ID
protected static final java.lang.CharSequence X_ETCD_INDEX
protected static final java.lang.CharSequence X_RAFT_INDEX
protected static final java.lang.CharSequence X_RAFT_TERM
protected EtcdKeysResponse decodeJson(io.netty.handler.codec.http.HttpHeaders headers, com.fasterxml.jackson.core.JsonParser parser) throws EtcdException, java.io.IOException
decodeJson in class AbstractJsonResponseDecoder<EtcdKeysResponse>headers - parser - Json parserEtcdException - if exception was found in responsejava.io.IOException - if Json parsing or parser creation failsprotected static java.util.Date convertDate(java.lang.String date)
date - as string to convert