public class PlayStatusPlugin extends PlayPlugin
PlayPlugin.Filter<T>
index
Constructor and Description |
---|
PlayStatusPlugin() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
computeApplicationStatus(boolean json)
Get the application status
|
com.google.gson.JsonObject |
getJsonStatus()
Return the plugin status in JSON format
|
java.lang.String |
getStatus()
Retrieve status about play core.
|
boolean |
rawInvocation(Http.Request request,
Http.Response response)
Intercept /@status and check that the Authorization header is valid.
|
addMimeTypes, addTemplateExtensions, afterActionInvocation, afterApplicationStart, afterFixtureLoad, afterInvocation, beforeActionInvocation, beforeDetectingChanges, beforeInvocation, bind, bind, bind, bindBean, compareTo, compileAll, compileSources, detectChange, detectClassesChange, enhance, getFilter, getFunctionalTests, getMessage, getUnitTests, hasFilter, invocationFinally, loadTemplate, modelFactory, onActionInvocationFinally, onActionInvocationResult, onApplicationReady, onApplicationStart, onApplicationStop, onClassesChange, onConfigurationRead, onEvent, onInvocationException, onInvocationSuccess, onLoad, onRequestRouting, onRoutesLoaded, onTemplateCompilation, overrideTemplateSource, postEvent, routeRequest, runTest, serveStatic, unBind, willBeValidated
public java.lang.String computeApplicationStatus(boolean json)
json
- true if the status should be return in JSONpublic boolean rawInvocation(Http.Request request, Http.Response response) throws java.lang.Exception
rawInvocation
in class PlayPlugin
request
- The Play requestresponse
- The Play responsejava.lang.Exception
- if cannot enhance the classpublic java.lang.String getStatus()
getStatus
in class PlayPlugin
public com.google.gson.JsonObject getJsonStatus()
PlayPlugin
getJsonStatus
in class PlayPlugin
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly