public final class

OfflineODataFailedRequest

extends Object
java.lang.Object
   ↳ com.sap.cloud.mobile.odata.offline.OfflineODataFailedRequest

Class Overview

The class represents the information of a failed request occurred at OData back end during an uploading.

Summary

Public Constructors
OfflineODataFailedRequest()
Public Methods
String getCustomTag()
Returns the customized string that was used to tag the request.
String getErrorCode()
Returns the error code in the response when error occurred at the OData back end.
String getErrorMessage()
Returns the error message in the response when error occurred at the OData back end.
int getHttpStatusCode()
Returns the HTTP status code returned from the OData back end.
String getInnerError()
Returns the inner error in the response when error occurred at the OData back end.
String getRequestBody()
Returns the JSON body sent to the OData back end.
String getRequestHTTPMethod()
Returns the HTTP method of the request.
long getRequestID()
Returns the request identifier.
String getRequestURL()
Returns the URL used to execute the request against the OData back end.
void setCustomTag(String customTag)
Defines the customized string tagged with the request.
void setErrorCode(String errorCode)
Defines the error code.
void setErrorMessage(String errorMessage)
Defines the error message.
void setHttpStatusCode(int httpStatusCode)
Defines HTTP status code.
void setInnerError(String innerError)
Defines the inner error.
void setRequestBody(String requestBody)
Defines the request body.
void setRequestHTTPMethod(String requestHTTPMethod)
Defines the HTTP method.
void setRequestID(long requestID)
Defines the request identifier.
void setRequestURL(String requestURL)
Defines the request URL.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public OfflineODataFailedRequest ()

Public Methods

public String getCustomTag ()

Returns the customized string that was used to tag the request.

Returns
  • the customized string that was used to tag the request.

public String getErrorCode ()

Returns the error code in the response when error occurred at the OData back end.

Returns
  • the error code in the response when error occurred at the OData back end.

public String getErrorMessage ()

Returns the error message in the response when error occurred at the OData back end.

Returns
  • the error message in the response when error occurred at the OData back end.

public int getHttpStatusCode ()

Returns the HTTP status code returned from the OData back end.

Returns
  • the HTTP status code returned from the OData back end.

public String getInnerError ()

Returns the inner error in the response when error occurred at the OData back end.

Returns
  • the inner error in the response when error occurred at the OData back end.

public String getRequestBody ()

Returns the JSON body sent to the OData back end.

Returns
  • the JSON body sent to the OData back end.

public String getRequestHTTPMethod ()

Returns the HTTP method of the request.

Returns
  • the HTTP method of the request.

public long getRequestID ()

Returns the request identifier.

Returns
  • the request identifier.

public String getRequestURL ()

Returns the URL used to execute the request against the OData back end.

Returns
  • the URL used to execute the request against the OData back end.

public void setCustomTag (String customTag)

Defines the customized string tagged with the request.

Parameters
customTag the customized string tagged with the request.

public void setErrorCode (String errorCode)

Defines the error code.

Parameters
errorCode the error code in the response when error occurred at the OData back end.

public void setErrorMessage (String errorMessage)

Defines the error message.

Parameters
errorMessage the error message in the response when error occurred at the OData back end.

public void setHttpStatusCode (int httpStatusCode)

Defines HTTP status code.

Parameters
httpStatusCode HTTP status code returned from the OData back end.

public void setInnerError (String innerError)

Defines the inner error.

Parameters
innerError the inner error in the response when error occurred at the OData back end.

public void setRequestBody (String requestBody)

Defines the request body.

Parameters
requestBody the JSON body send to the OData back end.

public void setRequestHTTPMethod (String requestHTTPMethod)

Defines the HTTP method.

Parameters
requestHTTPMethod the HTTP method of the request.

public void setRequestID (long requestID)

Defines the request identifier.

Parameters
requestID the request identifier.

public void setRequestURL (String requestURL)

Defines the request URL.

Parameters
requestURL the URL used to execute the request against the OData back end.