play
Class CorePlugin

java.lang.Object
  extended by play.PlayPlugin
      extended by play.CorePlugin
All Implemented Interfaces:
java.lang.Comparable<PlayPlugin>

public class CorePlugin
extends PlayPlugin

Plugin used for core tasks


Field Summary
 
Fields inherited from class play.PlayPlugin
index
 
Constructor Summary
CorePlugin()
           
 
Method Summary
static java.lang.String computeApplicationStatus(boolean json)
          Get the appication status
 void enhance(ApplicationClasses.ApplicationClass applicationClass)
          Enhance this class
 JsonObject getJsonStatus()
          Retun 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.
 
Methods inherited from class play.PlayPlugin
addTemplateExtensions, afterActionInvocation, afterApplicationStart, afterFixtureLoad, afterInvocation, beforeActionInvocation, beforeDetectingChanges, beforeInvocation, bind, bind, compareTo, compileAll, detectChange, invocationFinally, loadTemplate, modelFactory, onActionInvocationResult, onApplicationReady, onApplicationStart, onApplicationStop, onClassesChange, onConfigurationRead, onEvent, onInvocationException, onInvocationSuccess, onLoad, onRequestRouting, onRoutesLoaded, onTemplateCompilation, postEvent, routeRequest, runTest, serveStatic
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CorePlugin

public CorePlugin()
Method Detail

computeApplicationStatus

public static java.lang.String computeApplicationStatus(boolean json)
Get the appication status


rawInvocation

public boolean rawInvocation(Http.Request request,
                             Http.Response response)
                      throws java.lang.Exception
Intercept /@status and check that the Authorization header is valid. Then ask each plugin for a status dump and send it over the HTTP response.

Overrides:
rawInvocation in class PlayPlugin
Parameters:
request - The Play request
response - The Play response
Returns:
true if this plugin has managed this request
Throws:
java.lang.Exception

getStatus

public java.lang.String getStatus()
Retrieve status about play core.

Overrides:
getStatus in class PlayPlugin

getJsonStatus

public JsonObject getJsonStatus()
Description copied from class: PlayPlugin
Retun the plugin status in JSON format

Overrides:
getJsonStatus in class PlayPlugin

enhance

public void enhance(ApplicationClasses.ApplicationClass applicationClass)
             throws java.lang.Exception
Description copied from class: PlayPlugin
Enhance this class

Overrides:
enhance in class PlayPlugin
Throws:
java.lang.Exception


Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly