public class NebaViewResolver extends Object implements org.springframework.web.servlet.ViewResolver, org.springframework.core.Ordered
SlingServletView
for a provided view name.Constructor and Description |
---|
NebaViewResolver(org.apache.sling.api.servlets.ServletResolver servletResolver) |
Modifier and Type | Method and Description |
---|---|
int |
getOrder()
Multiple view resolvers may coexist and are prioritized via implementation of
Ordered . |
org.springframework.web.servlet.View |
resolveViewName(String viewName,
Locale locale)
Resolves a
View from the provided view name. |
public NebaViewResolver(org.apache.sling.api.servlets.ServletResolver servletResolver)
servletResolver
- must not be null
.public org.springframework.web.servlet.View resolveViewName(String viewName, Locale locale)
View
from the provided view name.resolveViewName
in interface org.springframework.web.servlet.ViewResolver
viewName
- must not be null
.public int getOrder()
Ordered
.
Spring's InternalResourceViewResolver
has the lowest priority
Integer.MAX_VALUE
. This view resolver shall have a higher priority, but allow for any
custom view resolvers to override it.getOrder
in interface org.springframework.core.Ordered
Copyright © 2024. All rights reserved.