Package dev.sympho.bot_utils
Enum Class HttpClientUtils.EndpointType
- All Implemented Interfaces:
Serializable,Comparable<HttpClientUtils.EndpointType>,Constable
- Enclosing class:
- HttpClientUtils
Endpoint types used to interact with Discord.
- Since:
- 1.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionreactor.netty.http.client.HttpClientCreates and configures an HTTP client to use with this endpoint type, using thedefault retry policy.reactor.netty.http.client.HttpClientconfigureClient(reactor.netty.http.client.HttpClient client) Configures an HTTP client to use with this endpoint type, using thedefault retry policy.reactor.netty.http.client.HttpClientconfigureClient(reactor.netty.http.client.HttpClient client, Retry dnsRetryPolicy) Configures an HTTP client to use with this endpoint type.reactor.netty.http.client.HttpClientconfigureClient(Retry dnsRetryPolicy) Creates and configures an HTTP client to use with this endpoint type.Retrieves the URI formatter to use for metric tags.static HttpClientUtils.EndpointTypeReturns the enum constant of this class with the specified name.static HttpClientUtils.EndpointType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REST
The REST API. -
ATTACHMENT
Attachment files.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
uriTagFormatter
Retrieves the URI formatter to use for metric tags.- Returns:
- The formatter.
-
configureClient
public reactor.netty.http.client.HttpClient configureClient(reactor.netty.http.client.HttpClient client, Retry dnsRetryPolicy) Configures an HTTP client to use with this endpoint type.- Parameters:
client- The client to configure.dnsRetryPolicy- The DNS retry policy to use.- Returns:
- The configured client.
-
configureClient
public reactor.netty.http.client.HttpClient configureClient(reactor.netty.http.client.HttpClient client) Configures an HTTP client to use with this endpoint type, using thedefault retry policy.- Parameters:
client- The client to configure.- Returns:
- The configured client.
- See Also:
-
configureClient
Creates and configures an HTTP client to use with this endpoint type.- Parameters:
dnsRetryPolicy- The DNS retry policy to use.- Returns:
- The configured client.
- See Also:
-
configureClient
public reactor.netty.http.client.HttpClient configureClient()Creates and configures an HTTP client to use with this endpoint type, using thedefault retry policy.- Returns:
- The configured client.
- See Also:
-