Class HyphenatedUriNamingStrategy

java.lang.Object
io.micronaut.web.router.naming.HyphenatedUriNamingStrategy
All Implemented Interfaces:
RouteBuilder.UriNamingStrategy
Direct Known Subclasses:
ConfigurableUriNamingStrategy

@Singleton public class HyphenatedUriNamingStrategy extends Object implements RouteBuilder.UriNamingStrategy
The default RouteBuilder.UriNamingStrategy if none is provided by the application.
Since:
1.0
  • Constructor Details

    • HyphenatedUriNamingStrategy

      public HyphenatedUriNamingStrategy()
      Constructor without context path.
    • HyphenatedUriNamingStrategy

      @Inject public HyphenatedUriNamingStrategy(@Nullable @Value("${micronaut.server.context-path}") @Nullable String contextPath)
      Constructor with optional context path.
      Parameters:
      contextPath - The context path to prefix to all URIs
  • Method Details