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 java.lang.String |
normalizeUri(java.lang.String uri)
Normalizes a URI.
|
default java.lang.String |
resolveUri(BeanDefinition<?> beanDefinition)
Resolve the URI to use for the given type.
|
default java.lang.String |
resolveUri(java.lang.Class<?> type)
Resolve the URI to use for the given type.
|
default java.lang.String |
resolveUri(java.lang.Class type,
PropertyConvention id)
Resolve the URI to use for the given type and route id.
|
default java.lang.String |
resolveUri(java.lang.String property)
Resolve the URI to use for the given type.
|
default java.lang.String resolveUri(java.lang.Class<?> type)
type - The type@NonNull default java.lang.String resolveUri(BeanDefinition<?> beanDefinition)
beanDefinition - The type@NonNull default java.lang.String resolveUri(java.lang.String property)
property - The property@NonNull
default java.lang.String resolveUri(java.lang.Class type,
PropertyConvention id)
type - The typeid - the route iddefault java.lang.String normalizeUri(@Nullable
java.lang.String uri)
uri - The URI