| Modifier and Type | Class and Description |
|---|---|
static class |
Op.OpFunction |
| Constructor and Description |
|---|
Op() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Op o) |
static int |
functionAsInt(Op.OpFunction func) |
io.inversion.utils.Path |
getActionPathMatch() |
java.util.List<org.apache.commons.lang3.tuple.Triple<Action,io.inversion.utils.Path,java.lang.Boolean>> |
getActionPathMatches() |
java.util.List<Action> |
getActions() |
Api |
getApi() |
Collection |
getCollection() |
io.inversion.utils.Path |
getCollectionPathMatch() |
Db |
getDb() |
io.inversion.utils.Path |
getDbPathMatch() |
java.lang.String |
getDescription() |
Endpoint |
getEndpoint() |
io.inversion.utils.Path |
getEndpointPathMatch() |
Engine |
getEngine() |
Op.OpFunction |
getFunction() |
java.lang.String |
getMethod() |
java.lang.String |
getName() |
java.lang.String |
getOperationPath() |
Param |
getParam(Param.In in,
java.lang.String key) |
java.util.List<Param> |
getParams() |
io.inversion.utils.Path |
getPath() |
int |
getPathParamCount() |
java.util.List<Param> |
getPathParams(int pathIndex) |
java.lang.String |
getPathParamValue(java.lang.String key) |
Relationship |
getRelationship() |
boolean |
hasParams(Param.In in,
java.lang.String... keys) |
boolean |
isEpAction(Action action) |
boolean |
isInternal()
Indicates this operation should not be called from clients directly but may be used for internal calls.
|
boolean |
matches(Request req,
io.inversion.utils.Path path) |
void |
removeParam(Param param) |
java.lang.String |
toString() |
Op |
withActionMatch(Action action,
io.inversion.utils.Path actionMatchPath,
java.lang.Boolean isEpAction) |
Op |
withActionPathMatch(io.inversion.utils.Path actionPathMatch) |
Op |
withApi(Api api) |
Op |
withCollection(Collection collection) |
Op |
withCollectionPathMatch(io.inversion.utils.Path collectionPathMatch) |
Op |
withDb(Db db) |
Op |
withDbMatchPath(io.inversion.utils.Path dbMatchPath) |
Op |
withDbPathMatch(io.inversion.utils.Path dbPathMatch) |
Op |
withDescription(java.lang.String description) |
Op |
withEndpoint(Endpoint endpoint) |
Op |
withEndpointPathMatch(io.inversion.utils.Path endpointPathMatch) |
Op |
withEngine(Engine engine) |
Op |
withFunction(Op.OpFunction function) |
Op |
withInternal(boolean internal) |
Op |
withMethod(java.lang.String method) |
Op |
withName(java.lang.String name) |
Op |
withParam(Param param) |
Op |
withPath(io.inversion.utils.Path path) |
Op |
withRelationship(Relationship relationship) |
public boolean matches(Request req, io.inversion.utils.Path path)
public java.lang.String getOperationPath()
public boolean isInternal()
internal is true or either endpoint.isInternal() or collection.isInternal() are truepublic Op withInternal(boolean internal)
public java.lang.String toString()
toString in class java.lang.Objectpublic io.inversion.utils.Path getActionPathMatch()
public Op withActionPathMatch(io.inversion.utils.Path actionPathMatch)
public Op withActionMatch(Action action, io.inversion.utils.Path actionMatchPath, java.lang.Boolean isEpAction)
public java.util.List<Action> getActions()
public boolean hasParams(Param.In in, java.lang.String... keys)
public java.lang.String getPathParamValue(java.lang.String key)
public java.util.List<Param> getParams()
public void removeParam(Param param)
public java.util.List<Param> getPathParams(int pathIndex)
public int getPathParamCount()
public static int functionAsInt(Op.OpFunction func)
public java.lang.String getName()
public Op withName(java.lang.String name)
public java.lang.String getMethod()
public Op withMethod(java.lang.String method)
public Op.OpFunction getFunction()
public Op withFunction(Op.OpFunction function)
public io.inversion.utils.Path getPath()
public Op withPath(io.inversion.utils.Path path)
public io.inversion.utils.Path getEndpointPathMatch()
public Op withEndpointPathMatch(io.inversion.utils.Path endpointPathMatch)
public Endpoint getEndpoint()
public Collection getCollection()
public Op withCollection(Collection collection)
public Relationship getRelationship()
public Op withRelationship(Relationship relationship)
public Api getApi()
public io.inversion.utils.Path getDbPathMatch()
public Op withDbMatchPath(io.inversion.utils.Path dbMatchPath)
public Db getDb()
public Engine getEngine()
public Op withDbPathMatch(io.inversion.utils.Path dbPathMatch)
public io.inversion.utils.Path getCollectionPathMatch()
public Op withCollectionPathMatch(io.inversion.utils.Path collectionPathMatch)
public java.lang.String getDescription()
public Op withDescription(java.lang.String description)
public java.util.List<org.apache.commons.lang3.tuple.Triple<Action,io.inversion.utils.Path,java.lang.Boolean>> getActionPathMatches()
public boolean isEpAction(Action action)
Copyright © 2023 Rocket Partners, LLC. All rights reserved.