public static class PathMatcher.Builder extends Object
Modifier and Type | Method and Description |
---|---|
PathMatcher.Builder |
addAllPathRules(List<PathRule> pathRules)
The list of path rules.
|
PathMatcher.Builder |
addAllRouteRules(List<HttpRouteRule> routeRules)
The list of ordered HTTP route rules.
|
PathMatcher.Builder |
addPathRules(PathRule pathRules)
The list of path rules.
|
PathMatcher.Builder |
addRouteRules(HttpRouteRule routeRules)
The list of ordered HTTP route rules.
|
PathMatcher |
build() |
PathMatcher.Builder |
clone() |
HttpRouteAction |
getDefaultRouteAction()
defaultRouteAction takes effect when none of the pathRules or routeRules match.
|
String |
getDefaultService()
The full or partial URL to the BackendService resource.
|
HttpRedirectAction |
getDefaultUrlRedirect()
When when none of the specified pathRules or routeRules match, the request is redirected to a
URL specified by defaultUrlRedirect.
|
String |
getDescription()
An optional description of this resource.
|
HttpHeaderAction |
getHeaderAction()
Specifies changes to request and response headers that need to take effect for the selected
backendService.
|
String |
getName()
The name to which this PathMatcher is referred by the HostRule.
|
List<PathRule> |
getPathRulesList()
The list of path rules.
|
List<HttpRouteRule> |
getRouteRulesList()
The list of ordered HTTP route rules.
|
PathMatcher.Builder |
mergeFrom(PathMatcher other) |
PathMatcher.Builder |
setDefaultRouteAction(HttpRouteAction defaultRouteAction)
defaultRouteAction takes effect when none of the pathRules or routeRules match.
|
PathMatcher.Builder |
setDefaultService(String defaultService)
The full or partial URL to the BackendService resource.
|
PathMatcher.Builder |
setDefaultUrlRedirect(HttpRedirectAction defaultUrlRedirect)
When when none of the specified pathRules or routeRules match, the request is redirected to a
URL specified by defaultUrlRedirect.
|
PathMatcher.Builder |
setDescription(String description)
An optional description of this resource.
|
PathMatcher.Builder |
setHeaderAction(HttpHeaderAction headerAction)
Specifies changes to request and response headers that need to take effect for the selected
backendService.
|
PathMatcher.Builder |
setName(String name)
The name to which this PathMatcher is referred by the HostRule.
|
public PathMatcher.Builder mergeFrom(PathMatcher other)
public HttpRouteAction getDefaultRouteAction()
public PathMatcher.Builder setDefaultRouteAction(HttpRouteAction defaultRouteAction)
public String getDefaultService()
public PathMatcher.Builder setDefaultService(String defaultService)
public HttpRedirectAction getDefaultUrlRedirect()
public PathMatcher.Builder setDefaultUrlRedirect(HttpRedirectAction defaultUrlRedirect)
public String getDescription()
public PathMatcher.Builder setDescription(String description)
public HttpHeaderAction getHeaderAction()
public PathMatcher.Builder setHeaderAction(HttpHeaderAction headerAction)
public String getName()
public PathMatcher.Builder setName(String name)
public List<PathRule> getPathRulesList()
public PathMatcher.Builder addAllPathRules(List<PathRule> pathRules)
public PathMatcher.Builder addPathRules(PathRule pathRules)
public List<HttpRouteRule> getRouteRulesList()
public PathMatcher.Builder addAllRouteRules(List<HttpRouteRule> routeRules)
public PathMatcher.Builder addRouteRules(HttpRouteRule routeRules)
public PathMatcher build()
public PathMatcher.Builder clone()
Copyright © 2019 Google LLC. All rights reserved.