public static enum NanoHTTPD.Response.Status extends Enum<NanoHTTPD.Response.Status> implements NanoHTTPD.Response.IStatus
Enum Constant and Description |
---|
ACCEPTED |
BAD_REQUEST |
CONFLICT |
CREATED |
FORBIDDEN |
INTERNAL_ERROR |
METHOD_NOT_ALLOWED |
NO_CONTENT |
NOT_ACCEPTABLE |
NOT_FOUND |
NOT_IMPLEMENTED |
NOT_MODIFIED |
OK |
PARTIAL_CONTENT |
RANGE_NOT_SATISFIABLE |
REDIRECT |
REQUEST_TIMEOUT |
SWITCH_PROTOCOL |
UNAUTHORIZED |
UNSUPPORTED_HTTP_VERSION |
Modifier and Type | Field and Description |
---|---|
protected String |
description |
protected int |
requestStatus |
Modifier and Type | Method and Description |
---|---|
String |
getDescription() |
int |
getRequestStatus() |
static NanoHTTPD.Response.Status |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NanoHTTPD.Response.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NanoHTTPD.Response.Status SWITCH_PROTOCOL
public static final NanoHTTPD.Response.Status OK
public static final NanoHTTPD.Response.Status CREATED
public static final NanoHTTPD.Response.Status ACCEPTED
public static final NanoHTTPD.Response.Status NO_CONTENT
public static final NanoHTTPD.Response.Status PARTIAL_CONTENT
public static final NanoHTTPD.Response.Status REDIRECT
public static final NanoHTTPD.Response.Status NOT_MODIFIED
public static final NanoHTTPD.Response.Status BAD_REQUEST
public static final NanoHTTPD.Response.Status UNAUTHORIZED
public static final NanoHTTPD.Response.Status FORBIDDEN
public static final NanoHTTPD.Response.Status NOT_FOUND
public static final NanoHTTPD.Response.Status METHOD_NOT_ALLOWED
public static final NanoHTTPD.Response.Status NOT_ACCEPTABLE
public static final NanoHTTPD.Response.Status REQUEST_TIMEOUT
public static final NanoHTTPD.Response.Status CONFLICT
public static final NanoHTTPD.Response.Status RANGE_NOT_SATISFIABLE
public static final NanoHTTPD.Response.Status INTERNAL_ERROR
public static final NanoHTTPD.Response.Status NOT_IMPLEMENTED
public static final NanoHTTPD.Response.Status UNSUPPORTED_HTTP_VERSION
protected final int requestStatus
protected final String description
public static NanoHTTPD.Response.Status[] values()
for (NanoHTTPD.Response.Status c : NanoHTTPD.Response.Status.values()) System.out.println(c);
public static NanoHTTPD.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 nullpublic String getDescription()
getDescription
in interface NanoHTTPD.Response.IStatus
public int getRequestStatus()
getRequestStatus
in interface NanoHTTPD.Response.IStatus
Copyright © 2019 SimiaCryptus Software. All rights reserved.