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

public abstract class TmaBaseController extends Object
Abstract Base Controller defining common methods and fields to be used by other API controllers.
Since:
1810
  • Field Details

  • Constructor Details

    • TmaBaseController

      public TmaBaseController()
  • Method Details

    • init

      @PostConstruct public void init()
    • handleModelNotFoundException

      @ResponseStatus(NOT_FOUND) @ResponseBody @ExceptionHandler(de.hybris.platform.servicelayer.exceptions.ModelNotFoundException.class) public Error handleModelNotFoundException(Exception ex)
    • getUnsuccessfulResponse

      protected org.springframework.http.ResponseEntity getUnsuccessfulResponse(String errorMessage, Exception e, org.springframework.http.HttpStatus httpStatus)
    • getUnsuccessfulResponseWithErrorRepresentation

      protected org.springframework.http.ResponseEntity getUnsuccessfulResponseWithErrorRepresentation(String errorMessage, Exception e, int errorCode, String reason, org.springframework.http.HttpStatus httpStatus)
    • handleInternalError

      protected Error handleInternalError(String message)
    • getRequestUrl

      protected String getRequestUrl(javax.servlet.http.HttpServletRequest request)
    • encodeUrl

      protected static String encodeUrl(String url)
    • getQueryStringWithoutOffsetAndLimit

      protected String getQueryStringWithoutOffsetAndLimit(javax.servlet.http.HttpServletRequest request)
    • handleTmaApiErrorInternal

      protected org.springframework.http.ResponseEntity<Object> handleTmaApiErrorInternal(Exception e)
    • sanitizeQueryString

      protected String sanitizeQueryString(String queryString)
    • filter

      protected String filter(String value)
    • sanitize

      protected String sanitize(String input)
    • getDataMapper

      protected de.hybris.platform.webservicescommons.mapping.DataMapper getDataMapper()
    • getObjectMapper

      protected com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()