public enum HttpClientType extends Enum<HttpClientType>
| Enum Constant and Description |
|---|
ApacheHttpClient |
Compatible
define Compatiblen,HttpClient,okHttp,Custom
|
Custom |
OkHttp |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends IHttpClient> |
getImplClass() |
static HttpClientType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpClientType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpClientType Compatible
public static final HttpClientType ApacheHttpClient
public static final HttpClientType OkHttp
public static final HttpClientType Custom
public static HttpClientType[] values()
for (HttpClientType c : HttpClientType.values()) System.out.println(c);
public static HttpClientType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic Class<? extends IHttpClient> getImplClass()
Copyright © 2022. All rights reserved.