public final class PathMatcher
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
PathMatcher() |
Modifier and Type | Method and Description |
---|---|
PathMatcher |
clone() |
HttpRouteAction |
getDefaultRouteAction()
defaultRouteAction takes effect when none of the pathRules or routeRules match.
|
java.lang.String |
getDefaultService()
The full or partial URL to the BackendService resource.
|
HttpRedirectAction |
getDefaultUrlRedirect()
When none of the specified pathRules or routeRules match, the request is redirected to a URL
specified by defaultUrlRedirect.
|
java.lang.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.
|
java.lang.String |
getName()
The name to which this PathMatcher is referred by the HostRule.
|
java.util.List<PathRule> |
getPathRules()
The list of path rules.
|
java.util.List<HttpRouteRule> |
getRouteRules()
The list of HTTP route rules.
|
PathMatcher |
set(java.lang.String fieldName,
java.lang.Object value) |
PathMatcher |
setDefaultRouteAction(HttpRouteAction defaultRouteAction)
defaultRouteAction takes effect when none of the pathRules or routeRules match.
|
PathMatcher |
setDefaultService(java.lang.String defaultService)
The full or partial URL to the BackendService resource.
|
PathMatcher |
setDefaultUrlRedirect(HttpRedirectAction defaultUrlRedirect)
When none of the specified pathRules or routeRules match, the request is redirected to a URL
specified by defaultUrlRedirect.
|
PathMatcher |
setDescription(java.lang.String description)
An optional description of this resource.
|
PathMatcher |
setHeaderAction(HttpHeaderAction headerAction)
Specifies changes to request and response headers that need to take effect for the selected
backendService.
|
PathMatcher |
setName(java.lang.String name)
The name to which this PathMatcher is referred by the HostRule.
|
PathMatcher |
setPathRules(java.util.List<PathRule> pathRules)
The list of path rules.
|
PathMatcher |
setRouteRules(java.util.List<HttpRouteRule> routeRules)
The list of HTTP route rules.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public HttpRouteAction getDefaultRouteAction()
null
for nonepublic PathMatcher setDefaultRouteAction(HttpRouteAction defaultRouteAction)
defaultRouteAction
- defaultRouteAction or null
for nonepublic java.lang.String getDefaultService()
null
for nonepublic PathMatcher setDefaultService(java.lang.String defaultService)
defaultService
- defaultService or null
for nonepublic HttpRedirectAction getDefaultUrlRedirect()
null
for nonepublic PathMatcher setDefaultUrlRedirect(HttpRedirectAction defaultUrlRedirect)
defaultUrlRedirect
- defaultUrlRedirect or null
for nonepublic java.lang.String getDescription()
null
for nonepublic PathMatcher setDescription(java.lang.String description)
description
- description or null
for nonepublic HttpHeaderAction getHeaderAction()
null
for nonepublic PathMatcher setHeaderAction(HttpHeaderAction headerAction)
headerAction
- headerAction or null
for nonepublic java.lang.String getName()
null
for nonepublic PathMatcher setName(java.lang.String name)
name
- name or null
for nonepublic java.util.List<PathRule> getPathRules()
null
for nonepublic PathMatcher setPathRules(java.util.List<PathRule> pathRules)
pathRules
- pathRules or null
for nonepublic java.util.List<HttpRouteRule> getRouteRules()
null
for nonepublic PathMatcher setRouteRules(java.util.List<HttpRouteRule> routeRules)
routeRules
- routeRules or null
for nonepublic PathMatcher set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public PathMatcher clone()
clone
in class com.google.api.client.json.GenericJson