Package io.inversion.action.hateoas
Class LinksFilter
- java.lang.Object
-
- io.inversion.Rule<A>
-
- io.inversion.Action<A>
-
- io.inversion.Filter<T>
-
- io.inversion.action.hateoas.HATEOASFilter<LinksFilter>
-
- io.inversion.action.hateoas.LinksFilter
-
- All Implemented Interfaces:
java.lang.Comparable<LinksFilter>
public class LinksFilter extends HATEOASFilter<LinksFilter>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.inversion.Rule
Rule.RuleMatcher
-
-
Field Summary
-
Fields inherited from class io.inversion.Rule
ALL_METHODS, configMap, description, excludeMatchers, excludeOn, includeMatchers, includeOn, log, name, order, params
-
-
Constructor Summary
Constructors Constructor Description LinksFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSelfLink(io.inversion.json.JSMap entityNode, java.lang.String link)protected voidremoveLinks(Collection coll, io.inversion.json.JSMap node)voidrun(Request req, Response res)Override this method with your custom business logic or override one of the http method "doMETHOD" specific handlers.-
Methods inherited from class io.inversion.action.hateoas.HATEOASFilter
addLink, addLinks
-
Methods inherited from class io.inversion.Action
configureOp, doDelete, doGet, doPatch, doPost, doPut, getFullIncludePaths, getIncludePaths, isDecoration, joinPaths, joinPaths0, run0, withDecoration
-
Methods inherited from class io.inversion.Rule
afterWiringComplete, checkLazyConfig, compareTo, doLazyConfig, getAllExcludePaths, getAllIncludeMethods, getAllIncludePaths, getDefaultIncludeMatchers, getDescription, getExcludeMatchers, getIncludeMatchers, getName, getOrder, getParams, match, match, matches, matches, toString, withDescription, withExcludeOn, withExcludeOn, withIncludeOn, withIncludeOn, withName, withOrder, withParam, withParams
-
-
-
-
Method Detail
-
run
public void run(Request req, Response res) throws ApiException
Description copied from class:ActionOverride this method with your custom business logic or override one of the http method "doMETHOD" specific handlers.- Overrides:
runin classAction<LinksFilter>- Parameters:
req- the Request being servicedres- the Reponse being generated- Throws:
ApiException
-
addSelfLink
public void addSelfLink(io.inversion.json.JSMap entityNode, java.lang.String link)- Overrides:
addSelfLinkin classHATEOASFilter<LinksFilter>
-
removeLinks
protected void removeLinks(Collection coll, io.inversion.json.JSMap node)
-
-