Enum WebhookSink.WebhookFormat
- java.lang.Object
-
- java.lang.Enum<WebhookSink.WebhookFormat>
-
- com.floragunn.searchguard.auditlog.sink.WebhookSink.WebhookFormat
-
- All Implemented Interfaces:
Serializable,Comparable<WebhookSink.WebhookFormat>
- Enclosing class:
- WebhookSink
public static enum WebhookSink.WebhookFormat extends Enum<WebhookSink.WebhookFormat>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description JSONSLACKTEXTURL_PARAMETER_GETURL_PARAMETER_POST
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WebhookSink.WebhookFormatvalueOf(String name)Returns the enum constant of this type with the specified name.static WebhookSink.WebhookFormat[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
URL_PARAMETER_GET
public static final WebhookSink.WebhookFormat URL_PARAMETER_GET
-
URL_PARAMETER_POST
public static final WebhookSink.WebhookFormat URL_PARAMETER_POST
-
TEXT
public static final WebhookSink.WebhookFormat TEXT
-
JSON
public static final WebhookSink.WebhookFormat JSON
-
SLACK
public static final WebhookSink.WebhookFormat SLACK
-
-
Method Detail
-
values
public static WebhookSink.WebhookFormat[] 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 (WebhookSink.WebhookFormat c : WebhookSink.WebhookFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WebhookSink.WebhookFormat 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
-
-