MatchVariable Class

public final class MatchVariable
extends ExpandableStringEnum<MatchVariable>

Request variable to compare with.

Field Summary

Modifier and Type Field and Description
static final MatchVariable COOKIES

Static value Cookies for MatchVariable.

static final MatchVariable POST_ARGS

Static value PostArgs for MatchVariable.

static final MatchVariable QUERY_STRING

Static value QueryString for MatchVariable.

static final MatchVariable REMOTE_ADDR

Static value RemoteAddr for MatchVariable.

static final MatchVariable REQUEST_BODY

Static value RequestBody for MatchVariable.

static final MatchVariable REQUEST_HEADER

Static value RequestHeader for MatchVariable.

static final MatchVariable REQUEST_METHOD

Static value RequestMethod for MatchVariable.

static final MatchVariable REQUEST_URI

Static value RequestUri for MatchVariable.

static final MatchVariable SOCKET_ADDR

Static value SocketAddr for MatchVariable.

Constructor Summary

Constructor Description
MatchVariable()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of MatchVariable value.

Method Summary

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

Creates or finds a MatchVariable from its string representation.

static Collection<MatchVariable> values()

Gets known MatchVariable values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

COOKIES

public static final MatchVariable COOKIES

Static value Cookies for MatchVariable.

POST_ARGS

public static final MatchVariable POST_ARGS

Static value PostArgs for MatchVariable.

QUERY_STRING

public static final MatchVariable QUERY_STRING

Static value QueryString for MatchVariable.

REMOTE_ADDR

public static final MatchVariable REMOTE_ADDR

Static value RemoteAddr for MatchVariable.

REQUEST_BODY

public static final MatchVariable REQUEST_BODY

Static value RequestBody for MatchVariable.

REQUEST_HEADER

public static final MatchVariable REQUEST_HEADER

Static value RequestHeader for MatchVariable.

REQUEST_METHOD

public static final MatchVariable REQUEST_METHOD

Static value RequestMethod for MatchVariable.

REQUEST_URI

public static final MatchVariable REQUEST_URI

Static value RequestUri for MatchVariable.

SOCKET_ADDR

public static final MatchVariable SOCKET_ADDR

Static value SocketAddr for MatchVariable.

Constructor Details

MatchVariable

@Deprecated
public MatchVariable()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of MatchVariable value.

Method Details

fromString

public static MatchVariable fromString(String name)

Creates or finds a MatchVariable from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding MatchVariable.

values

public static Collection<MatchVariable> values()

Gets known MatchVariable values.

Returns:

known MatchVariable values.

Applies to