Package io.inversion
Class Chain
java.lang.Object
io.inversion.Chain
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic StringbuildLink(Collection collection) static StringbuildLink(Collection collection, Object resourceKey, String subCollectionKey) voidcancel()static voidfilterPathParams(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.List<io.inversion.Chain.ActionMatch>getApi()booleanintstatic intgetDepth()getNext()static UsergetUser()voidgo()booleanhasNext()booleanbooleanisDebug()Returns the combined list of endpoint/action stack/request params for the supplied keybooleannext()static Chainpeek()static Chainpop()static Chainvoidstatic voidresetAll()voidstatic intsize()skipNext()static Chaintop()withAction(io.inversion.Chain.ActionMatch action) withActions(List<io.inversion.Chain.ActionMatch> actions) withPathParams(Map<String, String> pathParams)
-
Field Details
-
engine
-
actions
-
request
-
response
-
vars
-
next
protected int next -
canceled
protected boolean canceled -
user
-
parent
-
pathParams
-
pathParamsToRemove
-
-
Method Details
-
resetAll
public static void resetAll() -
get
-
getDepth
public static int getDepth() -
first
-
top
- Throws:
ApiException
-
peek
-
push
-
pop
-
getUser
-
size
public static int size() -
debug
-
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
-
mergeEndpointActionParamsConfig
Returns the combined list of endpoint/action stack/request params for the supplied keyThis for example, allows you to add to but not remove from a configured "excludes" parameter
All returned values are lower case
- Parameters:
key- the name of the param to merge- Returns:
- the combined list of values found for key
-
getConfig
-
getConfigKeys
-
getConfig
-
getConfig
-
getConfig
-
getConfig
-
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
-
doNext
-
skipNext
-
getNext
-
next
- Throws:
ApiException
-
withPathParams
-
applyPathParams
-
hasNext
public boolean hasNext() -
isCanceled
public boolean isCanceled() -
cancel
public void cancel() -
getEngine
-
getApi
-
getEndpoint
-
getActions
-
withActions
-
withAction
-
getRequest
-
getResponse
-