Class MailClientBuilder
java.lang.Object
org.openremote.agent.protocol.mail.MailClientBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
protected int
static final int
static final String
protected boolean
protected Date
protected ExecutorService
protected String
protected String
protected static final AtomicReference<jakarta.ws.rs.client.Client>
protected static int
protected org.openremote.container.web.OAuthFilter
protected org.openremote.model.auth.OAuthGrant
protected String
protected Path
protected int
protected boolean
protected Properties
protected String
protected ScheduledExecutorService
protected boolean
protected String
-
Constructor Summary
ConstructorsConstructorDescriptionMailClientBuilder
(ExecutorService executorService, ScheduledExecutorService scheduledExecutorService, String protocol, String host, int port) -
Method Summary
Modifier and TypeMethodDescriptionbuild()
org.openremote.model.auth.UsernamePassword
getAuth()
int
int
getHost()
org.openremote.model.auth.OAuthGrant
int
getPort()
getUser()
boolean
boolean
boolean
setBasicAuth
(String user, String password) setCheckInitialDelaySeconds
(int checkInitialDelaySeconds) setCheckIntervalSeconds
(int checkIntervalSeconds) setDeleteMessageOnceProcessed
(boolean deleteMessageOnceProcessed) setEarliestMessageDate
(Date earliestMessageDate) setPersistenceDir
(Path persistenceDir) Directory to store information about received message dates between restartssetPreferHTML
(boolean preferHTML) setProperty
(String property, Object value) setStartTls
(boolean startTls)
-
Field Details
-
DEFAULT_FOLDER_NAME
- See Also:
-
DEFAULT_CHECK_INTERVAL_SECONDS
public static final int DEFAULT_CHECK_INTERVAL_SECONDS- See Also:
-
MIN_CHECK_INTERVAL_SECONDS
protected static int MIN_CHECK_INTERVAL_SECONDS -
jaxrsClient
-
executorService
-
scheduledExecutorService
-
checkInitialDelaySeconds
protected int checkInitialDelaySeconds -
checkIntervalSeconds
protected int checkIntervalSeconds -
folder
-
preferHTML
protected boolean preferHTML -
earliestMessageDate
-
persistenceDir
-
protocol
-
host
-
oAuthGrant
protected org.openremote.model.auth.OAuthGrant oAuthGrant -
oAuthFilter
protected org.openremote.container.web.OAuthFilter oAuthFilter -
port
protected int port -
user
-
password
-
deleteMessageOnceProcessed
protected boolean deleteMessageOnceProcessed -
startTls
protected boolean startTls -
properties
-
-
Constructor Details
-
MailClientBuilder
public MailClientBuilder(ExecutorService executorService, ScheduledExecutorService scheduledExecutorService, String protocol, String host, int port)
-
-
Method Details
-
setBasicAuth
-
setOAuth
-
setStartTls
-
setCheckIntervalSeconds
-
setCheckInitialDelaySeconds
-
setFolder
-
setEarliestMessageDate
-
setPersistenceDir
Directory to store information about received message dates between restarts -
setDeleteMessageOnceProcessed
-
setProperty
-
setPreferHTML
-
getFolder
-
getScheduledExecutorService
-
getCheckIntervalSeconds
public int getCheckIntervalSeconds() -
getCheckInitialDelaySeconds
public int getCheckInitialDelaySeconds() -
getEarliestMessageDate
-
getPersistenceDir
-
getProtocol
-
getHost
-
getPort
public int getPort() -
getUser
-
getPassword
-
getOAuthGrant
public org.openremote.model.auth.OAuthGrant getOAuthGrant() -
isDeleteMessageOnceProcessed
public boolean isDeleteMessageOnceProcessed() -
isPreferHTML
public boolean isPreferHTML() -
isStartTls
public boolean isStartTls() -
getProperties
-
build
-
getAuth
public org.openremote.model.auth.UsernamePassword getAuth() throws SocketException, NullPointerException- Throws:
SocketException
NullPointerException
-