Called before the application starts.
Called before the application starts.
Resources managed by plugins, such as database connections, are likely not available at this point.
the application
Filters for EssentialAction.
Filters.
Called when an action has been found, but the request parsing has failed.
Called when an action has been found, but the request parsing has failed.
The default is to send the framework default 400 page.
the HTTP request header
the result to send to the client
Called when an exception occurred.
Called when an exception occurred.
The default is to send the framework default error page.
The HTTP request header
The exception
The result to send to the client
Called when no action was found to serve a request.
Called when no action was found to serve a request.
The default is to send the framework default 404 page.
the HTTP request header
the result to send to the client
Retrieve the (RequestHeader,Handler) to use to serve this request.
Retrieve the (RequestHeader,Handler) to use to serve this request. Default is: route, tag request, then apply filters
Called when an HTTP request has been received.
Called when an HTTP request has been received.
The default is to use the application router to find the appropriate action.
the HTTP request header (the body has not been parsed yet)
an action to handle this request - if no action is returned, a 404 not found result will be sent to client
onHandlerNotFound
Called once the application is started.
Called once the application is started.
the application
Called on application stop.
Called on application stop.
the application
This method does not do anything. Instead, specify configuration in your config file or make your own ApplicationLoader (see GuiceApplicationBuilder.loadConfig).
This method does not do anything. Instead, specify configuration in your config file or make your own ApplicationLoader (see GuiceApplicationBuilder.loadConfig).
(Since version 2.4.0) onRequestCompletion is no longer invoked by Play. The same functionality can be achieved by adding a filter that attaches a onDoneEnumerating callback onto the returned Result Enumerator.
Defines an application’s global settings.
To define your own global settings, just create a
Global
object in the_root_
package.