com.independentsoft.exchange

## Class ProtocolConnection

- java.lang.Object
- - com.independentsoft.exchange.ProtocolConnection

-     public class ProtocolConnection
      extends java.lang.Object

  Represents the protocol connection of the server Web client.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ProtocolConnection()` Initializes a new instance of the ProtocolConnection class.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `getEncryptionMethod()` Gets the cryptographic method that is used for the POP, IMAP, and SMTP protocols.
    `java.lang.String` | `getHostname()` Gets the host name portion of the full computer name of the computer.
    `int` | `getPort()` Gets the port number to use for the protocol.

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ProtocolConnection

          public ProtocolConnection()

      Initializes a new instance of the ProtocolConnection class.

  - ### Method Detail

    - #### getHostname

          public java.lang.String getHostname()

      Gets the host name portion of the full computer name of the computer.
      Returns:
        the hostname

    - #### getPort

          public int getPort()

      Gets the port number to use for the protocol.
      Returns:
        the port

    - #### getEncryptionMethod

          public java.lang.String getEncryptionMethod()

      Gets the cryptographic method that is used for the POP, IMAP, and SMTP protocols.
      Returns:
        the encryption method