Class TmaBaseController

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected static java.lang.String encodeUrl​(java.lang.String url)  
      protected java.lang.String filter​(java.lang.String value)  
      protected de.hybris.platform.webservicescommons.mapping.DataMapper getDataMapper()  
      protected com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()  
      protected java.lang.String getQueryStringWithoutOffsetAndLimit​(javax.servlet.http.HttpServletRequest request)  
      protected java.lang.String getRequestUrl​(javax.servlet.http.HttpServletRequest request)  
      protected org.springframework.http.ResponseEntity getUnsuccessfulResponse​(java.lang.String errorMessage, java.lang.Exception e, org.springframework.http.HttpStatus httpStatus)  
      protected org.springframework.http.ResponseEntity getUnsuccessfulResponseWithErrorRepresentation​(java.lang.String errorMessage, java.lang.Exception e, int errorCode, java.lang.String reason, org.springframework.http.HttpStatus httpStatus)  
      protected Error handleInternalError​(java.lang.String message)  
      Error handleModelNotFoundException​(java.lang.Exception ex)  
      protected org.springframework.http.ResponseEntity<java.lang.Object> handleTmaApiErrorInternal​(java.lang.Exception e)  
      void init()  
      protected java.lang.String sanitize​(java.lang.String input)  
      protected java.lang.String sanitizeQueryString​(java.lang.String queryString)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TmaBaseController

        public TmaBaseController()
    • Method Detail

      • init

        @PostConstruct
        public void init()
      • handleModelNotFoundException

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

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

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

        protected Error handleInternalError​(java.lang.String message)
      • getRequestUrl

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

        protected static java.lang.String encodeUrl​(java.lang.String url)
      • getQueryStringWithoutOffsetAndLimit

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

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

        protected java.lang.String sanitizeQueryString​(java.lang.String queryString)
      • filter

        protected java.lang.String filter​(java.lang.String value)
      • sanitize

        protected java.lang.String sanitize​(java.lang.String input)
      • getDataMapper

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

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