public final class Chain
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Chain.ActionMatch |
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<Chain.ActionMatch> |
actions |
static java.util.Set<java.lang.String> |
APPEND_PARAMS |
protected boolean |
canceled |
protected Engine |
engine |
protected int |
next |
protected Chain |
parent |
protected java.util.Set<java.lang.String> |
pathParamsToRemove |
protected Request |
request |
protected Response |
response |
protected User |
user |
protected org.apache.commons.collections4.map.CaseInsensitiveMap<java.lang.String,java.lang.Object> |
vars |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
buildLink(Collection collection) |
static java.lang.String |
buildLink(Collection collection,
java.lang.String resourceKey) |
static java.lang.String |
buildLink(Collection collection,
java.lang.String resourceKey,
java.lang.String relationshipKey) |
static java.lang.String |
buildLink(io.inversion.json.JSMap fromHere,
Relationship toHere) |
void |
cancel() |
static void |
debug(java.lang.String format,
java.lang.Object... args) |
Chain |
filterPathParams(io.inversion.json.JSNode json)
Recursively removes any url path params that appear as properties in the json
|
static Chain |
first() |
protected static java.util.Stack<Chain> |
get() |
java.lang.Object |
get(java.lang.String key)
Storage for chain steps to communicate with each other.
|
java.util.List<Chain.ActionMatch> |
getActions() |
Api |
getApi() |
static int |
getDepth() |
Endpoint |
getEndpoint() |
Engine |
getEngine() |
Action |
getNext() |
Chain |
getParent() |
Request |
getRequest() |
Response |
getResponse() |
Server |
getServer() |
static User |
getUser() |
void |
go() |
boolean |
hasNext() |
boolean |
isCanceled() |
boolean |
isDebug() |
static boolean |
isRoot() |
boolean |
next() |
static Chain |
peek() |
static Chain |
pop() |
static Chain |
push(Engine engine,
Request req,
Response res) |
void |
put(java.lang.String key,
java.lang.Object value) |
java.lang.Object |
remove(java.lang.String key) |
static void |
resetAll() |
void |
setParent(Chain parent) |
static int |
size() |
Chain |
skipNext() |
static Chain |
top() |
Chain |
withAction(Chain.ActionMatch action) |
Chain |
withActions(java.util.List<Chain.ActionMatch> actions) |
Chain |
withUser(User user) |
public static final java.util.Set<java.lang.String> APPEND_PARAMS
protected final Engine engine
protected final java.util.List<Chain.ActionMatch> actions
protected final Request request
protected final Response response
protected final org.apache.commons.collections4.map.CaseInsensitiveMap<java.lang.String,java.lang.Object> vars
protected int next
protected boolean canceled
protected User user
protected Chain parent
protected java.util.Set<java.lang.String> pathParamsToRemove
public static void resetAll()
protected static java.util.Stack<Chain> get()
public static int getDepth()
public static boolean isRoot()
public static Chain first()
public static Chain top() throws ApiException
ApiExceptionpublic static Chain peek()
public static Chain pop()
public static User getUser()
public static int size()
public static void debug(java.lang.String format,
java.lang.Object... args)
public static java.lang.String buildLink(io.inversion.json.JSMap fromHere,
Relationship toHere)
public static java.lang.String buildLink(Collection collection)
public static java.lang.String buildLink(Collection collection, java.lang.String resourceKey)
public static java.lang.String buildLink(Collection collection, java.lang.String resourceKey, java.lang.String relationshipKey)
public Chain getParent()
public void setParent(Chain parent)
public void put(java.lang.String key,
java.lang.Object value)
public boolean isDebug()
public java.lang.Object get(java.lang.String key)
key - the name of the value to retrievepublic java.lang.Object remove(java.lang.String key)
public void go()
throws ApiException
ApiExceptionpublic Chain filterPathParams(io.inversion.json.JSNode json)
json - the json node to cleanpublic Chain skipNext()
public Action getNext()
public boolean next()
throws ApiException
ApiExceptionpublic boolean hasNext()
public boolean isCanceled()
public void cancel()
public Engine getEngine()
public Api getApi()
public Server getServer()
public Endpoint getEndpoint()
public java.util.List<Chain.ActionMatch> getActions()
public Chain withActions(java.util.List<Chain.ActionMatch> actions)
public Chain withAction(Chain.ActionMatch action)
public Request getRequest()
public Response getResponse()
Copyright © 2023 Rocket Partners, LLC. All rights reserved.