Class DefaultSendToDataHubResult
- java.lang.Object
-
- de.hybris.platform.sap.orderexchange.outbound.impl.DefaultSendToDataHubResult
-
- All Implemented Interfaces:
SendToDataHubResult
public class DefaultSendToDataHubResult extends java.lang.Object implements SendToDataHubResult
Container for the Result of the Datahub sending process
-
-
Field Summary
Fields Modifier and Type Field Description static SendToDataHubResultMESSAGE_HANDLING_ERRORstatic SendToDataHubResultOKAYstatic SendToDataHubResultSENDING_FAILED-
Fields inherited from interface de.hybris.platform.sap.orderexchange.outbound.SendToDataHubResult
SENDING_FAILED_CODE
-
-
Constructor Summary
Constructors Constructor Description DefaultSendToDataHubResult(int errorCode, java.lang.String errorText)DefaultSendToDataHubResult(org.springframework.http.HttpStatus httpStatus, java.lang.String errorText)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetErrorCode()java.lang.StringgetErrorText()booleanisSuccess()java.lang.StringtoString()
-
-
-
Field Detail
-
OKAY
public static final SendToDataHubResult OKAY
-
SENDING_FAILED
public static final SendToDataHubResult SENDING_FAILED
-
MESSAGE_HANDLING_ERROR
public static final SendToDataHubResult MESSAGE_HANDLING_ERROR
-
-
Method Detail
-
isSuccess
public boolean isSuccess()
- Specified by:
isSuccessin interfaceSendToDataHubResult- Returns:
- true if sending was successful
-
getErrorCode
public int getErrorCode()
- Specified by:
getErrorCodein interfaceSendToDataHubResult
-
getErrorText
public java.lang.String getErrorText()
- Specified by:
getErrorTextin interfaceSendToDataHubResult
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-