Package de.xima.fc.mdl.enums
Enum EHttpClient
- java.lang.Object
-
- java.lang.Enum<EHttpClient>
-
- de.xima.fc.mdl.enums.EHttpClient
-
- All Implemented Interfaces:
Serializable
,Comparable<EHttpClient>
public enum EHttpClient extends Enum<EHttpClient>
Pre-defined HttpClients for executing HTTP requests.- Author:
- XIMA MEDIA GmbH
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NATIVE
Uses the native Java API to execute HTTP requests.WEBSOCKET_ASYNC
Uses web sockets to send the JavaScript to the client and the response back to the server, asynchronously.WEBSOCKET_SYNC
Uses web sockets to send the JavaScript to the client and the response back to the server, synchronously.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EHttpClient
valueOf(String name)
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 Detail
-
NATIVE
public static final EHttpClient NATIVE
Uses the native Java API to execute HTTP requests.
-
WEBSOCKET_SYNC
public static final EHttpClient WEBSOCKET_SYNC
Uses web sockets to send the JavaScript to the client and the response back to the server, synchronously.
-
WEBSOCKET_ASYNC
public static final EHttpClient WEBSOCKET_ASYNC
Uses web sockets to send the JavaScript to the client and the response back to the server, asynchronously.
-
-
Method Detail
-
values
public static EHttpClient[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EHttpClient c : EHttpClient.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EHttpClient valueOf(String name)
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
-
-