Package io.micronaut.jaxrs.container
Class JaxRsApplicationUriNamingStrategy
java.lang.Object
io.micronaut.web.router.naming.HyphenatedUriNamingStrategy
io.micronaut.jaxrs.container.JaxRsApplicationUriNamingStrategy
- All Implemented Interfaces:
RouteBuilder.UriNamingStrategy
@Singleton
@Requires(classes=io.micronaut.web.router.RouteBuilder.UriNamingStrategy.class)
@Replaces(io.micronaut.web.router.naming.HyphenatedUriNamingStrategy.class)
@Primary
@Internal
public final class JaxRsApplicationUriNamingStrategy
extends HyphenatedUriNamingStrategy
Configures a URI naming strategy based on the
ApplicationPath
annotation.- Since:
- 1.0
- Author:
- graemerocher
-
Constructor Summary
ConstructorDescriptionJaxRsApplicationUriNamingStrategy
(BeanContext beanContext) Deprecated.JaxRsApplicationUriNamingStrategy
(BeanContext beanContext, @Nullable String contextPath) Deprecated.JaxRsApplicationUriNamingStrategy
(ApplicationPathProvider applicationPathProvider) -
Method Summary
Modifier and TypeMethodDescriptionresolveUri
(BeanDefinition<?> beanDefinition) resolveUri
(Class type) resolveUri
(Class type, PropertyConvention id) resolveUri
(String property) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.web.router.RouteBuilder.UriNamingStrategy
normalizeUri
-
Constructor Details
-
JaxRsApplicationUriNamingStrategy
-
JaxRsApplicationUriNamingStrategy
@Deprecated public JaxRsApplicationUriNamingStrategy(BeanContext beanContext, @Value("${micronaut.server.context-path}") @Nullable @Nullable String contextPath) Deprecated. -
JaxRsApplicationUriNamingStrategy
Deprecated.
-
-
Method Details
-
resolveUri
- Specified by:
resolveUri
in interfaceRouteBuilder.UriNamingStrategy
- Overrides:
resolveUri
in classHyphenatedUriNamingStrategy
-
resolveUri
- Specified by:
resolveUri
in interfaceRouteBuilder.UriNamingStrategy
- Overrides:
resolveUri
in classHyphenatedUriNamingStrategy
-
resolveUri
- Specified by:
resolveUri
in interfaceRouteBuilder.UriNamingStrategy
- Overrides:
resolveUri
in classHyphenatedUriNamingStrategy
-
resolveUri
-