|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.openexchange.mail.utils.ProviderUtility
public final class ProviderUtility
| Method Summary | |
|---|---|
static java.lang.String |
extractProtocol(java.lang.String serverUrl,
java.lang.String fallback)
Extracts the protocol from specified server URL: (<protocol>://)? |
static java.net.InetSocketAddress |
toSocketAddr(java.lang.String serverUrl,
int defaultPort)
Turns given server URL to an instance of InetSocketAddress. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.net.InetSocketAddress toSocketAddr(java.lang.String serverUrl,
int defaultPort)
throws com.openexchange.mailaccount.MailAccountException
InetSocketAddress.
serverUrl - The server URLdefaultPort - The default port to use if server URL does not specify a port
InetSocketAddress denoting given server URL
com.openexchange.mailaccount.MailAccountException - if the server URL can not be parsed.
public static java.lang.String extractProtocol(java.lang.String serverUrl,
java.lang.String fallback)
(<protocol>://)?(<host>)(:<port>)?
serverUrl - The server URLfallback - The fallback protocol if URL does not contain a protocol
fallback parameter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||