java.lang.Object
org.elasticsearch.xcontent.FilterXContentParser
org.elasticsearch.xcontent.FilterXContentParserWrapper
org.elasticsearch.xpack.core.watcher.support.xcontent.WatcherXContentParser
All Implemented Interfaces:
Closeable, AutoCloseable, XContentParser

public class WatcherXContentParser extends FilterXContentParserWrapper
A xcontent parser that is used by watcher. This is a special parser that is aware of watcher services. In particular, it's aware of the used Clock and the CryptoService. The former (clock) may be used when the current time is required during the parse phase of construct. The latter (crypto service) is used to encode secret values (e.g. passwords, security tokens, etc..) to Secrets. Secrets are encrypted values that are stored in memory and are decrypted on demand when needed.