play.mvc
Class Action<T>

java.lang.Object
  extended by play.mvc.Results
      extended by play.mvc.Action<T>
Direct Known Subclasses:
Action.Simple, CachedAction, Security.AuthenticatedAction, TransactionalAction, TransactionalAction

public abstract class Action<T>
extends Results

An action acts as decorator for the action method call.


Nested Class Summary
static class Action.Simple
          A simple action with no configuration.
 
Nested classes/interfaces inherited from class play.mvc.Results
Results.AsyncResult, Results.ByteChunks, Results.Chunks<A>, Results.Redirect, Results.Status, Results.StringChunks, Results.Todo
 
Field Summary
 T configuration
          The action configuration - typically the annotation used to decorate the action method.
 Action<?> delegate
          The wrapped action.
 
Fields inherited from class play.mvc.Results
TODO
 
Constructor Summary
Action()
           
 
Method Summary
abstract  Result call(Http.Context ctx)
          Executes this action with the give HTTP context and returns the result.
 
Methods inherited from class play.mvc.Results
async, 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, 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, redirect, redirect, seeOther, seeOther, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

configuration

public T configuration
The action configuration - typically the annotation used to decorate the action method.


delegate

public Action<?> delegate
The wrapped action.

Constructor Detail

Action

public Action()
Method Detail

call

public abstract Result call(Http.Context ctx)
                     throws java.lang.Throwable
Executes this action with the give HTTP context and returns the result.

Throws:
java.lang.Throwable