public class ValidationPlugin extends PlayPlugin
PlayPlugin.Filter<T>
Modifier and Type | Field and Description |
---|---|
static ThreadLocal<Map<Object,String>> |
keys |
index
Constructor and Description |
---|
ValidationPlugin() |
Modifier and Type | Method and Description |
---|---|
void |
beforeActionInvocation(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(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 ThreadLocal<Map<Object,String>> keys
public void beforeInvocation()
PlayPlugin
beforeInvocation
in class PlayPlugin
public void beforeActionInvocation(Method actionMethod)
PlayPlugin
beforeActionInvocation
in class PlayPlugin
public void onActionInvocationResult(Result result)
PlayPlugin
onActionInvocationResult
in class PlayPlugin
result
- The result object for the request.public void onInvocationException(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