Package io.inversion
Class Chain
java.lang.Object
io.inversion.Chain
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringbuildLink(Collection collection) static StringbuildLink(Collection collection, String resourceKey) static StringbuildLink(Collection collection, String resourceKey, String relationshipKey) static StringbuildLink(io.inversion.json.JSMap fromHere, Relationship toHere) voidcancel()static voidfilterPathParams(io.inversion.json.JSNode json) Recursively removes any url path params that appear as properties in the jsonstatic Chainfirst()get()Storage for chain steps to communicate with each other.getApi()static intgetDepth()getNext()static UsergetUser()voidgo()booleanhasNext()booleanbooleanisDebug()static booleanisRoot()booleannext()static Chainpeek()static Chainpop()static Chainvoidstatic voidresetAll()voidstatic intsize()skipNext()static Chaintop()withAction(Chain.ActionMatch action) withActions(List<Chain.ActionMatch> actions)
-
Field Details
-
APPEND_PARAMS
-
engine
-
actions
-
request
-
response
-
vars
-
next
protected int next -
canceled
protected boolean canceled -
user
-
parent
-
pathParamsToRemove
-
-
Method Details
-
resetAll
public static void resetAll() -
get
-
getDepth
public static int getDepth() -
isRoot
public static boolean isRoot() -
first
-
top
- Throws:
ApiException
-
peek
-
push
-
pop
-
getUser
-
size
public static int size() -
debug
-
buildLink
-
buildLink
-
buildLink
-
buildLink
-
withUser
-
getParent
-
setParent
-
put
-
isDebug
public boolean isDebug() -
get
Storage for chain steps to communicate with each other.- Parameters:
key- the name of the value to retrieve- Returns:
- the value if it exists otherwise null
-
remove
-
go
- Throws:
ApiException
-
filterPathParams
Recursively removes any url path params that appear as properties in the json- Parameters:
json- the json node to clean- Returns:
- this
-
skipNext
-
getNext
-
next
- Throws:
ApiException
-
hasNext
public boolean hasNext() -
isCanceled
public boolean isCanceled() -
cancel
public void cancel() -
getEngine
-
getApi
-
getServer
-
getEndpoint
-
getActions
-
withActions
-
withAction
-
getRequest
-
getResponse
-