Package de.xima.fc.mdl.enums
Enum EHttpClient
- All Implemented Interfaces:
Serializable
,Comparable<EHttpClient>
Pre-defined HttpClients for executing HTTP requests.
- Author:
- XIMA MEDIA GmbH
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUses the native Java API to execute HTTP requests.Uses web sockets to send the JavaScript to the client and the response back to the server, asynchronously.Uses web sockets to send the JavaScript to the client and the response back to the server, synchronously. -
Method Summary
Modifier and TypeMethodDescriptionstatic EHttpClient
Returns the enum constant of this type with the specified name.static EHttpClient[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NATIVE
Uses the native Java API to execute HTTP requests. -
WEBSOCKET_SYNC
Uses web sockets to send the JavaScript to the client and the response back to the server, synchronously. -
WEBSOCKET_ASYNC
Uses web sockets to send the JavaScript to the client and the response back to the server, asynchronously.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-