Interface WebRouteInterceptorManager.UriConfigurator
- Enclosing interface:
WebRouteInterceptorManager<A extends ExchangeContext,B extends WebRouteInterceptor<A>>
A URI configurator used to configure URI criteria in a Web route interceptor manager.
This especially allows to define path patterns to match range of URIs.
- Since:
- 1.12
- Author:
- Jeremy Kuhn
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionSpecifies the URI authority that must be matched by a Web exchange URI to be intercepted.Specifies the host that must be matched by a Web exchange URI to be intercepted.Specifies the absolute path that must be matched by a Web exchange URI to be intercepted.Specifies the absolute path that must be matched with or without trailing slash by a Web exchange URI to be intercepted.Specifies the port that must be matched by a Web exchange URI to be intercepted.Specifies the port that must be matched by a Web exchange URI to be intercepted.Specifies the URI scheme that must be matched by a Web exchange URI to be intercepted.Specifies the user info that must be matched by a Web exchange URI to be intercepted.
-
Method Details
-
scheme
Specifies the URI scheme that must be matched by a Web exchange URI to be intercepted.
The value can be parameterized and include patterns like
?or*as defined byURIBuilder. Note that this is only meant to filter exchanges and as a result named parameters have no use. For instance, any value can be matched by specifying `{:*}`.- Parameters:
scheme- a scheme (e.g.http)- Returns:
- the URI configurator
-
authority
Specifies the URI authority that must be matched by a Web exchange URI to be intercepted.
The value can be parameterized and support patterns like
?or*as defined byURIBuilder. Note that this is only meant to filter exchanges and as a result named parameters have no use. For instance, any value can be matched by specifying `{:*}`.This basically overrides
userInfo(String),host(String)andport(String).- Parameters:
authority- an authority (e.g.example.org:80)- Returns:
- the URI configurator
-
userInfo
Specifies the user info that must be matched by a Web exchange URI to be intercepted.
The value can be parameterized and include patterns like
?or*as defined byURIBuilder. Note that this is only meant to filter exchanges and as a result named parameters have no use. For instance, any value can be matched by specifying `{:*}`.- Parameters:
userInfo- a user info (e.g.user:password)- Returns:
- the URI configurator
-
host
Specifies the host that must be matched by a Web exchange URI to be intercepted.
The value can be parameterized and include patterns like
?or*as defined byURIBuilder. Note that this is only meant to filter exchanges and as a result named parameters have no use. For instance, any value can be matched by specifying `{:*}`.- Parameters:
host- a user info (e.g.example.org)- Returns:
- the URI configurator
-
port
Specifies the port that must be matched by a Web exchange URI to be intercepted.
Port matching is exact, in order to match, a URI must define the port explicitly when a port is specified and omit it otherwise.
- Parameters:
port- a port (e.g.80)- Returns:
- the URI configurator
-
port
Specifies the port that must be matched by a Web exchange URI to be intercepted.
Port matching is exact, in order to match, a URI must define the port explicitly when a port is specified and omit it otherwise.
The value can be parameterized and include patterns like
?or*as defined byURIBuilder. Note that this is only meant to filter exchanges and as a result named path parameters have no use. For instance, any value can be matched by specifying `{:*}`.- Parameters:
port- a port (e.g.80)- Returns:
- the URI configurator
-
path
default WebRouteInterceptorManager.UriConfigurator path(String path) throws IllegalArgumentException Specifies the absolute path that must be matched by a Web exchange URI to be intercepted.
The path can be specified as a parameterized path and include path pattern like
?,*or**as defined byURIBuilder. Note that this path is only meant to filter routes and as a result path parameters have no use. For instance, any path can be matched by specifying `/**`.- Parameters:
path- a path- Returns:
- the URI configurator
- Throws:
IllegalArgumentException- if the specified path is not absolute
-
path
WebRouteInterceptorManager.UriConfigurator path(String path, boolean matchTrailingSlash) throws IllegalArgumentException Specifies the absolute path that must be matched with or without trailing slash by a Web exchange URI to be intercepted.
The path can be specified as a parameterized path and include path pattern like
?,*,**as defined byURIBuilder. Note that this path is only meant to filter routes and as a result path parameters have no use.- Parameters:
path- a pathmatchTrailingSlash- true to match path with or without trailing slash, false otherwise- Returns:
- the URI configurator
- Throws:
IllegalArgumentException- if the specified path is not absolute
-