public static final class HttpRouteMatch.Builder
extends java.lang.Object
HttpRouteMatch
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
HttpRouteMatch |
build()
Builds the configured instance.
|
HttpRouteMatch.Builder |
headers(java.util.List<? extends HeaderMatch> headers)
Sets the value of
HttpRouteMatch.getHeaders() |
HttpRouteMatch.Builder |
method(HttpRouteMethod method)
Sets the value of
HttpRouteMatch.getMethod() |
HttpRouteMatch.Builder |
path(HttpRoutePathMatch path)
Sets the value of
HttpRouteMatch.getPath() |
HttpRouteMatch.Builder |
protocol(HttpRouteProtocol protocol)
Sets the value of
HttpRouteMatch.getProtocol() |
HttpRouteMatch.Builder |
queryParameters(java.util.List<? extends QueryParameterMatch> queryParameters)
Sets the value of
HttpRouteMatch.getQueryParameters() |
public HttpRouteMatch.Builder headers(java.util.List<? extends HeaderMatch> headers)
HttpRouteMatch.getHeaders()
headers
- Specifies the client request headers to match on.
All specified headers
must match for the route to match.this
public HttpRouteMatch.Builder method(HttpRouteMethod method)
HttpRouteMatch.getMethod()
method
- The HTTP client request method to match on.this
public HttpRouteMatch.Builder path(HttpRoutePathMatch path)
HttpRouteMatch.getPath()
path
- Specifies how is the request matched based on the path part of its URL.this
public HttpRouteMatch.Builder protocol(HttpRouteProtocol protocol)
HttpRouteMatch.getProtocol()
protocol
- The client request protocol to match on.
Applicable only for HTTP2 routes.this
public HttpRouteMatch.Builder queryParameters(java.util.List<? extends QueryParameterMatch> queryParameters)
HttpRouteMatch.getQueryParameters()
queryParameters
- The query parameters to match on.
All specified query parameters must match for the route to match.this
public HttpRouteMatch build()
HttpRouteMatch
java.lang.NullPointerException
- if any required attribute was not provided