Package org.apache.camel.model.rest
Enum RestHostNameResolver
- java.lang.Object
-
- java.lang.Enum<RestHostNameResolver>
-
- org.apache.camel.model.rest.RestHostNameResolver
-
- All Implemented Interfaces:
Serializable
,Comparable<RestHostNameResolver>
@Metadata(label="rest") public enum RestHostNameResolver extends Enum<RestHostNameResolver>
To configure the rest hostname resolver
-
-
Enum Constant Summary
Enum Constants Enum Constant Description allLocalIp
localHostName
localIp
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RestHostNameResolver
valueOf(String name)
Returns the enum constant of this type with the specified name.static RestHostNameResolver[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
allLocalIp
public static final RestHostNameResolver allLocalIp
-
localIp
public static final RestHostNameResolver localIp
-
localHostName
public static final RestHostNameResolver localHostName
-
-
Method Detail
-
values
public static RestHostNameResolver[] 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 (RestHostNameResolver c : RestHostNameResolver.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RestHostNameResolver 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
-
-