microsoft.exchange.webservices.data
Class ProtocolConnection

java.lang.Object
  extended by microsoft.exchange.webservices.data.ProtocolConnection

public final class ProtocolConnection
extends java.lang.Object

Represents the email Protocol connection settings for pop/imap/smtp protocols.


Constructor Summary
protected ProtocolConnection()
          Initializes a new instance of the class.
protected ProtocolConnection(java.lang.String encryptionMethod, java.lang.String hostname, int port)
          Initializes a new instance of the ProtocolConnection class.
 
Method Summary
 java.lang.String getEncryptionMethod()
          Gets the encryption method.
 java.lang.String getHostname()
          Gets the hostname.
 int getPort()
          Gets the port number.
protected static ProtocolConnection loadFromXml(microsoft.exchange.webservices.data.EwsXmlReader reader)
          Read user setting with ProtocolConnection value.
 void setEncryptionMethod(java.lang.String value)
          Sets the encryption method.
 void setHostname(java.lang.String value)
          Sets the hostname.
 void setPort(int value)
          Sets the port.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProtocolConnection

protected ProtocolConnection()
Initializes a new instance of the class.


ProtocolConnection

protected ProtocolConnection(java.lang.String encryptionMethod,
                             java.lang.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(microsoft.exchange.webservices.data.EwsXmlReader reader)
                                         throws java.lang.Exception
Read user setting with ProtocolConnection value.

Parameters:
reader - EwsServiceXmlReader
Returns:
the protocol connection
Throws:
java.lang.Exception - the exception

getEncryptionMethod

public java.lang.String getEncryptionMethod()
Gets the encryption method.

Returns:
The encryption method.

setEncryptionMethod

public void setEncryptionMethod(java.lang.String value)
Sets the encryption method.

Parameters:
value - the new encryption method

getHostname

public java.lang.String getHostname()
Gets the hostname.

Returns:
The hostname.

setHostname

public void setHostname(java.lang.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