public static enum WebApiClient.Protocol extends java.lang.Enum<WebApiClient.Protocol>
| Modifier and Type | Method and Description |
|---|---|
abstract java.net.HttpURLConnection |
connect(java.lang.String host,
int port,
java.lang.String uri,
javax.net.ssl.HostnameVerifier hostnameVerifier,
javax.net.ssl.SSLSocketFactory sslSocketFactory) |
static WebApiClient.Protocol |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WebApiClient.Protocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WebApiClient.Protocol HTTP
public static final WebApiClient.Protocol HTTPS
public static WebApiClient.Protocol[] values()
for (WebApiClient.Protocol c : WebApiClient.Protocol.values()) System.out.println(c);
public static WebApiClient.Protocol valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic abstract java.net.HttpURLConnection connect(java.lang.String host,
int port,
java.lang.String uri,
javax.net.ssl.HostnameVerifier hostnameVerifier,
javax.net.ssl.SSLSocketFactory sslSocketFactory)
throws java.io.IOException
java.io.IOExceptionCopyright © JSCAPE Corp. 2009-2019. All Rights Reserved