Package play.routing
Interface RoutingDslComponents
-
- All Superinterfaces:
BodyParserComponents
,HttpConfigurationComponents
,HttpErrorHandlerComponents
,PekkoComponents
,TemporaryFileComponents
- All Known Implementing Classes:
RoutingDslComponentsFromContext
public interface RoutingDslComponents extends BodyParserComponents
Java Components for RoutingDsl.Usage:
public class MyComponentsWithRouter extends RoutingDslComponentsFromContext implements HttpFiltersComponents { public MyComponentsWithRouter(ApplicationLoader.Context context) { super(context); } public Router router() { // routingDsl method is provided by RoutingDslComponentsFromContext return routingDsl() .GET("/path").routingTo(req -> Results.ok("The content")) .build(); } // other methods }
- See Also:
RoutingDsl
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default RoutingDsl
routingDsl()
-
Methods inherited from interface play.components.BodyParserComponents
anyContentBodyParser, bytesBodyParser, defaultBodyParser, defaultScalaBodyParser, emptyBodyParser, formUrlEncodedBodyParser, jsonBodyParser, multipartFormDataBodyParser, rawBodyParser, scalaBodyParsers, textBodyParser, tolerantJsonBodyParser, tolerantTextBodyParser, tolerantXmlBodyParser, xmlBodyParser
-
Methods inherited from interface play.components.HttpConfigurationComponents
httpConfiguration, sessionConfiguration
-
Methods inherited from interface play.components.HttpErrorHandlerComponents
httpErrorHandler, javaContextComponents, scalaHttpErrorHandler
-
Methods inherited from interface play.components.PekkoComponents
actorSystem, coordinatedShutdown, executionContext, materializer
-
Methods inherited from interface play.components.TemporaryFileComponents
tempFileCreator
-
-
-
-
Method Detail
-
routingDsl
default RoutingDsl routingDsl()
-
-