NanoHttpdServer.Response.IStatus
, Serializable
, Comparable<NanoHttpdServer.Response.Status>
public static enum NanoHttpdServer.Response.Status extends Enum<NanoHttpdServer.Response.Status> implements NanoHttpdServer.Response.IStatus
Enum Constant | Description |
---|---|
ACCEPTED |
|
BAD_REQUEST |
|
CREATED |
|
FORBIDDEN |
|
INTERNAL_ERROR |
|
METHOD_NOT_ALLOWED |
|
NO_CONTENT |
|
NOT_FOUND |
|
NOT_MODIFIED |
|
OK |
|
PARTIAL_CONTENT |
|
RANGE_NOT_SATISFIABLE |
|
REDIRECT |
|
SWITCH_PROTOCOL |
|
UNAUTHORIZED |
Modifier and Type | Method | Description |
---|---|---|
@NotNull String |
getDescription() |
|
int |
getRequestStatus() |
|
static NanoHttpdServer.Response.Status |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static NanoHttpdServer.Response.Status[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NanoHttpdServer.Response.Status SWITCH_PROTOCOL
public static final NanoHttpdServer.Response.Status OK
public static final NanoHttpdServer.Response.Status CREATED
public static final NanoHttpdServer.Response.Status ACCEPTED
public static final NanoHttpdServer.Response.Status NO_CONTENT
public static final NanoHttpdServer.Response.Status PARTIAL_CONTENT
public static final NanoHttpdServer.Response.Status REDIRECT
public static final NanoHttpdServer.Response.Status NOT_MODIFIED
public static final NanoHttpdServer.Response.Status BAD_REQUEST
public static final NanoHttpdServer.Response.Status UNAUTHORIZED
public static final NanoHttpdServer.Response.Status FORBIDDEN
public static final NanoHttpdServer.Response.Status NOT_FOUND
public static final NanoHttpdServer.Response.Status METHOD_NOT_ALLOWED
public static final NanoHttpdServer.Response.Status RANGE_NOT_SATISFIABLE
public static final NanoHttpdServer.Response.Status INTERNAL_ERROR
public static NanoHttpdServer.Response.Status[] values()
for (NanoHttpdServer.Response.Status c : NanoHttpdServer.Response.Status.values()) System.out.println(c);
public static NanoHttpdServer.Response.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 null@NotNull public @NotNull String getDescription()
getDescription
in interface NanoHttpdServer.Response.IStatus
public int getRequestStatus()
getRequestStatus
in interface NanoHttpdServer.Response.IStatus
Copyright © 2017. All rights reserved.