public abstract class Operation extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Operation.OperationCode
Supported operations.
|
| Constructor and Description |
|---|
Operation() |
| Modifier and Type | Method and Description |
|---|---|
Operation.OperationCode |
getCode()
Get type of the operation SHELL/PING/STREAM_FILE/ABORT
|
Map<String,String> |
getMetaData()
Get meta data for file streaming
|
String |
getOperationId()
Get operation id for the given operation
|
void |
setCode(Operation.OperationCode code)
Set the type of the operation
|
void |
setMetaData(Map<String,String> data)
Set meta data for file streaming
|
void |
setOperationId(String operationId)
Set operation id for the given operation
|
String |
toJSON()
This method is used to convert operation object to a json format.
|
public String getOperationId()
public void setOperationId(String operationId)
operationId - The operation idpublic Operation.OperationCode getCode()
public void setCode(Operation.OperationCode code)
code - The codepublic Map<String,String> getMetaData()
public void setMetaData(Map<String,String> data)
data - meta data mappublic String toJSON()
Copyright © 2019 WSO2. All rights reserved.