Package | Description |
---|---|
org.jooby | |
org.jooby.internal |
Modifier and Type | Method and Description |
---|---|
static Status |
Status.valueOf(int statusCode)
Return the enum constant of this type with the specified numeric value.
|
static Status |
Status.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Status[] |
Status.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
Optional<Status> |
Response.status() |
Optional<Status> |
Response.Forwarding.status() |
Optional<Status> |
Body.status() |
Modifier and Type | Method and Description |
---|---|
static Body |
Body.body(Status status)
Set the response status.
|
void |
Response.redirect(Status status,
String location)
Redirect to the given url with status code defaulting to
FOUND . |
void |
Response.Forwarding.redirect(Status status,
String location) |
Route.Handler |
Jooby.redirect(Status status,
String location)
Redirect to the given url with status code defaulting to
FOUND . |
Response |
Response.status(Status status)
Set the HTTP response status.
|
Response |
Response.Forwarding.status(Status status) |
Body |
Body.status(Status status)
Set response status.
|
Constructor and Description |
---|
Err(Status status)
Creates a new
Err . |
Err(Status status,
Exception cause)
Creates a new
Err . |
Err(Status status,
String message)
Creates a new
Err . |
Err(Status status,
String message,
Exception cause)
Creates a new
Err . |
Modifier and Type | Method and Description |
---|---|
Optional<Status> |
ResponseImpl.status() |
Modifier and Type | Method and Description |
---|---|
static RouteImpl |
RouteImpl.fromStatus(Route.Filter filter,
Verb verb,
String path,
Status status,
List<MediaType> produces) |
void |
ResponseImpl.redirect(Status status,
String location) |
Response |
ResponseImpl.status(Status status) |
Copyright © 2014. All rights reserved.