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()
          Get the appication status
 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
afterActionInvocation, afterApplicationStart, afterInvocation, beforeActionInvocation, beforeInvocation, bind, compareTo, compileAll, detectChange, enhance, invocationFinally, onActionInvocationResult, onApplicationStart, onApplicationStop, onConfigurationRead, onEvent, onInvocationException, onLoad, onRoutesLoaded, postEvent, routeRequest, 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()
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


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