Interface RouteBuilder.UriNamingStrategy
- All Known Implementing Classes:
ConfigurableUriNamingStrategy, HyphenatedUriNamingStrategy
- Enclosing interface:
RouteBuilder
public static interface RouteBuilder.UriNamingStrategy
A URI naming strategy is used to dictate the default name to use when building a URI for a class.
The default strategy is as follows:
resolveUri(Class)- Where type isexample.BookControllervalue is/bookresolveUri(Class, PropertyConvention)- Where type isexample.BookControllervalue is/book{/id}
Implementers can override to provide other strategies such as pluralization etc.
- Since:
- 1.0
- Author:
- Graeme Rocher
-
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable StringnormalizeUri(@Nullable String uri) Normalizes a URI.default StringresolveUri(BeanDefinition<?> beanDefinition) Resolve the URI to use for the given type.default StringresolveUri(Class<?> type) Resolve the URI to use for the given type.default StringresolveUri(Class<?> type, PropertyConvention id) Resolve the URI to use for the given type and route id.default StringresolveUri(String property) Resolve the URI to use for the given type.
-
Method Details
-
resolveUri
-
resolveUri
Resolve the URI to use for the given type.- Parameters:
beanDefinition- The type- Returns:
- The URI to use
-
resolveUri
-
resolveUri
Resolve the URI to use for the given type and route id.- Parameters:
type- The typeid- the route id- Returns:
- The URI to use
-
normalizeUri
-