Class ProtocolConnection
- java.lang.Object
-
- microsoft.exchange.webservices.data.autodiscover.ProtocolConnection
-
public final class ProtocolConnection extends Object
Represents the email Protocol connection settings for pop/imap/smtp protocols.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedProtocolConnection()Initializes a new instance of theProtocolConnectionclass.protectedProtocolConnection(String encryptionMethod, String hostname, int port)Initializes a new instance of the ProtocolConnection class.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetEncryptionMethod()Gets the encryption method.StringgetHostname()Gets the hostname.intgetPort()Gets the port number.protected static ProtocolConnectionloadFromXml(EwsXmlReader reader)Read user setting with ProtocolConnection value.voidsetEncryptionMethod(String value)Sets the encryption method.voidsetHostname(String value)Sets the hostname.voidsetPort(int value)Sets the port.
-
-
-
Constructor Detail
-
ProtocolConnection
protected ProtocolConnection()
Initializes a new instance of theProtocolConnectionclass.
-
ProtocolConnection
protected ProtocolConnection(String encryptionMethod, String hostname, int port)
Initializes a new instance of the ProtocolConnection class.- Parameters:
encryptionMethod- The encryption method.hostname- The hostname.port- The port number to use for the portocol.
-
-
Method Detail
-
loadFromXml
protected static ProtocolConnection loadFromXml(EwsXmlReader reader) throws Exception
Read user setting with ProtocolConnection value.- Parameters:
reader- EwsServiceXmlReader- Returns:
- the protocol connection
- Throws:
Exception- the exception
-
getEncryptionMethod
public String getEncryptionMethod()
Gets the encryption method.- Returns:
- The encryption method.
-
setEncryptionMethod
public void setEncryptionMethod(String value)
Sets the encryption method.- Parameters:
value- the new encryption method
-
getHostname
public String getHostname()
Gets the hostname.- Returns:
- The hostname.
-
setHostname
public void setHostname(String value)
Sets the hostname.- Parameters:
value- the new hostname
-
getPort
public int getPort()
Gets the port number.- Returns:
- The port number.
-
setPort
public void setPort(int value)
Sets the port.- Parameters:
value- the new port
-
-