Class EmailAccount
- java.lang.Object
-
- com.floragunn.signals.accounts.Account
-
- com.floragunn.signals.watch.action.handlers.email.EmailAccount
-
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentObject
public class EmailAccount extends Account
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEmailAccount.Factory-
Nested classes/interfaces inherited from class com.floragunn.signals.accounts.Account
Account.FactoryRegistry
-
-
Field Summary
Fields Modifier and Type Field Description static StringTYPE-
Fields inherited from class com.floragunn.signals.accounts.Account
factoryRegistry
-
-
Constructor Summary
Constructors Constructor Description EmailAccount()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getDefaultBcc()String[]getDefaultCc()StringgetDefaultFrom()String[]getDefaultTo()StringgetHost()StringgetPassword()intgetPort()StringgetProxyHost()StringgetProxyPassword()IntegergetProxyPort()StringgetProxyUser()org.elasticsearch.search.builder.SearchSourceBuildergetReferencingWatchesQuery()IntegergetSessionTimeout()String[]getTrustedHosts()StringgetType()StringgetUser()booleanisDebug()booleanisEnableStartTls()booleanisEnableTls()booleanisSimulate()booleanisTrustAll()voidsetDebug(boolean debug)voidsetDefaultBcc(String... defaultBcc)voidsetDefaultCc(String[] defaultCc)voidsetDefaultFrom(String defaultFrom)voidsetDefaultTo(String[] defaultTo)voidsetEnableStartTls(boolean enableStartTls)voidsetEnableTls(boolean enableTls)voidsetHost(String host)voidsetPassword(String password)voidsetPort(int port)voidsetProxyHost(String proxyHost)voidsetProxyPassword(String proxyPassword)voidsetProxyPort(Integer proxyPort)voidsetProxyUser(String proxyUser)voidsetSessionTimeout(Integer sessionTimeout)voidsetSimulate(boolean simulate)voidsetTrustAll(boolean trustAll)voidsetTrustedHosts(String[] trustedHosts)voidsetUser(String user)org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)-
Methods inherited from class com.floragunn.signals.accounts.Account
create, getId, getScopedId, isInUse, isInUse, parse, setId, toJson
-
-
-
-
Field Detail
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getHost
public String getHost()
-
setHost
public void setHost(String host)
-
getPort
public int getPort()
-
setPort
public void setPort(int port)
-
getUser
public String getUser()
-
setUser
public void setUser(String user)
-
getPassword
public String getPassword()
-
setPassword
public void setPassword(String password)
-
getProxyHost
public String getProxyHost()
-
setProxyHost
public void setProxyHost(String proxyHost)
-
getProxyPort
public Integer getProxyPort()
-
setProxyPort
public void setProxyPort(Integer proxyPort)
-
getProxyUser
public String getProxyUser()
-
setProxyUser
public void setProxyUser(String proxyUser)
-
getProxyPassword
public String getProxyPassword()
-
setProxyPassword
public void setProxyPassword(String proxyPassword)
-
getSessionTimeout
public Integer getSessionTimeout()
-
setSessionTimeout
public void setSessionTimeout(Integer sessionTimeout)
-
isSimulate
public boolean isSimulate()
-
setSimulate
public void setSimulate(boolean simulate)
-
isDebug
public boolean isDebug()
-
setDebug
public void setDebug(boolean debug)
-
isEnableTls
public boolean isEnableTls()
-
setEnableTls
public void setEnableTls(boolean enableTls)
-
isEnableStartTls
public boolean isEnableStartTls()
-
setEnableStartTls
public void setEnableStartTls(boolean enableStartTls)
-
isTrustAll
public boolean isTrustAll()
-
setTrustAll
public void setTrustAll(boolean trustAll)
-
getTrustedHosts
public String[] getTrustedHosts()
-
setTrustedHosts
public void setTrustedHosts(String[] trustedHosts)
-
getDefaultFrom
public String getDefaultFrom()
-
setDefaultFrom
public void setDefaultFrom(String defaultFrom)
-
getDefaultTo
public String[] getDefaultTo()
-
setDefaultTo
public void setDefaultTo(String[] defaultTo)
-
getDefaultCc
public String[] getDefaultCc()
-
setDefaultCc
public void setDefaultCc(String[] defaultCc)
-
getDefaultBcc
public String[] getDefaultBcc()
-
setDefaultBcc
public void setDefaultBcc(String... defaultBcc)
-
getReferencingWatchesQuery
public org.elasticsearch.search.builder.SearchSourceBuilder getReferencingWatchesQuery()
- Specified by:
getReferencingWatchesQueryin classAccount
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Throws:
IOException
-
-