Modifier and Type | Field and Description |
---|---|
static int |
CLIENT_ERROR_HIGH
Highest (theoretical) client error status code.
|
static int |
CLIENT_ERROR_LOW
Lowest client error status code.
|
static int |
INFORMATIONAL_HIGH
Highest (theoretical) informational status code.
|
static int |
INFORMATIONAL_LOW
Lowest informational status code.
|
static int |
REDIRECTION_HIGH
Highest (theoretical) redirection status code.
|
static int |
REDIRECTION_LOW
Lowest redirection status code.
|
static int |
SERVER_ERROR_HIGH
Highest (theoretical) server error status code.
|
static int |
SERVER_ERROR_LOW
Lowest server error status code.
|
static int |
SUCCESSFUL_HIGH
Highest (theoretical) successful status code.
|
static int |
SUCCESSFUL_LOW
Lowest successful status code.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
isClientError(int httpStatusCode)
Determines whether the supplied httpStatusCode is a client error code or
not.
|
static boolean |
isInformational(int httpStatusCode)
Determines whether the supplied httpStatusCode is an informational code
or not.
|
static boolean |
isRedirection(int httpStatusCode)
Determines whether the supplied httpStatusCode is a redirection code or
not.
|
static boolean |
isServerError(int httpStatusCode)
Determines whether the supplied httpStatusCode is a server error code or
not.
|
static boolean |
isSuccessful(int httpStatusCode)
Determines whether the supplied httpStatusCode is a successful code or
not.
|
public static final int INFORMATIONAL_LOW
public static final int INFORMATIONAL_HIGH
public static final int SUCCESSFUL_LOW
public static final int SUCCESSFUL_HIGH
public static final int REDIRECTION_LOW
public static final int REDIRECTION_HIGH
public static final int CLIENT_ERROR_LOW
public static final int CLIENT_ERROR_HIGH
public static final int SERVER_ERROR_LOW
public static final int SERVER_ERROR_HIGH
public static boolean isInformational(int httpStatusCode)
httpStatusCode
- The code to check.public static boolean isSuccessful(int httpStatusCode)
httpStatusCode
- The code to check.public static boolean isRedirection(int httpStatusCode)
httpStatusCode
- The code to check.public static boolean isClientError(int httpStatusCode)
httpStatusCode
- The code to check.public static boolean isServerError(int httpStatusCode)
httpStatusCode
- The code to check.Copyright © 2008–2018. All rights reserved.