public abstract class BroadleafAbstractController extends Object
BroadleafControllerUtility| Constructor and Description |
|---|
BroadleafAbstractController() |
| Modifier and Type | Method and Description |
|---|---|
protected <T> void |
addDeepLink(org.springframework.web.servlet.ModelAndView model,
DeepLinkService<T> service,
T item) |
protected String |
getContextPath(javax.servlet.http.HttpServletRequest request)
Returns the current servlet context path.
|
protected boolean |
isAjaxRequest(javax.servlet.http.HttpServletRequest request)
A helper method that returns whether or not the given request was invoked via an AJAX call
|
protected String |
jsonResponse(javax.servlet.http.HttpServletResponse response,
Map<?,?> responseMap)
Typically, controller methods are set to return a String that points to the necessary template path.
|
protected boolean isAjaxRequest(javax.servlet.http.HttpServletRequest request)
request - protected String getContextPath(javax.servlet.http.HttpServletRequest request)
request - protected <T> void addDeepLink(org.springframework.web.servlet.ModelAndView model,
DeepLinkService<T> service,
T item)
protected String jsonResponse(javax.servlet.http.HttpServletResponse response, Map<?,?> responseMap) throws com.fasterxml.jackson.core.JsonGenerationException, com.fasterxml.jackson.databind.JsonMappingException, IOException
response - responseMap - com.fasterxml.jackson.core.JsonGenerationExceptioncom.fasterxml.jackson.databind.JsonMappingExceptionIOExceptionCopyright © 2019. All rights reserved.