![JAR search and dependency download from the Maven repository](/logo.png)
target.apidocs.com.google.api.services.compute.model.UrlMapTest.html Maven / Gradle / Ivy
UrlMapTest (Compute Engine API beta-rev20220726-2.0.0)
com.google.api.services.compute.model
Class UrlMapTest
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.compute.model.UrlMapTest
-
public final class UrlMapTest
extends GenericJson
Message for the expected URL mappings.
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
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
UrlMapTest()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
UrlMapTest
clone()
String
getDescription()
Description of this test case.
String
getExpectedOutputUrl()
The expected output URL evaluated by the load balancer containing the scheme, host, path and
query parameters.
Integer
getExpectedRedirectResponseCode()
For rules with urlRedirect, the test passes only if expectedRedirectResponseCode matches the
HTTP status code in load balancer's redirect response.
List<UrlMapTestHeader>
getHeaders()
HTTP headers for this request.
String
getHost()
Host portion of the URL.
String
getPath()
Path portion of the URL.
String
getService()
Expected BackendService or BackendBucket resource the given URL should be mapped to.
UrlMapTest
set(String fieldName,
Object value)
UrlMapTest
setDescription(String description)
Description of this test case.
UrlMapTest
setExpectedOutputUrl(String expectedOutputUrl)
The expected output URL evaluated by the load balancer containing the scheme, host, path and
query parameters.
UrlMapTest
setExpectedRedirectResponseCode(Integer expectedRedirectResponseCode)
For rules with urlRedirect, the test passes only if expectedRedirectResponseCode matches the
HTTP status code in load balancer's redirect response.
UrlMapTest
setHeaders(List<UrlMapTestHeader> headers)
HTTP headers for this request.
UrlMapTest
setHost(String host)
Host portion of the URL.
UrlMapTest
setPath(String path)
Path portion of the URL.
UrlMapTest
setService(String service)
Expected BackendService or BackendBucket resource the given URL should be mapped to.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getDescription
public String getDescription()
Description of this test case.
- Returns:
- value or
null
for none
-
setDescription
public UrlMapTest setDescription(String description)
Description of this test case.
- Parameters:
description
- description or null
for none
-
getExpectedOutputUrl
public String getExpectedOutputUrl()
The expected output URL evaluated by the load balancer containing the scheme, host, path and
query parameters. For rules that forward requests to backends, the test passes only when
expectedOutputUrl matches the request forwarded by the load balancer to backends. For rules
with urlRewrite, the test verifies that the forwarded request matches hostRewrite and
pathPrefixRewrite in the urlRewrite action. When service is specified, expectedOutputUrl`s
scheme is ignored. For rules with urlRedirect, the test passes only if expectedOutputUrl
matches the URL in the load balancer's redirect response. If urlRedirect specifies
https_redirect, the test passes only if the scheme in expectedOutputUrl is also set to HTTPS.
If urlRedirect specifies strip_query, the test passes only if expectedOutputUrl does not
contain any query parameters. expectedOutputUrl is optional when service is specified.
- Returns:
- value or
null
for none
-
setExpectedOutputUrl
public UrlMapTest setExpectedOutputUrl(String expectedOutputUrl)
The expected output URL evaluated by the load balancer containing the scheme, host, path and
query parameters. For rules that forward requests to backends, the test passes only when
expectedOutputUrl matches the request forwarded by the load balancer to backends. For rules
with urlRewrite, the test verifies that the forwarded request matches hostRewrite and
pathPrefixRewrite in the urlRewrite action. When service is specified, expectedOutputUrl`s
scheme is ignored. For rules with urlRedirect, the test passes only if expectedOutputUrl
matches the URL in the load balancer's redirect response. If urlRedirect specifies
https_redirect, the test passes only if the scheme in expectedOutputUrl is also set to HTTPS.
If urlRedirect specifies strip_query, the test passes only if expectedOutputUrl does not
contain any query parameters. expectedOutputUrl is optional when service is specified.
- Parameters:
expectedOutputUrl
- expectedOutputUrl or null
for none
-
getExpectedRedirectResponseCode
public Integer getExpectedRedirectResponseCode()
For rules with urlRedirect, the test passes only if expectedRedirectResponseCode matches the
HTTP status code in load balancer's redirect response. expectedRedirectResponseCode cannot be
set when service is set.
- Returns:
- value or
null
for none
-
setExpectedRedirectResponseCode
public UrlMapTest setExpectedRedirectResponseCode(Integer expectedRedirectResponseCode)
For rules with urlRedirect, the test passes only if expectedRedirectResponseCode matches the
HTTP status code in load balancer's redirect response. expectedRedirectResponseCode cannot be
set when service is set.
- Parameters:
expectedRedirectResponseCode
- expectedRedirectResponseCode or null
for none
-
getHeaders
public List<UrlMapTestHeader> getHeaders()
HTTP headers for this request. If headers contains a host header, then host must also match the
header value.
- Returns:
- value or
null
for none
-
setHeaders
public UrlMapTest setHeaders(List<UrlMapTestHeader> headers)
HTTP headers for this request. If headers contains a host header, then host must also match the
header value.
- Parameters:
headers
- headers or null
for none
-
getHost
public String getHost()
Host portion of the URL. If headers contains a host header, then host must also match the
header value.
- Returns:
- value or
null
for none
-
setHost
public UrlMapTest setHost(String host)
Host portion of the URL. If headers contains a host header, then host must also match the
header value.
- Parameters:
host
- host or null
for none
-
getPath
public String getPath()
Path portion of the URL.
- Returns:
- value or
null
for none
-
setPath
public UrlMapTest setPath(String path)
Path portion of the URL.
- Parameters:
path
- path or null
for none
-
getService
public String getService()
Expected BackendService or BackendBucket resource the given URL should be mapped to. The
service field cannot be set if expectedRedirectResponseCode is set.
- Returns:
- value or
null
for none
-
setService
public UrlMapTest setService(String service)
Expected BackendService or BackendBucket resource the given URL should be mapped to. The
service field cannot be set if expectedRedirectResponseCode is set.
- Parameters:
service
- service or null
for none
-
set
public UrlMapTest set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public UrlMapTest clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy