public class OnSystemRequest extends RPCNotification
Parameter List
| Name | Type | Description | Reg. | Notes | Version |
|---|---|---|---|---|---|
| requestType | RequestType | The type of system request. | Y | SmartDeviceLink 2.3.2 | |
| requestSubType | String | This parameter is filled for supporting OEM proprietary data exchanges. | N | Max Length: 255 | SmartDeviceLink 5.0 |
| url | Array of Strings | Optional URL for HTTP requests.If blank, the binary data shall be forwarded to the app.If not blank, the binary data shall be forwarded to the url with a provided timeout in seconds. | N | minsize:1; | SmartDeviceLink 2.3.2 |
| timeout | Integer | Optional timeout for HTTP requests;Required if a URL is provided | N | minvalue:0; maxvalue: 2000000000 | SmartDeviceLink |
| fileType | FileType | Optional file type (meant for HTTP file requests). | N | SmartDeviceLink 2.3.2 | |
| offset | Float | Optional offset in bytes for resuming partial data chunks | N | minvalue:0; maxvalue:100000000000 | SmartDeviceLink 2.3.2 |
| length | Float | Optional length in bytes for resuming partial data chunks | N | minvalue: 0; maxvalue:100000000000 | SmartDeviceLink 2.3.2 |
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_BODY |
static String |
KEY_DATA |
static String |
KEY_FILE_TYPE |
static String |
KEY_HEADERS |
static String |
KEY_LENGTH |
static String |
KEY_OFFSET |
static String |
KEY_REQUEST_SUB_TYPE |
static String |
KEY_REQUEST_TYPE |
static String |
KEY_TIMEOUT |
static String |
KEY_TIMEOUT_V1 |
static String |
KEY_URL |
static String |
KEY_URL_V1 |
function, KEY_CORRELATION_ID, KEY_FUNCTION_NAME, KEY_NOTIFICATION, KEY_PARAMETERS, KEY_REQUEST, KEY_RESPONSE, messageType, parametersKEY_BULK_DATA, KEY_PROTECTED, store| Constructor and Description |
|---|
OnSystemRequest()
Constructs a new OnSystemsRequest object
|
OnSystemRequest(Hashtable<String,Object> hash) |
OnSystemRequest(Hashtable<String,Object> hash,
byte[] bulkData) |
OnSystemRequest(RequestType requestType)
Constructs a new OnSystemsRequest object
|
| Modifier and Type | Method and Description |
|---|---|
String |
getBody() |
FileType |
getFileType() |
Headers |
getHeader() |
List<String> |
getLegacyData() |
Long |
getLength() |
Long |
getOffset() |
String |
getRequestSubType() |
RequestType |
getRequestType() |
Integer |
getTimeout() |
String |
getUrl() |
OnSystemRequest |
setBody(String body) |
OnSystemRequest |
setBulkData(byte[] bulkData) |
OnSystemRequest |
setFileType(FileType fileType) |
OnSystemRequest |
setHeaders(Headers header) |
OnSystemRequest |
setLength(Integer length)
Deprecated.
as of SmartDeviceLink 4.0. Use
setLength(Long) instead. |
OnSystemRequest |
setLength(Long length) |
OnSystemRequest |
setOffset(Integer offset)
Deprecated.
as of SmartDeviceLink 4.0. Use
setOffset(Long) instead. |
OnSystemRequest |
setOffset(Long offset) |
OnSystemRequest |
setRequestSubType(String requestSubType) |
OnSystemRequest |
setRequestType(RequestType requestType) |
OnSystemRequest |
setTimeout(Integer timeout) |
OnSystemRequest |
setUrl(String url) |
getBoolean, getDouble, getFloat, getFunctionID, getFunctionName, getInteger, getLong, getMessageType, getObject, getParameters, getString, setFunctionName, setParametersclone, deserializeJSON, equals, format, formatObject, getBulkData, getMessageTypeName, getStore, getStoreValue, getValue, getValueForString, hashCode, hasKey, isPayloadProtected, serializeJSON, serializeJSON, setPayloadProtected, setValuepublic static final String KEY_URL_V1
public static final String KEY_URL
public static final String KEY_TIMEOUT_V1
public static final String KEY_TIMEOUT
public static final String KEY_HEADERS
public static final String KEY_BODY
public static final String KEY_FILE_TYPE
public static final String KEY_REQUEST_TYPE
public static final String KEY_REQUEST_SUB_TYPE
public static final String KEY_DATA
public static final String KEY_OFFSET
public static final String KEY_LENGTH
public OnSystemRequest()
public OnSystemRequest(@NonNull
RequestType requestType)
public OnSystemRequest setBulkData(byte[] bulkData)
setBulkData in class RPCStructpublic String getBody()
public OnSystemRequest setBody(String body)
public OnSystemRequest setHeaders(Headers header)
public Headers getHeader()
public RequestType getRequestType()
public OnSystemRequest setRequestType(@NonNull RequestType requestType)
public String getRequestSubType()
public OnSystemRequest setRequestSubType(String requestSubType)
public String getUrl()
public OnSystemRequest setUrl(String url)
public FileType getFileType()
public OnSystemRequest setFileType(FileType fileType)
public OnSystemRequest setOffset(Integer offset)
setOffset(Long) instead.offset - of the data attachedpublic Long getOffset()
public OnSystemRequest setOffset(Long offset)
public Integer getTimeout()
public OnSystemRequest setTimeout(Integer timeout)
public Long getLength()
public OnSystemRequest setLength(Integer length)
setLength(Long) instead.length - of the data attachedpublic OnSystemRequest setLength(Long length)