Enum HttpResponseCode
- java.lang.Object
-
- java.lang.Enum<HttpResponseCode>
-
- com.devcycle.sdk.server.common.model.HttpResponseCode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<HttpResponseCode>
public enum HttpResponseCode extends java.lang.Enum<HttpResponseCode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCEPTEDBAD_REQUESTNOT_FOUNDNOT_MODIFIEDOKSERVER_ERRORUNAUTHORIZED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HttpResponseCodebyCode(int code)intcode()static HttpResponseCodevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static HttpResponseCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OK
public static final HttpResponseCode OK
-
ACCEPTED
public static final HttpResponseCode ACCEPTED
-
NOT_MODIFIED
public static final HttpResponseCode NOT_MODIFIED
-
BAD_REQUEST
public static final HttpResponseCode BAD_REQUEST
-
UNAUTHORIZED
public static final HttpResponseCode UNAUTHORIZED
-
NOT_FOUND
public static final HttpResponseCode NOT_FOUND
-
SERVER_ERROR
public static final HttpResponseCode SERVER_ERROR
-
-
Method Detail
-
values
public static HttpResponseCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (HttpResponseCode c : HttpResponseCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HttpResponseCode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
code
public int code()
-
byCode
public static HttpResponseCode byCode(int code)
-
-