public abstract class Action<T> extends Results
Modifier and Type | Class and Description |
---|---|
static class |
Action.Simple
A simple action with no configuration.
|
Modifier and Type | Field and Description |
---|---|
java.lang.reflect.AnnotatedElement |
annotatedElement
Where an action was defined.
|
T |
configuration
The action configuration - typically the annotation used to decorate the action method.
|
Action<?> |
delegate
The wrapped action.
|
Action<?> |
precursor
The precursor action.
|
Constructor and Description |
---|
Action() |
Modifier and Type | Method and Description |
---|---|
abstract java.util.concurrent.CompletionStage<Result> |
call(Http.Context ctx)
Executes this action with the given HTTP context and returns the result.
|
badRequest, badRequest, badRequest, badRequest, badRequest, badRequest, badRequest, badRequest, badRequest, badRequest, badRequest, badRequest, badRequest, created, created, created, created, created, created, created, created, created, created, created, created, created, forbidden, forbidden, forbidden, forbidden, forbidden, forbidden, forbidden, forbidden, forbidden, forbidden, forbidden, forbidden, forbidden, found, found, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, movedPermanently, movedPermanently, noContent, notAcceptable, notAcceptable, notAcceptable, notAcceptable, notAcceptable, notAcceptable, notAcceptable, notAcceptable, notAcceptable, notAcceptable, notAcceptable, notAcceptable, notAcceptable, notFound, notFound, notFound, notFound, notFound, notFound, notFound, notFound, notFound, notFound, notFound, notFound, notFound, ok, ok, ok, ok, ok, ok, ok, ok, ok, ok, ok, ok, ok, paymentRequired, paymentRequired, paymentRequired, paymentRequired, paymentRequired, paymentRequired, paymentRequired, paymentRequired, paymentRequired, paymentRequired, paymentRequired, paymentRequired, paymentRequired, permanentRedirect, permanentRedirect, redirect, redirect, seeOther, seeOther, status, status, status, status, status, status, status, status, status, status, status, status, status, status, temporaryRedirect, temporaryRedirect, unauthorized, unauthorized, unauthorized, unauthorized, unauthorized, unauthorized, unauthorized, unauthorized, unauthorized, unauthorized, unauthorized, unauthorized, unauthorized, unsupportedMediaType, unsupportedMediaType, unsupportedMediaType, unsupportedMediaType, unsupportedMediaType, unsupportedMediaType, unsupportedMediaType, unsupportedMediaType, unsupportedMediaType, unsupportedMediaType, unsupportedMediaType, unsupportedMediaType, unsupportedMediaType
public T configuration
public java.lang.reflect.AnnotatedElement annotatedElement
public Action<?> precursor
public Action<?> delegate
public abstract java.util.concurrent.CompletionStage<Result> call(Http.Context ctx)
ctx
- the http context in which to execute this action