Class BaseController
- java.lang.Object
-
- de.hybris.platform.ycommercewebservices.v1.controller.BaseController
-
- Direct Known Subclasses:
CartController,CatalogsController,CustomerGroupsController,CustomersController,OrderController,ProductsController,PromotionsController,StoreController,StoreFinderController,VouchersController
@Controller("baseControllerV1") public class BaseController extends java.lang.ObjectBase Controller. It defines the exception handler to be used by all controllers. Extending controllers can add or overwrite the exception handler if needed.
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringDEFAULT_CURRENT_PAGEprotected static java.lang.StringDEFAULT_PAGE_SIZE
-
Constructor Summary
Constructors Constructor Description BaseController()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ErrorListWsDTOhandleErrorInternal(java.lang.String type, java.lang.String message)ErrorListWsDTOhandleModelNotFoundException(java.lang.Exception ex)protected static java.lang.Stringsanitize(java.lang.String input)
-
-
-
Field Detail
-
DEFAULT_PAGE_SIZE
protected static final java.lang.String DEFAULT_PAGE_SIZE
- See Also:
- Constant Field Values
-
DEFAULT_CURRENT_PAGE
protected static final java.lang.String DEFAULT_CURRENT_PAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
handleModelNotFoundException
@ResponseStatus(BAD_REQUEST) @ResponseBody @ExceptionHandler(ModelNotFoundException.class) public ErrorListWsDTO handleModelNotFoundException(java.lang.Exception ex)
-
handleErrorInternal
protected ErrorListWsDTO handleErrorInternal(java.lang.String type, java.lang.String message)
-
sanitize
protected static java.lang.String sanitize(java.lang.String input)
-
-