Package play.data.validation
Class ValidationPlugin
- java.lang.Object
-
- play.PlayPlugin
-
- play.data.validation.ValidationPlugin
-
- All Implemented Interfaces:
java.lang.Comparable<PlayPlugin>
public class ValidationPlugin extends PlayPlugin
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.ThreadLocal<java.util.Map<java.lang.Object,java.lang.String>>keys-
Fields inherited from class play.PlayPlugin
index
-
-
Constructor Summary
Constructors Constructor Description ValidationPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeforeActionInvocation(Http.Request request, Http.Response response, Scope.Session session, Scope.RenderArgs renderArgs, Scope.Flash flash, java.lang.reflect.Method actionMethod)Called before an 'action' invocation, ie an HTTP request processing.voidbeforeInvocation()Called before a Play! invocation.voidonActionInvocationException(Http.Request request, Http.Response response, java.lang.Throwable e)voidonActionInvocationFinally(Http.Request request)Called at the end of the action invocation (either in case of success or any failure).voidonActionInvocationResult(Http.Request request, Http.Response response, Scope.Session session, Scope.RenderArgs renderArgs, Result result)voidonJobInvocationFinally()-
Methods inherited from class play.PlayPlugin
afterActionInvocation, afterApplicationStart, afterInvocation, bind, compareTo, detectChange, disable, getJsonStatus, getMessage, getStatus, isEnabled, loadTemplate, onActionInvocationResult, onApplicationStart, onApplicationStop, onConfigurationRead, onInvocationSuccess, onJobInvocationException, onLoad, rawInvocation, routeRequest
-
-
-
-
Method Detail
-
beforeInvocation
public void beforeInvocation()
Description copied from class:PlayPluginCalled before a Play! invocation. Time to prepare request specific things.- Overrides:
beforeInvocationin classPlayPlugin
-
beforeActionInvocation
public void beforeActionInvocation(Http.Request request, Http.Response response, Scope.Session session, Scope.RenderArgs renderArgs, Scope.Flash flash, java.lang.reflect.Method actionMethod)
Description copied from class:PlayPluginCalled before an 'action' invocation, ie an HTTP request processing.- Overrides:
beforeActionInvocationin classPlayPlugin
-
onActionInvocationResult
public void onActionInvocationResult(@Nonnull Http.Request request, @Nonnull Http.Response response, @Nonnull Scope.Session session, @Nonnull Scope.RenderArgs renderArgs, Result result)- Overrides:
onActionInvocationResultin classPlayPlugin
-
onActionInvocationException
public void onActionInvocationException(@Nonnull Http.Request request, @Nonnull Http.Response response, @Nonnull java.lang.Throwable e)- Overrides:
onActionInvocationExceptionin classPlayPlugin
-
onActionInvocationFinally
public void onActionInvocationFinally(@Nonnull Http.Request request)Description copied from class:PlayPluginCalled at the end of the action invocation (either in case of success or any failure). Time to close request-specific things.- Overrides:
onActionInvocationFinallyin classPlayPlugin
-
onJobInvocationFinally
public void onJobInvocationFinally()
- Overrides:
onJobInvocationFinallyin classPlayPlugin
-
-