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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class play.PlayPlugin
PlayPlugin.Filter<T>
-
-
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 void
beforeActionInvocation(java.lang.reflect.Method actionMethod)
Called before an 'action' invocation, ie an HTTP request processing.void
beforeInvocation()
Called before a Play! invocation.void
invocationFinally()
Called at the end of the invocation.void
onActionInvocationResult(Result result)
Called when the action method has thrown a result.void
onInvocationException(java.lang.Throwable e)
Called if an exception occurred during the invocation.-
Methods inherited from class play.PlayPlugin
addMimeTypes, addTemplateExtensions, afterActionInvocation, afterApplicationStart, afterFixtureLoad, afterInvocation, beforeDetectingChanges, bind, bind, bind, bindBean, compareTo, compileAll, compileSources, detectChange, detectClassesChange, enhance, getFilter, getFunctionalTests, getJsonStatus, getMessage, getStatus, getUnitTests, hasFilter, loadTemplate, modelFactory, onActionInvocationFinally, onApplicationReady, onApplicationStart, onApplicationStop, onClassesChange, onConfigurationRead, onEvent, onInvocationSuccess, onLoad, onRequestRouting, onRoutesLoaded, onTemplateCompilation, overrideTemplateSource, postEvent, rawInvocation, routeRequest, runTest, serveStatic, unBind, willBeValidated
-
-
-
-
Method Detail
-
beforeInvocation
public void beforeInvocation()
Description copied from class:PlayPlugin
Called before a Play! invocation. Time to prepare request specific things.- Overrides:
beforeInvocation
in classPlayPlugin
-
beforeActionInvocation
public void beforeActionInvocation(java.lang.reflect.Method actionMethod)
Description copied from class:PlayPlugin
Called before an 'action' invocation, ie an HTTP request processing.- Overrides:
beforeActionInvocation
in classPlayPlugin
- Parameters:
actionMethod
- name of the method
-
onActionInvocationResult
public void onActionInvocationResult(Result result)
Description copied from class:PlayPlugin
Called when the action method has thrown a result.- Overrides:
onActionInvocationResult
in classPlayPlugin
- Parameters:
result
- The result object for the request.
-
onInvocationException
public void onInvocationException(java.lang.Throwable e)
Description copied from class:PlayPlugin
Called if an exception occurred during the invocation.- Overrides:
onInvocationException
in classPlayPlugin
- Parameters:
e
- The caught exception.
-
invocationFinally
public void invocationFinally()
Description copied from class:PlayPlugin
Called at the end of the invocation. (even if an exception occurred). Time to close request specific things.- Overrides:
invocationFinally
in classPlayPlugin
-
-