public class SMTPServer
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_HOST |
static int |
DEFAULT_PORT |
static boolean |
DEFAULT_TLS |
java.lang.String |
host |
java.lang.String |
password |
int |
port |
boolean |
tls |
java.lang.String |
username |
Constructor and Description |
---|
SMTPServer() |
SMTPServer(SMTPServer o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this SMTPServer.
|
static SMTPServer |
fromString(java.lang.String s)
String representation of this SMTPServer.
|
java.lang.String |
getHost() |
java.lang.String |
getPassword() |
int |
getPort() |
java.lang.String |
getUsername() |
boolean |
isTls() |
SMTPServer |
makeCopy()
Creates and returns a deep copy of this SMTPServer.
|
static SMTPServer |
readFrom(java.io.InputStream is)
Read this SMTPServer from an XML fragment.
|
void |
setHost(java.lang.String host) |
void |
setPassword(java.lang.String password) |
void |
setPort(int port) |
void |
setTls(boolean tls) |
void |
setUsername(java.lang.String username) |
java.lang.String |
toString()
String representation of this SMTPServer.
|
SMTPServer |
withHost(java.lang.String host) |
SMTPServer |
withPassword(java.lang.String password) |
SMTPServer |
withPort(int port) |
SMTPServer |
withPort(java.lang.Integer port) |
SMTPServer |
withTls(boolean tls) |
SMTPServer |
withTls(java.lang.Boolean tls) |
SMTPServer |
withUsername(java.lang.String username) |
void |
writeTo(java.io.OutputStream os)
Write this SMTPServer as an XML fragment
|
public java.lang.String host
public static final java.lang.String DEFAULT_HOST
public int port
public static final int DEFAULT_PORT
public java.lang.String username
public java.lang.String password
public boolean tls
public static final boolean DEFAULT_TLS
public SMTPServer()
public SMTPServer(SMTPServer o)
public void setHost(java.lang.String host)
public java.lang.String getHost()
public SMTPServer withHost(java.lang.String host)
public void setPort(int port)
public int getPort()
public SMTPServer withPort(int port)
public SMTPServer withPort(java.lang.Integer port)
public void setUsername(java.lang.String username)
public java.lang.String getUsername()
public SMTPServer withUsername(java.lang.String username)
public void setPassword(java.lang.String password)
public java.lang.String getPassword()
public SMTPServer withPassword(java.lang.String password)
public void setTls(boolean tls)
public boolean isTls()
public SMTPServer withTls(boolean tls)
public SMTPServer withTls(java.lang.Boolean tls)
public SMTPServer makeCopy()
public static SMTPServer readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
javax.xml.bind.JAXBException
java.io.IOException
public static SMTPServer fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class java.lang.Object
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.