Package | Description |
---|---|
org.jooby | |
org.jooby.internal | |
org.jooby.internal.parser |
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> |
Result.status() |
Optional<Status> |
Response.status() |
Optional<Status> |
Response.Forwarding.status() |
Modifier and Type | Method and Description |
---|---|
default Router |
Router.err(Status code,
Err.Handler handler)
Setup a route error handler.
|
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) |
Result |
Result.status(Status status)
Set response status.
|
Response |
Response.status(Status status)
Set the HTTP response status.
|
Response |
Response.Forwarding.status(Status status) |
static Result |
Results.with(Object entity,
Status status)
Set the result
|
static Result |
Results.with(Status status)
Set the response status.
|
Modifier and Type | Method and Description |
---|---|
default Router |
Router.err(Predicate<Status> predicate,
Err.Handler handler)
Setup a route error handler.
|
Constructor and Description |
---|
Err(Status status)
Creates a new
Err . |
Err(Status status,
String message)
Creates a new
Err . |
Err(Status status,
String message,
Throwable cause)
Creates a new
Err . |
Err(Status status,
Throwable cause)
Creates a new
Err . |
Modifier and Type | Method and Description |
---|---|
Status |
StatusCodeProvider.apply(Throwable cause) |
Modifier and Type | Method and Description |
---|---|
Optional<Status> |
ResponseImpl.status() |
Modifier and Type | Method and Description |
---|---|
void |
ResponseImpl.redirect(Status status,
String location) |
Response |
ResponseImpl.status(Status status) |
Modifier and Type | Method and Description |
---|---|
Status |
ParserExecutor.statusCode(Throwable cause) |
Copyright © 2017. All rights reserved.