Package play.server
Class ApplicationProvider
- Object
-
- play.server.ApplicationProvider
-
public class ApplicationProvider extends Object
Provides information about a Play Application running inside a Play server.
-
-
Constructor Summary
Constructors Constructor Description ApplicationProvider(Application application)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description play.core.ApplicationProvider
asScala()
Optional<Application>
get()
Optional<Result>
handleWebCommand(Http.RequestHeader requestHeader)
Deprecated.Deprecated as of 2.7.0.
-
-
-
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.
-
-