Package io.fluxcapacitor.javaclient.web
Class WebPattern
java.lang.Object
io.fluxcapacitor.javaclient.web.WebPattern
Represents a pattern used to match incoming
WebRequest
s to handler methods.
A WebPattern
is created for each handler method meta-annotated with @HandleWeb
and encapsulates a URI
pattern and HTTP method used to route requests.
The URI is parsed and dissected into components using a regular expression. This enables precise matching against request paths, origins, and other elements of the URI structure.
URI Parsing
The underlying URI parsing follows the general URI syntax as defined in RFC 3986. Specifically:path
– The relative or absolute path (e.g.,/users/{id}
)origin
– The full origin (e.g.,https://example.com
) including scheme and authority
Instances of WebPattern
are typically generated by the framework and not manually constructed.
However, understanding this structure is useful when inspecting or customizing request dispatch behavior.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
WebPattern
public WebPattern()
-