Class WebParameters
java.lang.Object
io.fluxzero.sdk.web.WebParameters
Internal configuration holder used to expand the URI and method mappings of a web request handler method.
This class supports handlers that match multiple URI patterns and/or HTTP methods. It is typically used in
conjunction with the @HandleWeb annotation, where a single method can be annotated with multiple
WebParameters to define various acceptable request routes.
Each WebParameters instance includes:
- A list of URI patterns (e.g.
/users,/users/{id}) - A list of HTTP methods (e.g.
GET,POST) - An optional
disabledflag that disables this set of patterns
The getWebPatterns() method expands this configuration into a Stream of
WebPattern instances—one for each combination of method and URI pattern.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExpands this configuration into a stream ofWebPatterninstances.getWebPatterns(String rootPath) Expands this configuration into a stream ofWebPatterninstances.
-
Constructor Details
-
WebParameters
public WebParameters()
-
-
Method Details
-
getWebPatterns
Expands this configuration into a stream ofWebPatterninstances.If no URI patterns are provided, a wildcard pattern (
"") is assumed.- Returns:
- a stream of
WebPatterncombinations for method/URI
-
getWebPatterns
Expands this configuration into a stream ofWebPatterninstances.If no URI patterns are provided, a wildcard pattern (
"") is assumed.- Returns:
- a stream of
WebPatterncombinations for method/URI
-