com.groupdocs.parser

Interfaces

Classes

Exceptions

com.groupdocs.parser

Class EmailConnectionInfo



  • public final class EmailConnectionInfo
    extends Object

    Provides the information for connection with email server.

    Creating an instance:

     EmailConnectionInfo info = EmailConnectionInfo.createEwsConnectionInfo(
         "https://outlook.office365.com/ews/exchange.asmx", 
         "username", 
         "password",
         "domain");
     // or if domain is not required:
     EmailConnectionInfo info = EmailConnectionInfo.createEwsConnectionInfo(
         "https://outlook.office365.com/ews/exchange.asmx", 
         "username", 
         "password");
      
    • Method Detail

      • getConnectionType

        public int getConnectionType()

        Gets a connection type.

        Returns:
        Connection type.
      • getHost

        public String getHost()

        Gets an URI of the mail server.

        Returns:
        String that represents an URI of the mail server.
      • getPort

        public int getPort()

        Gets a port of the mail server.

        Returns:
        Integer value that represents a port of the mail server.
      • getMailboxUri

        public String getMailboxUri()

        Gets an URI of the mailbox.

        Returns:
        String that represents an URI of the mailbox.
      • getUserName

        public String getUserName()

        Gets a username.

        Returns:
        String that represents a username.
      • getPassword

        public String getPassword()

        Gets a password.

        Returns:
        String that represents a password.
      • getDomain

        public String getDomain()

        Gets a domain.

        Returns:
        String that represents a domain.
      • createEwsConnectionInfo

        public static EmailConnectionInfo createEwsConnectionInfo(String mailboxUri,
                                                  String userName,
                                                  String password,
                                                  String domain)

        Creates an instance of EmailConnectionInfo class for Exchange Web Service.

        Parameters:
        mailboxUri - The URI of the mailbox.
        userName - The username.
        password - The password.
        domain - The domain name.
        Returns:
        An instance of EmailConnectionInfo class.
      • createEwsConnectionInfo

        public static EmailConnectionInfo createEwsConnectionInfo(String mailboxUri,
                                                  String userName,
                                                  String password)

        Creates an instance of EmailConnectionInfo class for Exchange Web Service.

        Parameters:
        mailboxUri - The URI of the mailbox.
        userName - The username.
        password - The password.
        Returns:
        An instance of EmailConnectionInfo class.
      • createPopConnectionInfo

        public static EmailConnectionInfo createPopConnectionInfo(String host,
                                                  int port,
                                                  String userName,
                                                  String password)

        Creates an instance of EmailConnectionInfo class for Post Office Protocol.

        Parameters:
        host - The URI of the server.
        port - The port of the server.
        userName - The username.
        password - The password.
        Returns:
        An instance of EmailConnectionInfo class.
      • createImapConnectionInfo

        public static EmailConnectionInfo createImapConnectionInfo(String host,
                                                   int port,
                                                   String userName,
                                                   String password)

        Creates an instance of EmailConnectionInfo class for Internet Message Access Protocol.

        Parameters:
        host - The URI of the server.
        port - The port of the server.
        userName - The username.
        password - The password.
        Returns:
        An instance of EmailConnectionInfo class.