java.lang.Object
com.smartdevicelink.proxy.RPCStruct
com.smartdevicelink.proxy.RPCMessage
The result code provides additional information about a response returning a failed outcome.
Any response can have at least one, or possibly more, of the following result code values: SUCCESS, INVALID_DATA, OUT_OF_MEMORY, TOO_MANY_PENDING_REQUESTS, APPLICATION_NOT_REGISTERED, GENERIC_ERROR,REJECTED.
Any additional result codes for a given operation can be found in related RPCs
public static final java.lang.String KEY_SUCCESS
public static final java.lang.String KEY_INFO
public static final java.lang.String KEY_RESULT_CODE
Constructs a newly allocated RPCResponse object using function name
public RPCResponse(String functionName)
Constructs a newly allocated RPCResponse object indicated by the Hashtable parameter
public RPCResponse(java.util.Hashtable<java.lang.String, java.lang.Object> hash)
Constructs a newly allocated RPCResponse object using a RPCMessage object
public RPCResponse(RPCMessage rpcMsg)
Returns correlationID the ID of the request
public java.lang.Integer getCorrelationID()
Set the correlationID
public com.smartdevicelink.proxy.RPCResponse setCorrelationID(Integer correlationID)
Returns Success whether the request is successfully processed
public java.lang.Boolean getSuccess()
Set the Success status
public com.smartdevicelink.proxy.RPCResponse setSuccess(Boolean success)
Returns ResultCode additional information about a response returning a failed outcome
public com.smartdevicelink.proxy.rpc.enums.Result getResultCode()
Set the additional information about a response returning a failed outcome
public com.smartdevicelink.proxy.RPCResponse setResultCode(Result resultCode)
Returns a string of text representing additional information returned from SDL
public java.lang.String getInfo()
Set a string of text representing additional information returned from SDL
public com.smartdevicelink.proxy.RPCResponse setInfo(String info)
From Class | Methods |
---|---|
com.smartdevicelink.proxy.RPCMessage | getFunctionID, getFunctionName, setFunctionName, getMessageType, setParameters, getParameters, getObject, getString, getInteger, getFloat, getDouble, getBoolean, getLong |
com.smartdevicelink.proxy.RPCStruct | getStoreValue, getStore, deserializeJSON, serializeJSON, serializeJSON, format, getBulkData, setBulkData, setPayloadProtected, isPayloadProtected, getMessageTypeName, hasKey, setValue, getValue, getObject, formatObject, getValueForString, getString, getInteger, getDouble, getFloat, getBoolean, getLong, clone, equals, hashCode |
java.lang.Object | getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize |