|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<HTTPErrorsType> org.w3c.mwi.mobileok.basic.HTTPErrorsType
public enum HTTPErrorsType
Enumerates all the possible HTTPS and HTTP Response errors that may be
returned by the Preprocessor
while trying to create the internal
moki representation of the Web resource under test.
The errors are formally defined in the HTTP Response and HTTPS sections of the W3C mobileOK Basic Tests 1.0 standard.
Field Summary | |
---|---|
private static java.util.Map<HTTPErrorsType,java.lang.String> |
names
Static mapping table between HTTP errors and their mobileOK name. |
private static java.util.Map<HTTPErrorsType,TestOutcome> |
severity
Static mapping table between HTTP errors and their severity. |
Method Summary | |
---|---|
(package private) static TestOutcome |
getSeverity(HTTPErrorsType type)
Retrieves the mobileOK severity of an HTTP error. |
java.lang.String |
toString()
Returns the mobileOK name of an HTTP error. |
static HTTPErrorsType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static HTTPErrorsType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final HTTPErrorsType HTTP_RESPONSE_1
public static final HTTPErrorsType HTTP_RESPONSE_4
public static final HTTPErrorsType HTTP_RESPONSE_5
public static final HTTPErrorsType HTTP_RESPONSE_6
public static final HTTPErrorsType HTTP_RESPONSE_7
public static final HTTPErrorsType HTTP_RESPONSE_8
public static final HTTPErrorsType HTTP_RESPONSE_9
public static final HTTPErrorsType HTTP_RESPONSE_10
public static final HTTPErrorsType HTTP_RESPONSE_11
public static final HTTPErrorsType HTTP_RESPONSE_12
public static final HTTPErrorsType HTTPS_1
public static final HTTPErrorsType HTTPS_2
public static final HTTPErrorsType HTTPS_3
Field Detail |
---|
private static final java.util.Map<HTTPErrorsType,TestOutcome> severity
private static final java.util.Map<HTTPErrorsType,java.lang.String> names
The mapping table is required because the '-' character cannot be used in enumerations.
Method Detail |
---|
public static HTTPErrorsType[] values()
for (HTTPErrorsType c : HTTPErrorsType.values()) System.out.println(c);
public static HTTPErrorsType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullstatic TestOutcome getSeverity(HTTPErrorsType type)
type
- the HTTP error.
public java.lang.String toString()
toString
in class java.lang.Enum<HTTPErrorsType>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |