public class JobMessage extends Object
Modifier and Type | Field and Description |
---|---|
Map<String,Object> |
body |
static String |
KARATE_CHUNK_ID |
static String |
KARATE_EXECUTOR_ID |
static String |
KARATE_JOB_ID |
static String |
KARATE_METHOD |
String |
method |
Constructor and Description |
---|
JobMessage(String method) |
JobMessage(String method,
Map<String,Object> body) |
Modifier and Type | Method and Description |
---|---|
<T> T |
get(String key,
Class<T> clazz) |
byte[] |
getBase64(String key) |
byte[] |
getBytes() |
String |
getChunkId() |
List<JobCommand> |
getCommands(String key) |
String |
getExecutorId() |
String |
getJobId() |
boolean |
is(String method) |
JobMessage |
put(String key,
List<JobCommand> commands) |
JobMessage |
put(String key,
Object value) |
JobMessage |
putBase64(String key,
byte[] bytes) |
void |
setBytes(byte[] bytes) |
void |
setChunkId(String chunkId) |
void |
setExecutorId(String executorId) |
void |
setJobId(String jobId) |
String |
toString() |
public static final String KARATE_METHOD
public static final String KARATE_JOB_ID
public static final String KARATE_EXECUTOR_ID
public static final String KARATE_CHUNK_ID
public final String method
public JobMessage(String method)
public void setBytes(byte[] bytes)
public byte[] getBytes()
public String getJobId()
public void setJobId(String jobId)
public String getChunkId()
public void setChunkId(String chunkId)
public void setExecutorId(String executorId)
public String getExecutorId()
public boolean is(String method)
public JobMessage put(String key, List<JobCommand> commands)
public List<JobCommand> getCommands(String key)
public JobMessage put(String key, Object value)
public JobMessage putBase64(String key, byte[] bytes)
public byte[] getBase64(String key)
Copyright © 2020. All rights reserved.