Class TmaBaseController
java.lang.Object
de.hybris.platform.b2ctelcotmfwebservices.v2.controller.TmaBaseController
- Direct Known Subclasses:
TmaCatalogApiController,TmaCategoryApiController,TmaChecklistActionApiController,TmaDeliveryModeApiController,TmaGeographicAddressApiController,TmaPartyRoleApiController,TmaPaymentMethodApiController,TmaProcessTypeManagementApiController,TmaProductApiController,TmaProductOfferingApiController,TmaProductOrderApiController,TmaProductSpecificationApiController,TmaRecommendationApiController,TmaReviewApiController,TmaShoppingCartApiController,TmaSubscriptionApiController,TmaSubscriptionBaseApiController,TmaUsageConsumptionReportApiController
Abstract Base Controller defining common methods and fields to be used by other API controllers.
- Since:
- 1810
-
Field Summary
Fields -
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 org.springframework.http.ResponseEntitygetUnsuccessfulResponse(String errorMessage, Exception e, 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)
-
Field Details
-
BAD_REQUEST
- See Also:
-
NOT_FOUND
- See Also:
-
-
Constructor Details
-
TmaBaseController
public TmaBaseController()
-
-
Method Details
-
init
@PostConstruct public void init() -
handleModelNotFoundException
-
getUnsuccessfulResponse
-
getUnsuccessfulResponseWithErrorRepresentation
-
handleInternalError
-
getRequestUrl
-
encodeUrl
-
getQueryStringWithoutOffsetAndLimit
-
handleTmaApiErrorInternal
-
sanitizeQueryString
-
filter
-
sanitize
-
getDataMapper
protected de.hybris.platform.webservicescommons.mapping.DataMapper getDataMapper() -
getObjectMapper
protected com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-