Interface UrlMapOrBuilder (2.36.0)

publicinterface UrlMapOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getApiEndpoint()

publicabstractApiEndpointHandlergetApiEndpoint()

Uses API Endpoints to handle requests.

.google.appengine.v1.ApiEndpointHandler api_endpoint = 4;

Returns
Type Description
ApiEndpointHandler

The apiEndpoint.

getApiEndpointOrBuilder()

publicabstractApiEndpointHandlerOrBuildergetApiEndpointOrBuilder()

Uses API Endpoints to handle requests.

.google.appengine.v1.ApiEndpointHandler api_endpoint = 4;

Returns
Type Description
ApiEndpointHandlerOrBuilder

getAuthFailAction()

publicabstractAuthFailActiongetAuthFailAction()

Action to take when users access resources that require authentication. Defaults to redirect.

.google.appengine.v1.AuthFailAction auth_fail_action = 7;

Returns
Type Description
AuthFailAction

The authFailAction.

getAuthFailActionValue()

publicabstractintgetAuthFailActionValue()

Action to take when users access resources that require authentication. Defaults to redirect.

.google.appengine.v1.AuthFailAction auth_fail_action = 7;

Returns
Type Description
int

The enum numeric value on the wire for authFailAction.

getHandlerTypeCase()

publicabstractUrlMap.HandlerTypeCasegetHandlerTypeCase()
Returns
Type Description
UrlMap.HandlerTypeCase

getLogin()

publicabstractLoginRequirementgetLogin()

Level of login required to access this resource. Not supported for Node.js in the App Engine standard environment.

.google.appengine.v1.LoginRequirement login = 6;

Returns
Type Description
LoginRequirement

The login.

getLoginValue()

publicabstractintgetLoginValue()

Level of login required to access this resource. Not supported for Node.js in the App Engine standard environment.

.google.appengine.v1.LoginRequirement login = 6;

Returns
Type Description
int

The enum numeric value on the wire for login.

getRedirectHttpResponseCode()

publicabstractUrlMap.RedirectHttpResponseCodegetRedirectHttpResponseCode()

30x code to use when performing redirects for the secure field. Defaults to 302.

.google.appengine.v1.UrlMap.RedirectHttpResponseCode redirect_http_response_code = 8;

Returns
Type Description
UrlMap.RedirectHttpResponseCode

The redirectHttpResponseCode.

getRedirectHttpResponseCodeValue()

publicabstractintgetRedirectHttpResponseCodeValue()

30x code to use when performing redirects for the secure field. Defaults to 302.

.google.appengine.v1.UrlMap.RedirectHttpResponseCode redirect_http_response_code = 8;

Returns
Type Description
int

The enum numeric value on the wire for redirectHttpResponseCode.

getScript()

publicabstractScriptHandlergetScript()

Executes a script to handle the requests that match this URL pattern. Only the auto value is supported for Node.js in the App Engine standard environment, for example "script": "auto".

.google.appengine.v1.ScriptHandler script = 3;

Returns
Type Description
ScriptHandler

The script.

getScriptOrBuilder()

publicabstractScriptHandlerOrBuildergetScriptOrBuilder()

Executes a script to handle the requests that match this URL pattern. Only the auto value is supported for Node.js in the App Engine standard environment, for example "script": "auto".

.google.appengine.v1.ScriptHandler script = 3;

Returns
Type Description
ScriptHandlerOrBuilder

getSecurityLevel()

publicabstractSecurityLevelgetSecurityLevel()

Security (HTTPS) enforcement for this URL.

.google.appengine.v1.SecurityLevel security_level = 5;

Returns
Type Description
SecurityLevel

The securityLevel.

getSecurityLevelValue()

publicabstractintgetSecurityLevelValue()

Security (HTTPS) enforcement for this URL.

.google.appengine.v1.SecurityLevel security_level = 5;

Returns
Type Description
int

The enum numeric value on the wire for securityLevel.

getStaticFiles()

publicabstractStaticFilesHandlergetStaticFiles()

Returns the contents of a file, such as an image, as the response.

.google.appengine.v1.StaticFilesHandler static_files = 2;

Returns
Type Description
StaticFilesHandler

The staticFiles.

getStaticFilesOrBuilder()

publicabstractStaticFilesHandlerOrBuildergetStaticFilesOrBuilder()

Returns the contents of a file, such as an image, as the response.

.google.appengine.v1.StaticFilesHandler static_files = 2;

Returns
Type Description
StaticFilesHandlerOrBuilder

getUrlRegex()

publicabstractStringgetUrlRegex()

URL prefix. Uses regular expression syntax, which means regexp special characters must be escaped, but should not contain groupings. All URLs that begin with this prefix are handled by this handler, using the portion of the URL after the prefix as part of the file path.

string url_regex = 1;

Returns
Type Description
String

The urlRegex.

getUrlRegexBytes()

publicabstractByteStringgetUrlRegexBytes()

URL prefix. Uses regular expression syntax, which means regexp special characters must be escaped, but should not contain groupings. All URLs that begin with this prefix are handled by this handler, using the portion of the URL after the prefix as part of the file path.

string url_regex = 1;

Returns
Type Description
ByteString

The bytes for urlRegex.

hasApiEndpoint()

publicabstractbooleanhasApiEndpoint()

Uses API Endpoints to handle requests.

.google.appengine.v1.ApiEndpointHandler api_endpoint = 4;

Returns
Type Description
boolean

Whether the apiEndpoint field is set.

hasScript()

publicabstractbooleanhasScript()

Executes a script to handle the requests that match this URL pattern. Only the auto value is supported for Node.js in the App Engine standard environment, for example "script": "auto".

.google.appengine.v1.ScriptHandler script = 3;

Returns
Type Description
boolean

Whether the script field is set.

hasStaticFiles()

publicabstractbooleanhasStaticFiles()

Returns the contents of a file, such as an image, as the response.

.google.appengine.v1.StaticFilesHandler static_files = 2;

Returns
Type Description
boolean

Whether the staticFiles field is set.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.