flux.notification
Class MailProtocol

java.lang.Object
  extended by flux.notification.MailProtocol

public class MailProtocol
extends java.lang.Object

An enumeration of supported email protocols.

Author:
Copyright 2014 Flux Corporation. All rights reserved.

Field Summary
static MailProtocol IMAP
          The IMAP email protocol.
static MailProtocol IMAPS
          The IMAPS email protocol.
static MailProtocol POP3
          The POP3 email protocol.
static MailProtocol POP3S
          The POP3S email protocol.
 
Method Summary
static MailProtocol getInstance(java.lang.String enumeration)
          Returns a pre-existing instance of this enumeration from the specified name.
 java.lang.String toString()
          Returns the name of the specific mail protocol enumeration item.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

IMAP

public static final MailProtocol IMAP
The IMAP email protocol.


IMAPS

public static final MailProtocol IMAPS
The IMAPS email protocol.


POP3

public static final MailProtocol POP3
The POP3 email protocol.


POP3S

public static final MailProtocol POP3S
The POP3S email protocol.

Method Detail

getInstance

public static MailProtocol getInstance(java.lang.String enumeration)
Returns a pre-existing instance of this enumeration from the specified name.

Parameters:
enumeration - The name of a pre-existing instance of this enumeration.
Returns:
A pre-existing instance of this enumeration from the specified name.
Throws:
java.lang.IllegalArgumentException - If the name of the specified enumeration instance does not exist.

toString

public java.lang.String toString()
Returns the name of the specific mail protocol enumeration item.

Overrides:
toString in class java.lang.Object
Returns:
The name of the specific mail protocol enumeration item.


© 2014 Flux Corporation. All rights reserved.