Class TmaBaseController
java.lang.Object
de.hybris.platform.b2ctelcotmfwebservices.v3.controller.TmaBaseController
- Direct Known Subclasses:
TmaProductApiController,TmaProductOfferingApiController,TmaProductOfferingPriceApiController,TmaProductOrderApiController,TmaProductSpecificationApiController
Abstract Base Controller defining common methods and fields to be used by other API controllers.
- Since:
- 2007
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static Stringprotected Stringprotected de.hybris.platform.webservicescommons.mapping.DataMapperprotected com.fasterxml.jackson.databind.ObjectMapperprotected StringgetQueryStringWithoutOffsetAndLimit(javax.servlet.http.HttpServletRequest request) protected StringgetRequestUrl(javax.servlet.http.HttpServletRequest request) protected TmaCatalogVersionFacadeprotected org.springframework.http.ResponseEntitygetUnsuccessfulResponse(String errorMessage, Exception e, org.springframework.http.HttpStatus httpStatus) protected org.springframework.http.ResponseEntitygetUnsuccessfulResponse(String message, org.springframework.http.HttpStatus httpStatus) protected org.springframework.http.ResponseEntitygetUnsuccessfulResponseWithErrorRepresentation(String errorMessage, Exception e, int errorCode, String reason, org.springframework.http.HttpStatus httpStatus) protected ErrorhandleInternalError(String message) protected org.springframework.http.ResponseEntity<Object>voidinit()protected Stringprotected StringsanitizeQueryString(String queryString) protected booleansetCatalogVersion(String baseSiteId, String catalogId, String catalogVersion)
-
Constructor Details
-
TmaBaseController
public TmaBaseController()
-
-
Method Details
-
init
@PostConstruct public void init() -
handleModelNotFoundException
-
getUnsuccessfulResponse
-
getUnsuccessfulResponse
protected org.springframework.http.ResponseEntity getUnsuccessfulResponse(String message, org.springframework.http.HttpStatus httpStatus) -
getUnsuccessfulResponseWithErrorRepresentation
-
handleInternalError
-
getRequestUrl
-
encodeUrl
-
getQueryStringWithoutOffsetAndLimit
-
handleTmaApiErrorInternal
-
sanitizeQueryString
-
filter
-
setCatalogVersion
-
sanitize
-
getDataMapper
protected de.hybris.platform.webservicescommons.mapping.DataMapper getDataMapper() -
getObjectMapper
protected com.fasterxml.jackson.databind.ObjectMapper getObjectMapper() -
getTmaCatalogVersionFacade
-