|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.broadleafcommerce.common.web.controller.BroadleafAbstractController
public abstract class BroadleafAbstractController
An abstract controller that provides convenience methods and resource declarations for its children Operations that are shared between all controllers belong here. To use composition rather than extension, implementors can utilize BroadleafControllerUtility.
BroadleafControllerUtility| Constructor Summary | |
|---|---|
BroadleafAbstractController()
|
|
| Method Summary | ||
|---|---|---|
protected
|
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<String,Object> responseMap)
Typically, controller methods are set to return a String that points to the necessary template path. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BroadleafAbstractController()
| Method Detail |
|---|
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<String,Object> responseMap)
throws org.codehaus.jackson.JsonGenerationException,
org.codehaus.jackson.map.JsonMappingException,
IOException
response - responseMap -
org.codehaus.jackson.JsonGenerationException
org.codehaus.jackson.map.JsonMappingException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||