SDMRequestStateElement class

Deprecated. since 3.0, Use com.sap.mobile.lib.request.IRequestStateElement The SDMRequestStateElement implementation stores the data of an exception.

Package

com.sap.mobile.lib.sdmconnectivity

Syntax

public class SDMRequestStateElement implements ISDMRequestStateElement

Implemented interfaces

Members

All members of SDMRequestStateElement, including inherited members.

Variables
Modifier and Type Variable Description
protected int mErrorCode Stores the error type.
protected int mHttpStatus Stores the HTTP status if available.
protected HttpResponse mResponse  
protected Exception mException Stores the exception if available.
Constructors Methods
Modifier and Type Method Description
public int getErrorCode() Returns the error code.
public Exception getException() Returns the Exception if it was set.
public HttpResponse getHttpResponse() Returns the HttpResponse.
public int getHttpStatusCode() Returns the HTTP status if it was set.
public void setErrorCode(final int) Sets the error code.
public void setException(final Exception) Sets the Exception.
public void setHttpResponse(HttpResponse) Sets the HttpResponse.
public void setHttpStatusCode(int)  
Inherited members from ISDMRequestStateElement
Modifier and Type Member Description
public static final int AUTHENTICATION_ERROR Authentication error.
public static final int CLIENT_ERROR Client error.
public static final int HTTP_ERROR Server response status > 302.
public static final int NETWORK_ERROR There was a network error during a read/write to/from stream.
public static final int NO_ERROR  
public static final int PARSE_ERROR Problem with parsing the response xml.
public static final int REQUEST_ERROR Problem with parsing the request.
public abstract void setHttpStatusCode(final int) Sets the HTTP status.

Usage

Whenever there is an exception in the network layer, or there is an exception during the data parsing, this class is sent by the net layer to the registered classes.