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 is example.BookController value is /bookresolveUri(Class, PropertyConvention) - Where type is example.BookController value is /book{/id}
Implementers can override to provide other strategies such as pluralization etc.
| Modifier and Type | Method and Description |
|---|---|
default String |
normalizeUri(String uri)
Normalizes a URI.
|
default String |
resolveUri(BeanDefinition<?> beanDefinition)
Resolve the URI to use for the given type.
|
default String |
resolveUri(Class<?> type)
Resolve the URI to use for the given type.
|
default String |
resolveUri(Class type,
PropertyConvention id)
Resolve the URI to use for the given type and route id.
|
default String |
resolveUri(String property)
Resolve the URI to use for the given type.
|
default String resolveUri(Class<?> type)
type - The type@NonNull default String resolveUri(BeanDefinition<?> beanDefinition)
beanDefinition - The type@NonNull default String resolveUri(String property)
property - The property@NonNull default String resolveUri(Class type, PropertyConvention id)
type - The typeid - the route id