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
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
PathMatcher() |
Modifier and Type | Method and Description |
---|---|
PathMatcher |
clone() |
CustomErrorResponsePolicy |
getDefaultCustomErrorResponsePolicy()
defaultCustomErrorResponsePolicy specifies how the Load Balancer returns error responses when
BackendServiceor BackendBucket responds with an error.
|
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 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
backend service.
|
String |
getName()
The name to which this PathMatcher is referred by the HostRule.
|
List<PathRule> |
getPathRules()
The list of path rules.
|
List<HttpRouteRule> |
getRouteRules()
The list of HTTP route rules.
|
PathMatcher |
set(String fieldName,
Object value) |
PathMatcher |
setDefaultCustomErrorResponsePolicy(CustomErrorResponsePolicy defaultCustomErrorResponsePolicy)
defaultCustomErrorResponsePolicy specifies how the Load Balancer returns error responses when
BackendServiceor BackendBucket responds with an error.
|
PathMatcher |
setDefaultRouteAction(HttpRouteAction defaultRouteAction)
defaultRouteAction takes effect when none of the pathRules or routeRules match.
|
PathMatcher |
setDefaultService(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(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
backend service.
|
PathMatcher |
setName(String name)
The name to which this PathMatcher is referred by the HostRule.
|
PathMatcher |
setPathRules(List<PathRule> pathRules)
The list of path rules.
|
PathMatcher |
setRouteRules(List<HttpRouteRule> routeRules)
The list of HTTP route rules.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public CustomErrorResponsePolicy getDefaultCustomErrorResponsePolicy()
null
for nonepublic PathMatcher setDefaultCustomErrorResponsePolicy(CustomErrorResponsePolicy defaultCustomErrorResponsePolicy)
defaultCustomErrorResponsePolicy
- defaultCustomErrorResponsePolicy or null
for nonepublic HttpRouteAction getDefaultRouteAction()
null
for nonepublic PathMatcher setDefaultRouteAction(HttpRouteAction defaultRouteAction)
defaultRouteAction
- defaultRouteAction or null
for nonepublic String getDefaultService()
null
for nonepublic PathMatcher setDefaultService(String defaultService)
defaultService
- defaultService or null
for nonepublic HttpRedirectAction getDefaultUrlRedirect()
null
for nonepublic PathMatcher setDefaultUrlRedirect(HttpRedirectAction defaultUrlRedirect)
defaultUrlRedirect
- defaultUrlRedirect or null
for nonepublic String getDescription()
null
for nonepublic PathMatcher setDescription(String description)
description
- description or null
for nonepublic HttpHeaderAction getHeaderAction()
null
for nonepublic PathMatcher setHeaderAction(HttpHeaderAction headerAction)
headerAction
- headerAction or null
for nonepublic String getName()
null
for nonepublic PathMatcher setName(String name)
name
- name or null
for nonepublic List<PathRule> getPathRules()
null
for nonepublic PathMatcher setPathRules(List<PathRule> pathRules)
pathRules
- pathRules or null
for nonepublic List<HttpRouteRule> getRouteRules()
null
for nonepublic PathMatcher setRouteRules(List<HttpRouteRule> routeRules)
routeRules
- routeRules or null
for nonepublic PathMatcher set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public PathMatcher clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.