Package org.broadleafcommerce.common.web
Class JsonResponse
java.lang.Object
org.broadleafcommerce.common.web.JsonResponse
Used when a controller typically returns a String that represents a view path but would like to return a
JSON response in other scenarios, such as an error case.
Example Usage:
return new JsonResponse(response)
.with("status", "ok")
.with("shouldRefresh", true)
.done();
- Author:
- Andre Azzolini (apazzolini)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
map
-
response
protected javax.servlet.http.HttpServletResponse response
-
-
Constructor Details
-
JsonResponse
public JsonResponse(javax.servlet.http.HttpServletResponse response)
-
-
Method Details
-
with
-
done
-