|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.openexchange.mail.Protocol
public class Protocol
Protocol - Represents both a mail and transport protocol
| Field Summary | |
|---|---|
static java.lang.String |
ALL
The all identifier. |
static Protocol |
PROTOCOL_ALL
All protocols supported. |
| Constructor Summary | |
|---|---|
Protocol(java.lang.String name)
Initializes a new Protocol |
|
Protocol(java.lang.String name,
java.lang.String secureName)
Initializes a new Protocol |
|
Protocol(java.lang.String name,
java.lang.String[] aliases)
Initializes a new Protocol |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getAbbreviation()
|
java.lang.String[] |
getAliases()
Gets the aliases |
java.lang.String |
getName()
Gets the name |
int |
hashCode()
|
boolean |
isSupported(java.lang.String protocolName)
Checks if given protocol name is supported by this protocol |
static Protocol |
parseProtocol(java.lang.String protocol)
Parses specified protocol string whose syntax match pattern: ([a-z]+)(? |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ALL
public static final Protocol PROTOCOL_ALL
| Constructor Detail |
|---|
public Protocol(java.lang.String name)
Protocol
name - The protocol's name in lower case
java.lang.IllegalArgumentException - If name is null
public Protocol(java.lang.String name,
java.lang.String secureName)
Protocol
name - The protocol's name in lower casesecureName - The protocol's secure name in lower case
java.lang.IllegalArgumentException - If name is null
public Protocol(java.lang.String name,
java.lang.String[] aliases)
Protocol
name - The protocol's name in lower casealiases - The protocol's aliases in lower case
java.lang.IllegalArgumentException - If name is null| Method Detail |
|---|
public static Protocol parseProtocol(java.lang.String protocol)
throws MailException
http or http_https.
protocol - The protocol string to parse
Protocol
MailException - If parsing the specified protocol string failspublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String[] getAliases()
public java.lang.String getName()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean isSupported(java.lang.String protocolName)
protocolName - The protocol name to check
true if supported; otherwise falsepublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getAbbreviation()
getAbbreviation in interface com.openexchange.groupware.Component
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||