Package io.inversion.action.misc
Class MockAction
- All Implemented Interfaces:
Comparable<MockAction>
-
Nested Class Summary
Nested classes/interfaces inherited from class io.inversion.Rule
Rule.RuleMatcher -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected io.inversion.json.JSNodeprotected Stringprotected Stringprotected intFields inherited from class io.inversion.Rule
ALL_METHODS, configMap, description, excludeMatchers, excludeOn, includeMatchers, includeOn, log, name, order, params -
Constructor Summary
ConstructorsConstructorDescriptionMockAction(io.inversion.json.JSNode json) MockAction(String name) MockAction(String status, io.inversion.json.JSNode json) MockAction(String ruleMatcherSpec, String name, io.inversion.json.JSNode json) -
Method Summary
Modifier and TypeMethodDescriptionio.inversion.json.JSNodegetJson()intbooleanvoidOverride this method with your custom business logic or override one of the http method "doMETHOD" specific handlers.wihtStatusCode(int statusCode) withCancelRequest(boolean cancelRequest) withJson(io.inversion.json.JSNode json) withJsonUrl(String jsonUrl) withStatus(String status) Methods inherited from class io.inversion.Action
configureOp, doDelete, doGet, doPatch, doPost, doPut, getFullIncludePaths, getIncludePaths, isDecoration, joinPaths, joinPaths0, run0, withDecorationMethods 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
-
Field Details
-
json
protected io.inversion.json.JSNode json -
jsonUrl
-
statusCode
protected int statusCode -
status
-
cancelRequest
protected boolean cancelRequest
-
-
Constructor Details
-
MockAction
public MockAction() -
MockAction
public MockAction(io.inversion.json.JSNode json) -
MockAction
-
MockAction
-
MockAction
-
-
Method Details
-
run
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<MockAction>- Parameters:
req- the Request being servicedres- the Reponse being generated- Throws:
ApiException
-
withJson
-
getJsonUrl
-
withJsonUrl
-
getJson
public io.inversion.json.JSNode getJson() -
getStatusCode
public int getStatusCode() -
wihtStatusCode
-
getStatus
-
withStatus
-
isCancelRequest
public boolean isCancelRequest() -
withCancelRequest
-