public enum ResponseStatusExceptionMapper extends Enum<ResponseStatusExceptionMapper>
| Enum Constant and Description |
|---|
BAD_REQUEST |
CLIENT_ERROR |
FORBIDDEN |
INTERNAL_SERVER_ERROR |
METHOD_NOT_ALLOWED |
NOT_ACCEPTABLE |
NOT_FOUND |
REDIRECTION |
SERVER_ERROR |
SERVICE_UNAVAILABLE |
UNAUTHORIZED |
UNSUPPORTED_MEDIA_TYPE |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.WebApplicationException |
createException(javax.ws.rs.core.Response response) |
static ResponseStatusExceptionMapper |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResponseStatusExceptionMapper[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResponseStatusExceptionMapper BAD_REQUEST
public static final ResponseStatusExceptionMapper UNAUTHORIZED
public static final ResponseStatusExceptionMapper FORBIDDEN
public static final ResponseStatusExceptionMapper NOT_FOUND
public static final ResponseStatusExceptionMapper METHOD_NOT_ALLOWED
public static final ResponseStatusExceptionMapper NOT_ACCEPTABLE
public static final ResponseStatusExceptionMapper UNSUPPORTED_MEDIA_TYPE
public static final ResponseStatusExceptionMapper INTERNAL_SERVER_ERROR
public static final ResponseStatusExceptionMapper SERVICE_UNAVAILABLE
public static final ResponseStatusExceptionMapper REDIRECTION
public static final ResponseStatusExceptionMapper CLIENT_ERROR
public static final ResponseStatusExceptionMapper SERVER_ERROR
public static ResponseStatusExceptionMapper[] values()
for (ResponseStatusExceptionMapper c : ResponseStatusExceptionMapper.values()) System.out.println(c);
public static ResponseStatusExceptionMapper 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 javax.ws.rs.WebApplicationException createException(javax.ws.rs.core.Response response)
Copyright © 2016. All rights reserved.