Package io.inversion.action.misc
Class FileAction<A extends FileAction>
java.lang.Object
io.inversion.Rule<A>
io.inversion.Action<A>
io.inversion.action.misc.FileAction<A>
- All Implemented Interfaces:
Comparable<A>
-
Nested Class Summary
Nested classes/interfaces inherited from class io.inversion.Rule
Rule.RuleMatcher -
Field Summary
FieldsFields inherited from class io.inversion.Rule
ALL_METHODS, configMap, description, excludeMatchers, excludeOn, includeMatchers, includeOn, log, name, order, params -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidHandle an HTTP GET.protected InputStreamfindStream(String filePath) getFiles()protected voidprotected voidwithBaseDir(String baseDir) Methods inherited from class io.inversion.Action
configureOp, doDelete, doPatch, doPost, doPut, getFullIncludePaths, getIncludePaths, isDecoration, joinPaths, joinPaths0, run, 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
-
baseDir
-
files
-
-
Constructor Details
-
FileAction
public FileAction()
-
-
Method Details
-
doGet
Description copied from class:ActionHandle an HTTP GET.Override run() to handle all requests or override this method with your business logic specifically for a GET request
- Overrides:
doGetin classAction<A extends FileAction>- Parameters:
req- the request to runres- the response to populate- Throws:
ApiException
-
serveFile
-
serveFile
-
findStream
-
canServe
-
getBaseDir
-
withBaseDir
-
getFiles
-
withFiles
-