public class ValidationPlugin extends PlayPlugin
PlayPlugin.Filter<T>
Modifier and Type | Field and Description |
---|---|
static java.lang.ThreadLocal<java.util.Map<java.lang.Object,java.lang.String>> |
keys |
index
Constructor and Description |
---|
ValidationPlugin() |
Modifier and Type | Method and Description |
---|---|
void |
beforeActionInvocation(java.lang.reflect.Method actionMethod)
Called before an 'action' invocation, ie an HTTP request processing.
|
void |
beforeInvocation()
Called before a Play!
|
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.
|
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
public static final java.lang.ThreadLocal<java.util.Map<java.lang.Object,java.lang.String>> keys
public void beforeInvocation()
PlayPlugin
beforeInvocation
in class PlayPlugin
public void beforeActionInvocation(java.lang.reflect.Method actionMethod)
PlayPlugin
beforeActionInvocation
in class PlayPlugin
actionMethod
- name of the methodpublic void onActionInvocationResult(Result result)
PlayPlugin
onActionInvocationResult
in class PlayPlugin
result
- The result object for the request.public void onInvocationException(java.lang.Throwable e)
PlayPlugin
onInvocationException
in class PlayPlugin
e
- The caught exception.public void invocationFinally()
PlayPlugin
invocationFinally
in class PlayPlugin
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly