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.
Returns the current servlet context path. This will return a "/" if the application is
deployed as root. If it's not deployed as root, it will return the context path BOTH a
leading slash but without a trailing slash.
the context path
protected <T> void addDeepLink(org.springframework.web.servlet.ModelAndView model,
Typically, controller methods are set to return a String that points to the necessary template path.
However, there may be occasions where the error state for a controller action should instead return
JSON instead of a fully rendered template. This convenience method will achieve that by setting the
appropriate headers and serializing the given map.