public class Task
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Task.AnsJson |
static class |
Task.AnsJWire |
static class |
Task.AnsSoftFail |
static class |
Task.AnsTask |
static class |
Task.Fail |
static class |
Task.HasToken |
static class |
Task.NoToken |
static class |
Task.Payload |
static class |
Task.PayloadJson |
Constructor and Description |
---|
Task() |
Modifier and Type | Method and Description |
---|---|
Task.AnsTask |
abort(Req oR,
Task.Fail eFailCode,
java.lang.String sFailText) |
void |
addBriefMsg(java.lang.String msg) |
boolean |
canAcceptExecReq(Req oR) |
boolean |
canAcceptVirginState() |
java.lang.Exception |
e(java.lang.String err) |
Task.AnsTask |
execLegReq(Req oR) |
Task.AnsTask |
execLegTokenReq(Req oR,
TokenMgr.Token oTok) |
JWired |
execReq(Req oR) |
JWired |
execTokenReq(Req oR,
TokenMgr.Token oTok) |
JWired |
failed(Req oR,
Task.Fail eFailCode,
java.lang.String sFailText) |
java.lang.String |
getCustEncoder() |
java.lang.String |
getExecReq(Req oR) |
long |
getTS() |
java.lang.String |
goodAns(JsonObject oJR,
java.lang.String sJsonAns) |
java.lang.String |
goodAns(JsonObject oJR,
java.lang.String sJsonAns,
java.lang.String sFailCode) |
boolean |
isDevp() |
void |
log(java.lang.String sMsg) |
java.lang.String[] |
makeBriefMsgs() |
<T> T |
payload(Req oR,
java.lang.Class<T> T) |
java.lang.String |
payloadAsStr(java.lang.Object oPL) |
boolean |
requiresToken() |
Task |
setCustEncoder(java.lang.String sCustEncoder) |
JWired |
softFail(JWired oParAns,
java.lang.String sWhy) |
<T> T |
wire2obj(Req oR,
java.lang.Class<T> T) |
public void log(java.lang.String sMsg)
public long getTS()
public boolean isDevp()
public Task setCustEncoder(java.lang.String sCustEncoder)
public java.lang.String getCustEncoder()
public java.lang.String getExecReq(Req oR)
public void addBriefMsg(java.lang.String msg)
public java.lang.String[] makeBriefMsgs()
public <T> T payload(Req oR, java.lang.Class<T> T) throws java.lang.Exception
java.lang.Exception
public java.lang.String goodAns(JsonObject oJR, java.lang.String sJsonAns)
public java.lang.String goodAns(JsonObject oJR, java.lang.String sJsonAns, java.lang.String sFailCode)
public boolean canAcceptVirginState()
public boolean requiresToken()
public boolean canAcceptExecReq(Req oR)
public Task.AnsTask execLegReq(Req oR) throws java.lang.Exception
java.lang.Exception
public Task.AnsTask execLegTokenReq(Req oR, TokenMgr.Token oTok) throws java.lang.Exception
java.lang.Exception
public JWired execTokenReq(Req oR, TokenMgr.Token oTok) throws java.lang.Exception
java.lang.Exception
public java.lang.Exception e(java.lang.String err)
public Task.AnsTask abort(Req oR, Task.Fail eFailCode, java.lang.String sFailText) throws java.lang.Exception
java.lang.Exception
public JWired failed(Req oR, Task.Fail eFailCode, java.lang.String sFailText) throws java.lang.Exception
java.lang.Exception
public <T> T wire2obj(Req oR, java.lang.Class<T> T) throws java.lang.Exception
java.lang.Exception
public java.lang.String payloadAsStr(java.lang.Object oPL)