public enum StandardRs extends Enum<StandardRs> implements Response
Response.Wrap| Enum Constant and Description |
|---|
EMPTY
Empty response.
|
JSON_NOT_FOUND
Not found with json.
|
NO_CONTENT
Success response without content.
|
NOT_FOUND
Not found response.
|
OK
OK 200 response.
|
| Modifier and Type | Method and Description |
|---|---|
CompletionStage<Void> |
send(Connection connection)
Send the response.
|
static StandardRs |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StandardRs[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StandardRs EMPTY
public static final StandardRs OK
public static final StandardRs NO_CONTENT
public static final StandardRs NOT_FOUND
public static final StandardRs JSON_NOT_FOUND
public static StandardRs[] values()
for (StandardRs c : StandardRs.values()) System.out.println(c);
public static StandardRs 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 nullpublic CompletionStage<Void> send(Connection connection)
ResponseCopyright © 2012–2020 jcabi.com. All rights reserved.