Class PrBaseController
java.lang.Object
de.hybris.platform.partyroletmfwebservices.v2.controllers.PrBaseController
- Direct Known Subclasses:
PrPartyRoleController
Abstract Base Controller defining common methods and fields to be used by other API controllers.
- Since:
- 2208
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringFilter the characters and strings that could present a XSS threatprotected de.hybris.platform.webservicescommons.mapping.DataMapperprotected de.hybris.platform.servicelayer.i18n.I18NServiceprotected org.springframework.context.MessageSourceprotected com.fasterxml.jackson.databind.ObjectMapperprotected StringgetQueryStringWithoutOffsetAndLimit(javax.servlet.http.HttpServletRequest request) protected 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 ErrorhandleInternalError(String message) voidinit()protected Stringprotected String
-
Constructor Details
-
PrBaseController
public PrBaseController()
-
-
Method Details
-
init
@PostConstruct public void init() -
handleModelNotFoundException
-
getUnsuccessfulResponse
-
getUnsuccessfulResponse
protected org.springframework.http.ResponseEntity getUnsuccessfulResponse(String message, org.springframework.http.HttpStatus httpStatus) -
getQueryStringWithoutOffsetAndLimit
-
filter
Filter the characters and strings that could present a XSS threat- Parameters:
value- the string which is being filtered- Returns:
- the filtered result
-
handleInternalError
-
validate
-
sanitize
-
getDataMapper
protected de.hybris.platform.webservicescommons.mapping.DataMapper getDataMapper() -
getObjectMapper
protected com.fasterxml.jackson.databind.ObjectMapper getObjectMapper() -
getMessageSource
protected org.springframework.context.MessageSource getMessageSource() -
getI18nService
protected de.hybris.platform.servicelayer.i18n.I18NService getI18nService()
-