public interface StaticFilesHandlerOrBuilder extends MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
boolean |
containsHttpHeaders(java.lang.String key)
HTTP headers to use for all responses from these URLs.
|
boolean |
getApplicationReadable()
Whether files should also be uploaded as code data.
|
Duration |
getExpiration()
Time a static file served by this handler should be cached
by web proxies and browsers.
|
DurationOrBuilder |
getExpirationOrBuilder()
Time a static file served by this handler should be cached
by web proxies and browsers.
|
java.util.Map<java.lang.String,java.lang.String> |
getHttpHeaders()
Deprecated.
|
int |
getHttpHeadersCount()
HTTP headers to use for all responses from these URLs.
|
java.util.Map<java.lang.String,java.lang.String> |
getHttpHeadersMap()
HTTP headers to use for all responses from these URLs.
|
java.lang.String |
getHttpHeadersOrDefault(java.lang.String key,
java.lang.String defaultValue)
HTTP headers to use for all responses from these URLs.
|
java.lang.String |
getHttpHeadersOrThrow(java.lang.String key)
HTTP headers to use for all responses from these URLs.
|
java.lang.String |
getMimeType()
MIME type used to serve all files served by this handler.
|
ByteString |
getMimeTypeBytes()
MIME type used to serve all files served by this handler.
|
java.lang.String |
getPath()
Path to the static files matched by the URL pattern, from the
application root directory.
|
ByteString |
getPathBytes()
Path to the static files matched by the URL pattern, from the
application root directory.
|
boolean |
getRequireMatchingFile()
Whether this handler should match the request if the file
referenced by the handler does not exist.
|
java.lang.String |
getUploadPathRegex()
Regular expression that matches the file paths for all files that should be
referenced by this handler.
|
ByteString |
getUploadPathRegexBytes()
Regular expression that matches the file paths for all files that should be
referenced by this handler.
|
boolean |
hasExpiration()
Time a static file served by this handler should be cached
by web proxies and browsers.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
isInitialized
java.lang.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;
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;
java.lang.String getUploadPathRegex()
Regular expression that matches the file paths for all files that should be referenced by this handler.
string upload_path_regex = 2;
ByteString getUploadPathRegexBytes()
Regular expression that matches the file paths for all files that should be referenced by this handler.
string upload_path_regex = 2;
int getHttpHeadersCount()
HTTP headers to use for all responses from these URLs.
map<string, string> http_headers = 3;
boolean containsHttpHeaders(java.lang.String key)
HTTP headers to use for all responses from these URLs.
map<string, string> http_headers = 3;
@Deprecated java.util.Map<java.lang.String,java.lang.String> getHttpHeaders()
getHttpHeadersMap()
instead.java.util.Map<java.lang.String,java.lang.String> getHttpHeadersMap()
HTTP headers to use for all responses from these URLs.
map<string, string> http_headers = 3;
java.lang.String getHttpHeadersOrDefault(java.lang.String key, java.lang.String defaultValue)
HTTP headers to use for all responses from these URLs.
map<string, string> http_headers = 3;
java.lang.String getHttpHeadersOrThrow(java.lang.String key)
HTTP headers to use for all responses from these URLs.
map<string, string> http_headers = 3;
java.lang.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;
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;
boolean hasExpiration()
Time a static file served by this handler should be cached by web proxies and browsers.
.google.protobuf.Duration expiration = 5;
Duration getExpiration()
Time a static file served by this handler should be cached by web proxies and browsers.
.google.protobuf.Duration expiration = 5;
DurationOrBuilder getExpirationOrBuilder()
Time a static file served by this handler should be cached by web proxies and browsers.
.google.protobuf.Duration expiration = 5;
boolean getRequireMatchingFile()
Whether this handler should match the request if the file referenced by the handler does not exist.
bool require_matching_file = 6;
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;