public static enum AccessRule.RedirectResponseCode extends Enum<AccessRule.RedirectResponseCode> implements BmcEnum
The response status code to return when action
is set to REDIRECT
.
- **MOVED_PERMANENTLY:** Used for designating the permanent movement of a page (numerical code - 301).
- **FOUND:** Used for designating the temporary movement of a page (numerical code - 302).
Enum Constant and Description |
---|
Found |
MovedPermanently |
UnknownEnumValue
This value is used if a service returns a value for this enum that is not recognized by
this version of the SDK.
|
Modifier and Type | Method and Description |
---|---|
static AccessRule.RedirectResponseCode |
create(String key) |
String |
getValue() |
static AccessRule.RedirectResponseCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AccessRule.RedirectResponseCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AccessRule.RedirectResponseCode MovedPermanently
public static final AccessRule.RedirectResponseCode Found
public static final AccessRule.RedirectResponseCode UnknownEnumValue
public static AccessRule.RedirectResponseCode[] values()
for (AccessRule.RedirectResponseCode c : AccessRule.RedirectResponseCode.values()) System.out.println(c);
public static AccessRule.RedirectResponseCode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static AccessRule.RedirectResponseCode create(String key)
Copyright © 2016–2024. All rights reserved.