public static enum PSHTTPResponseInfo.Status extends Enum<PSHTTPResponseInfo.Status>
Enum Constant and Description |
---|
CLIENT_ERROR
The request failed because of the client seems to have erred (bad parameter, not found);
the HTTP response code was 4xx.
|
CONNECTION_ERROR
The bridge API was unable to connect to PageSeeder.
|
IO_ERROR
An I/O error was reported while trying to read the returned data from PageSeeder.
|
PROCESS_ERROR
The returned data could not be processed successfully.
|
REDIRECT
The response indicated that further action may be needed; the HTTP response code was 3xx.
|
SERVER_ERROR
The request failed because of an error was reported by the server; the HTTP response code was 5xx.
|
SUCCESSFUL
The request has succeeded and the HTTP response code was 2xx.
|
UNKNOWN
When unable to determine the determine the status or before the request was made.
|
Modifier and Type | Method and Description |
---|---|
static PSHTTPResponseInfo.Status |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PSHTTPResponseInfo.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PSHTTPResponseInfo.Status IO_ERROR
public static final PSHTTPResponseInfo.Status CONNECTION_ERROR
public static final PSHTTPResponseInfo.Status PROCESS_ERROR
For example, when attempting to parse a non-XML stream.
public static final PSHTTPResponseInfo.Status SUCCESSFUL
public static final PSHTTPResponseInfo.Status REDIRECT
public static final PSHTTPResponseInfo.Status CLIENT_ERROR
public static final PSHTTPResponseInfo.Status SERVER_ERROR
public static final PSHTTPResponseInfo.Status UNKNOWN
public static PSHTTPResponseInfo.Status[] values()
for (PSHTTPResponseInfo.Status c : PSHTTPResponseInfo.Status.values()) System.out.println(c);
public static PSHTTPResponseInfo.Status 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 nullCopyright © 2016 Allette Systems. All rights reserved.