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 SendToDataHubResult
MESSAGE_HANDLING_ERROR
static SendToDataHubResult
OKAY
static SendToDataHubResult
SENDING_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 int
getErrorCode()
java.lang.String
getErrorText()
boolean
isSuccess()
java.lang.String
toString()
-
-
-
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:
isSuccess
in interfaceSendToDataHubResult
- Returns:
- true if sending was successful
-
getErrorCode
public int getErrorCode()
- Specified by:
getErrorCode
in interfaceSendToDataHubResult
-
getErrorText
public java.lang.String getErrorText()
- Specified by:
getErrorText
in interfaceSendToDataHubResult
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-