NetworkAction Class

public final class NetworkAction
extends ExpandableStringEnum<NetworkAction>

Whether to allow or deny network traffic.

Field Summary

Modifier and Type Field and Description
static final NetworkAction ALLOW

Static value Allow for NetworkAction.

static final NetworkAction DENY

Static value Deny for NetworkAction.

Constructor Summary

Constructor Description
NetworkAction()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of NetworkAction value.

Method Summary

Modifier and Type Method and Description
static NetworkAction fromString(String name)

Creates or finds a NetworkAction from its string representation.

static Collection<NetworkAction> values()

Gets known NetworkAction values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

ALLOW

public static final NetworkAction ALLOW

Static value Allow for NetworkAction.

DENY

public static final NetworkAction DENY

Static value Deny for NetworkAction.

Constructor Details

NetworkAction

@Deprecated
public NetworkAction()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of NetworkAction value.

Method Details

fromString

public static NetworkAction fromString(String name)

Creates or finds a NetworkAction from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding NetworkAction.

values

public static Collection<NetworkAction> values()

Gets known NetworkAction values.

Returns:

known NetworkAction values.

Applies to