Package play.server

Class ApplicationProvider


  • public class ApplicationProvider
    extends Object
    Provides information about a Play Application running inside a Play server.
    • Constructor Detail

      • ApplicationProvider

        public ApplicationProvider​(Application application)
    • Method Detail

      • asScala

        public play.core.ApplicationProvider asScala()
        Returns:
        The Scala version of this application provider.
      • get

        public Optional<Application> get()
        Returns:
        Returns an Optional with the application, if available.
      • handleWebCommand

        @Deprecated
        public Optional<Result> handleWebCommand​(Http.RequestHeader requestHeader)
        Deprecated.
        Deprecated as of 2.7.0. WebCommands are now handled by the DefaultHttpRequestHandler.
        Handle a request directly, without using the application.
        Parameters:
        requestHeader - the request made.