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, badRequest, created, 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, forbidden, found, found, internalServerError, 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, notFound, ok, 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, paymentRequired, permanentRedirect, permanentRedirect, redirect, redirect, seeOther, seeOther, status, 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, 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
If this action was called in a chain then this will contain the value of the action that is called before this action. If no action was called first, then this value will be null.
public Action<?> delegate
If this action was called in a chain then this will contain the value of the action that is called after this action. If there is no action left to be called, then this value will be null.
public abstract java.util.concurrent.CompletionStage<Result> call(Http.Context ctx)
ctx
- the http context in which to execute this action