Class HttpProxyConfig
- java.lang.Object
-
- com.floragunn.signals.watch.common.HttpProxyConfig
-
- All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent
public class HttpProxyConfig extends Object implements org.elasticsearch.xcontent.ToXContent
-
-
Field Summary
Fields Modifier and Type Field Description static HttpProxyConfigUSE_DEFAULTstatic HttpProxyConfigUSE_NONE
-
Constructor Summary
Constructors Constructor Description HttpProxyConfig(com.floragunn.signals.watch.common.HttpProxyConfig.Type type)HttpProxyConfig(org.apache.http.HttpHost proxy)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HttpProxyConfigcreate(com.fasterxml.jackson.databind.JsonNode jsonNode)static HttpProxyConfigcreate(String value)org.apache.http.HttpHostgetProxy()com.floragunn.signals.watch.common.HttpProxyConfig.TypegetType()StringtoString()org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params)
-
-
-
Field Detail
-
USE_DEFAULT
public static final HttpProxyConfig USE_DEFAULT
-
USE_NONE
public static final HttpProxyConfig USE_NONE
-
-
Method Detail
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException- Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
getProxy
public org.apache.http.HttpHost getProxy()
-
getType
public com.floragunn.signals.watch.common.HttpProxyConfig.Type getType()
-
create
public static HttpProxyConfig create(com.fasterxml.jackson.databind.JsonNode jsonNode) throws com.floragunn.searchsupport.config.validation.ConfigValidationException
- Throws:
com.floragunn.searchsupport.config.validation.ConfigValidationException
-
create
public static HttpProxyConfig create(String value) throws com.floragunn.searchsupport.config.validation.ConfigValidationException
- Throws:
com.floragunn.searchsupport.config.validation.ConfigValidationException
-
-