public interface TemplateTypeAware
| Modifier and Type | Method and Description |
|---|---|
String |
getExpectedTemplateName(javax.servlet.http.HttpServletRequest request)
If a custom handler is written and it knows the eventual template name, then it should return the
template name when this method is called.
|
TemplateType |
getTemplateType(javax.servlet.http.HttpServletRequest request)
If a custom handler is written and it knows the eventual template name, then it should return the
TemplateType when this method is called.
|
String getExpectedTemplateName(javax.servlet.http.HttpServletRequest request)
#getBroadleafHandlerInternal(HttpServletRequest) and only if the Handler was able to handle the
request (e.g. it returns a non-null value from #getBroadleafHandlerInternal(HttpServletRequest).
Listed as expected because the HandlerMapping is making a call before the controller logic has
been processed. The controller may send the user somewhere else (e.g. an error page, etc.) in which
case, the expected template won't be the actual destination.request - ExceptionTemplateType getTemplateType(javax.servlet.http.HttpServletRequest request)
#getBroadleafHandlerInternal(HttpServletRequest) and only if the Handler was able to handle the
request (e.g. it returns a non-null value from #getBroadleafHandlerInternal(HttpServletRequest).request - ExceptionCopyright © 2014. All Rights Reserved.