public static enum IHttpRequest.HttpResponseStatus extends java.lang.Enum<IHttpRequest.HttpResponseStatus>
Enum Constant and Description |
---|
ACCEPTED
"202", "Accepted"
|
BAD_REQUEST
"400", "Bad Request"
|
CREATED
"201", "Created"
|
FORBIDDEN
"403", "Forbidden"
|
INTERNAL_SERVER_ERROR
"500", "Internal Server Error"
|
NOTFOUND
"404", "Not Found"
|
OK
"200", "OK"
|
UNAUTHORIZED
"401", "Unauthorized"
|
Modifier and Type | Method and Description |
---|---|
static IHttpRequest.HttpResponseStatus |
get(java.lang.String statusCode)
Return a matched
IHttpRequest.HttpResponseStatus according to the status code. |
java.lang.String |
text()
getter of
text |
java.lang.String |
value()
getter of
value |
static IHttpRequest.HttpResponseStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static IHttpRequest.HttpResponseStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IHttpRequest.HttpResponseStatus OK
public static final IHttpRequest.HttpResponseStatus CREATED
public static final IHttpRequest.HttpResponseStatus ACCEPTED
public static final IHttpRequest.HttpResponseStatus BAD_REQUEST
public static final IHttpRequest.HttpResponseStatus UNAUTHORIZED
public static final IHttpRequest.HttpResponseStatus FORBIDDEN
public static final IHttpRequest.HttpResponseStatus NOTFOUND
public static final IHttpRequest.HttpResponseStatus INTERNAL_SERVER_ERROR
public static IHttpRequest.HttpResponseStatus[] values()
for (IHttpRequest.HttpResponseStatus c : IHttpRequest.HttpResponseStatus.values()) System.out.println(c);
public static IHttpRequest.HttpResponseStatus 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 namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String value()
value
public java.lang.String text()
text
public static IHttpRequest.HttpResponseStatus get(java.lang.String statusCode)
IHttpRequest.HttpResponseStatus
according to the status code.statusCode
- String, the status code to compare with value()
.Copyright © SAS Institute. All Rights Reserved.