public static enum ResponseType.StatusType extends Enum<ResponseType.StatusType>
| Enum Constant and Description |
|---|
CLIENT_ERROR
All client error (4xx) status codes
|
REDIRECTION
All redirect (3xx) status codes
|
SERVER_ERROR
All server error (5xx) status codes
|
SUCCESS
All success (2xx) status codes
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(int status) |
static ResponseType.StatusType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResponseType.StatusType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResponseType.StatusType SUCCESS
public static final ResponseType.StatusType REDIRECTION
public static final ResponseType.StatusType CLIENT_ERROR
public static final ResponseType.StatusType SERVER_ERROR
public static ResponseType.StatusType[] values()
for (ResponseType.StatusType c : ResponseType.StatusType.values()) System.out.println(c);
public static ResponseType.StatusType 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 boolean matches(int status)
Copyright © 2017 Atlassian. All rights reserved.