Class MyCouponFeedbackHandlerImpl
java.lang.Object
com.intershop.sellside.rest.common.v1.capi.handler.FeedbackHandlerImpl
com.intershop.issup.sellside.rest.mycoupon.v1.internal.handler.MyCouponFeedbackHandlerImpl
- All Implemented Interfaces:
MyCouponFeedbackHandler
,com.intershop.sellside.rest.common.v1.capi.handler.FeedbackHandler
public class MyCouponFeedbackHandlerImpl
extends com.intershop.sellside.rest.common.v1.capi.handler.FeedbackHandlerImpl
implements MyCouponFeedbackHandler
Default
MyCouponFeedbackHandler
implementation.-
Nested Class Summary
Nested classes/interfaces inherited from class com.intershop.sellside.rest.common.v1.capi.handler.FeedbackHandlerImpl
com.intershop.sellside.rest.common.v1.capi.handler.FeedbackHandlerImpl.FeedbackResponseBuilder
-
Field Summary
Fields inherited from class com.intershop.sellside.rest.common.v1.capi.handler.FeedbackHandlerImpl
feedbackBuilderProvider, feedbackResourceFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
Returns aResponse
indicating that the coupon could not be created.jakarta.ws.rs.core.Response
Returns aResponse
indicating that the requested coupon could not be found.jakarta.ws.rs.core.Response
Returns aResponse
indicating that the email is missing.Methods inherited from class com.intershop.sellside.rest.common.v1.capi.handler.FeedbackHandlerImpl
getAttributeNotFoundFeedbackResource, getFeedback, getFeedbackResponseBuilder, getMethodNotAllowedFeedback, getMissingJSONBodyFeedback, getObjectLockingFailedFeedback
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.intershop.sellside.rest.common.v1.capi.handler.FeedbackHandler
getAttributeNotFoundFeedbackResource, getFeedback, getFeedbackResponseBuilder, getMethodNotAllowedFeedback, getMissingJSONBodyFeedback, getObjectLockingFailedFeedback
-
Constructor Details
-
MyCouponFeedbackHandlerImpl
public MyCouponFeedbackHandlerImpl()
-
-
Method Details
-
getCouponNotFoundResponse
public jakarta.ws.rs.core.Response getCouponNotFoundResponse()Description copied from interface:MyCouponFeedbackHandler
Returns aResponse
indicating that the requested coupon could not be found.- Specified by:
getCouponNotFoundResponse
in interfaceMyCouponFeedbackHandler
- Returns:
- a
Response
containing an error feedback with HTTP status 404 and error codeMyCouponConstantsREST.ERROR_COUPON_NOT_FOUND
-
getMissingEmailResponse
public jakarta.ws.rs.core.Response getMissingEmailResponse()Description copied from interface:MyCouponFeedbackHandler
Returns aResponse
indicating that the email is missing.- Specified by:
getMissingEmailResponse
in interfaceMyCouponFeedbackHandler
- Returns:
- a
Response
containing an error feedback with HTTP status 404 and error codeMyCouponConstantsREST.ERROR_MISSING_EMAIL
-
getCouldNotCreateACouponResponse
public jakarta.ws.rs.core.Response getCouldNotCreateACouponResponse()Description copied from interface:MyCouponFeedbackHandler
Returns aResponse
indicating that the coupon could not be created.- Specified by:
getCouldNotCreateACouponResponse
in interfaceMyCouponFeedbackHandler
- Returns:
- a
Response
containing an error feedback with HTTP status 204 and error codeMyCouponConstantsREST.ERROR_COUPON_NOT_CREATED
-