Package net.coderazzi.openapi4aws
Class Configuration
- java.lang.Object
-
- net.coderazzi.openapi4aws.Configuration
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceConfiguration.Authorizerstatic interfaceConfiguration.Integration
-
Constructor Summary
Constructors Constructor Description Configuration()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Map<String,Configuration.Authorizer>getAuthorizers()abstract Configuration.IntegrationgetIntegration(String path, List<String> tags)protected Configuration.IntegrationgetIntegration(String path, List<String> pathTags, Map<String,? extends Configuration.Integration> paths, Map<String,? extends Configuration.Integration> lowerCaseTags)Utility to find a suitable integration for a route path with given tags.protected Collection<Path>getPaths(Collection<String> filenames, Collection<String> globs)Utility method to find all the paths associated to a single configuration (filenames + globs)
-
-
-
Method Detail
-
getAuthorizers
public abstract Map<String,Configuration.Authorizer> getAuthorizers()
-
getIntegration
public abstract Configuration.Integration getIntegration(String path, List<String> tags)
-
getPaths
protected final Collection<Path> getPaths(Collection<String> filenames, Collection<String> globs)
Utility method to find all the paths associated to a single configuration (filenames + globs)- Parameters:
filenames- collection of specific filenamesglobs- collection of glob specifications, which return no matching paths- Returns:
- the existing matching paths
-
getIntegration
protected final Configuration.Integration getIntegration(String path, List<String> pathTags, Map<String,? extends Configuration.Integration> paths, Map<String,? extends Configuration.Integration> lowerCaseTags)
Utility to find a suitable integration for a route path with given tags.- Parameters:
path- the route path to matchpathTags- any tags associated to that pathpaths- integration paths to use, as a map from path to the defined integrationlowerCaseTags- integration tags to use, as a map from the tag names in lower case to the defined integrations- Returns:
- the most suitable integration
-
-