| Modifier and Type | Class and Description |
|---|---|
static interface |
Api.ApiListener
Listener that can be registered with an
Api to receive lifecycle,
per request and per error callback notifications. |
Rule.RuleMatcher| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<Action> |
actions |
protected java.util.List<Collection> |
collections |
protected java.util.List<Db> |
dbs |
protected boolean |
debug |
protected java.util.List<Endpoint> |
endpoints |
protected java.lang.String |
hash |
protected java.util.List<Api.ApiListener> |
listeners |
protected java.lang.String |
url |
configMap, configStr, excludeMatchers, includeMatchers, log, name, order| Modifier and Type | Method and Description |
|---|---|
java.util.List<Action> |
getActions() |
java.util.List<Api.ApiListener> |
getApiListeners() |
Collection |
getCollection(java.lang.String name) |
java.util.List<Collection> |
getCollections() |
Db |
getDb(java.lang.String name) |
java.util.List<Db> |
getDbs() |
protected Rule.RuleMatcher |
getDefaultIncludeMatch()
Designed to allow subclasses to provide a default match behavior
of no configuration was provided by the developer.
|
java.util.List<Endpoint> |
getEndpoints() |
java.lang.String |
getHash() |
long |
getLoadTime() |
java.lang.String |
getUrl() |
boolean |
isDebug() |
boolean |
isStarted() |
void |
removeExcludes() |
void |
setDebug(boolean debug) |
void |
setLoadTime(long loadTime) |
void |
shutdown() |
Api |
startup() |
Api |
withAction(Action action) |
Api |
withActions(Action... actions) |
Api |
withApiListener(Api.ApiListener listener) |
Api |
withCollection(Collection coll) |
Api |
withDb(Db db) |
Api |
withDbs(Db... dbs) |
Api |
withEndpoint(Endpoint endpoint) |
Api |
withEndpoint(java.lang.String methods,
java.lang.String includePaths,
Action... actions) |
Api |
withEndpoints(Endpoint... endpoints) |
Api |
withHash(java.lang.String hash) |
Api |
withRelationship(Collection parentCollection,
java.lang.String parentPropertyName,
Collection childCollection,
java.lang.String childPropertyName,
Property... childFkProps)
Creates a ONE_TO_MANY Relationship from the parent to child collection and the inverse MANY_TO_ONE from the child to the parent.
|
Api |
withRelationship(java.lang.String parentCollectionName,
java.lang.String parentPropertyName,
java.lang.String childCollectionName,
java.lang.String childPropertyName,
java.lang.String... childFkProps)
This method takes String instead of actual Collections and Properties as a convenience to people hand wiring up an Api.
|
Api |
withUrl(java.lang.String url) |
checkLazyConfig, compareTo, doLazyConfig, getConfig, getConfig, getConfigKeys, getExcludeMatchers, getExcludePaths, getIncludeMatchers, getIncludePaths, getName, getOrder, match, matches, matches, toString, withConfig, withExcludeOn, withExcludeOn, withExcludeOn, withIncludeOn, withIncludeOn, withIncludeOn, withName, withOrderprotected transient java.lang.String hash
protected boolean debug
protected java.lang.String url
protected java.util.List<Db> dbs
protected java.util.List<Endpoint> endpoints
protected java.util.List<Action> actions
protected java.util.List<Collection> collections
protected transient java.util.List<Api.ApiListener> listeners
protected Rule.RuleMatcher getDefaultIncludeMatch()
RulegetDefaultIncludeMatch in class Rule<Api>public Api startup()
public boolean isStarted()
public void shutdown()
public void removeExcludes()
public java.lang.String getHash()
public Api withHash(java.lang.String hash)
public Api withCollection(Collection coll)
public java.util.List<Collection> getCollections()
public Collection getCollection(java.lang.String name)
public Db getDb(java.lang.String name)
public java.util.List<Db> getDbs()
public long getLoadTime()
public void setLoadTime(long loadTime)
public java.util.List<Endpoint> getEndpoints()
public Api withEndpoint(java.lang.String methods, java.lang.String includePaths, Action... actions)
public Api withRelationship(java.lang.String parentCollectionName, java.lang.String parentPropertyName, java.lang.String childCollectionName, java.lang.String childPropertyName, java.lang.String... childFkProps)
public Api withRelationship(Collection parentCollection, java.lang.String parentPropertyName, Collection childCollection, java.lang.String childPropertyName, Property... childFkProps)
For collections backed by relational data sources (like a SQL db) the length of childFkProps will generally match the
length of parentCollections primary index. If the two don't match, then childFkProps must be 1. In this
case, the compound primary index of parentCollection will be encoded as an resourceKey in the single child table property.
public java.util.List<Action> getActions()
public boolean isDebug()
public void setDebug(boolean debug)
public java.lang.String getUrl()
public Api withUrl(java.lang.String url)
public Api withApiListener(Api.ApiListener listener)
public java.util.List<Api.ApiListener> getApiListeners()
Copyright © 2024 Rocket Partners, LLC. All rights reserved.