Interface StaticFilesHandlerOrBuilder (2.36.0)

public interface StaticFilesHandlerOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsHttpHeaders(String key)

public abstract boolean containsHttpHeaders(String key)

HTTP headers to use for all responses from these URLs.

map<string, string> http_headers = 3;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getApplicationReadable()

public abstract boolean getApplicationReadable()

Whether files should also be uploaded as code data. By default, files declared in static file handlers are uploaded as static data and are only served to end users; they cannot be read by the application. If enabled, uploads are charged against both your code and static data storage resource quotas.

bool application_readable = 7;

Returns
TypeDescription
boolean

The applicationReadable.

getExpiration()

public abstract Duration getExpiration()

Time a static file served by this handler should be cached by web proxies and browsers.

.google.protobuf.Duration expiration = 5;

Returns
TypeDescription
Duration

The expiration.

getExpirationOrBuilder()

public abstract DurationOrBuilder getExpirationOrBuilder()

Time a static file served by this handler should be cached by web proxies and browsers.

.google.protobuf.Duration expiration = 5;

Returns
TypeDescription
DurationOrBuilder

getHttpHeaders() (deprecated)

public abstract Map<String,String> getHttpHeaders()

Use #getHttpHeadersMap() instead.

Returns
TypeDescription
Map<String,String>

getHttpHeadersCount()

public abstract int getHttpHeadersCount()

HTTP headers to use for all responses from these URLs.

map<string, string> http_headers = 3;

Returns
TypeDescription
int

getHttpHeadersMap()

public abstract Map<String,String> getHttpHeadersMap()

HTTP headers to use for all responses from these URLs.

map<string, string> http_headers = 3;

Returns
TypeDescription
Map<String,String>

getHttpHeadersOrDefault(String key, String defaultValue)

public abstract String getHttpHeadersOrDefault(String key, String defaultValue)

HTTP headers to use for all responses from these URLs.

map<string, string> http_headers = 3;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getHttpHeadersOrThrow(String key)

public abstract String getHttpHeadersOrThrow(String key)

HTTP headers to use for all responses from these URLs.

map<string, string> http_headers = 3;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMimeType()

public abstract String getMimeType()

MIME type used to serve all files served by this handler.

Defaults to file-specific MIME types, which are derived from each file's filename extension.

string mime_type = 4;

Returns
TypeDescription
String

The mimeType.

getMimeTypeBytes()

public abstract ByteString getMimeTypeBytes()

MIME type used to serve all files served by this handler.

Defaults to file-specific MIME types, which are derived from each file's filename extension.

string mime_type = 4;

Returns
TypeDescription
ByteString

The bytes for mimeType.

getPath()

public abstract String getPath()

Path to the static files matched by the URL pattern, from the application root directory. The path can refer to text matched in groupings in the URL pattern.

string path = 1;

Returns
TypeDescription
String

The path.

getPathBytes()

public abstract ByteString getPathBytes()

Path to the static files matched by the URL pattern, from the application root directory. The path can refer to text matched in groupings in the URL pattern.

string path = 1;

Returns
TypeDescription
ByteString

The bytes for path.

getRequireMatchingFile()

public abstract boolean getRequireMatchingFile()

Whether this handler should match the request if the file referenced by the handler does not exist.

bool require_matching_file = 6;

Returns
TypeDescription
boolean

The requireMatchingFile.

getUploadPathRegex()

public abstract String getUploadPathRegex()

Regular expression that matches the file paths for all files that should be referenced by this handler.

string upload_path_regex = 2;

Returns
TypeDescription
String

The uploadPathRegex.

getUploadPathRegexBytes()

public abstract ByteString getUploadPathRegexBytes()

Regular expression that matches the file paths for all files that should be referenced by this handler.

string upload_path_regex = 2;

Returns
TypeDescription
ByteString

The bytes for uploadPathRegex.

hasExpiration()

public abstract boolean hasExpiration()

Time a static file served by this handler should be cached by web proxies and browsers.

.google.protobuf.Duration expiration = 5;

Returns
TypeDescription
boolean

Whether the expiration field is set.