public final class StaticFilesHandler extends GeneratedMessageV3 implements StaticFilesHandlerOrBuilder
Files served directly to the user for a given URL, such as images, CSS stylesheets, or JavaScript source files. Static file handlers describe which files in the application directory are static files, and which URLs serve them.Protobuf type
google.appengine.v1.StaticFilesHandler| Modifier and Type | Class and Description |
|---|---|
static class |
StaticFilesHandler.Builder
Files served directly to the user for a given URL, such as images, CSS
stylesheets, or JavaScript source files.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
APPLICATION_READABLE_FIELD_NUMBER |
static int |
EXPIRATION_FIELD_NUMBER |
static int |
HTTP_HEADERS_FIELD_NUMBER |
static int |
MIME_TYPE_FIELD_NUMBER |
static int |
PATH_FIELD_NUMBER |
static int |
REQUIRE_MATCHING_FILE_FIELD_NUMBER |
static int |
UPLOAD_PATH_REGEX_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| Modifier and Type | Method and Description |
|---|---|
boolean |
containsHttpHeaders(java.lang.String key)
HTTP headers to use for all responses from these URLs.
|
boolean |
equals(java.lang.Object obj) |
boolean |
getApplicationReadable()
Whether files should also be uploaded as code data.
|
static StaticFilesHandler |
getDefaultInstance() |
StaticFilesHandler |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
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.
|
Parser<StaticFilesHandler> |
getParserForType() |
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.
|
int |
getSerializedSize() |
UnknownFieldSet |
getUnknownFields() |
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.
|
int |
hashCode() |
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static StaticFilesHandler.Builder |
newBuilder() |
static StaticFilesHandler.Builder |
newBuilder(StaticFilesHandler prototype) |
StaticFilesHandler.Builder |
newBuilderForType() |
protected StaticFilesHandler.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static StaticFilesHandler |
parseDelimitedFrom(java.io.InputStream input) |
static StaticFilesHandler |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static StaticFilesHandler |
parseFrom(byte[] data) |
static StaticFilesHandler |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static StaticFilesHandler |
parseFrom(java.nio.ByteBuffer data) |
static StaticFilesHandler |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static StaticFilesHandler |
parseFrom(ByteString data) |
static StaticFilesHandler |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static StaticFilesHandler |
parseFrom(CodedInputStream input) |
static StaticFilesHandler |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static StaticFilesHandler |
parseFrom(java.io.InputStream input) |
static StaticFilesHandler |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<StaticFilesHandler> |
parser() |
StaticFilesHandler.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int PATH_FIELD_NUMBER
public static final int UPLOAD_PATH_REGEX_FIELD_NUMBER
public static final int HTTP_HEADERS_FIELD_NUMBER
public static final int MIME_TYPE_FIELD_NUMBER
public static final int EXPIRATION_FIELD_NUMBER
public static final int REQUIRE_MATCHING_FILE_FIELD_NUMBER
public static final int APPLICATION_READABLE_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField in class GeneratedMessageV3protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public 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;getPath in interface StaticFilesHandlerOrBuilderpublic 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;getPathBytes in interface StaticFilesHandlerOrBuilderpublic 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;getUploadPathRegex in interface StaticFilesHandlerOrBuilderpublic ByteString getUploadPathRegexBytes()
Regular expression that matches the file paths for all files that should be referenced by this handler.
string upload_path_regex = 2;getUploadPathRegexBytes in interface StaticFilesHandlerOrBuilderpublic int getHttpHeadersCount()
StaticFilesHandlerOrBuilderHTTP headers to use for all responses from these URLs.
map<string, string> http_headers = 3;getHttpHeadersCount in interface StaticFilesHandlerOrBuilderpublic boolean containsHttpHeaders(java.lang.String key)
HTTP headers to use for all responses from these URLs.
map<string, string> http_headers = 3;containsHttpHeaders in interface StaticFilesHandlerOrBuilder@Deprecated public java.util.Map<java.lang.String,java.lang.String> getHttpHeaders()
getHttpHeadersMap() instead.getHttpHeaders in interface StaticFilesHandlerOrBuilderpublic 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;getHttpHeadersMap in interface StaticFilesHandlerOrBuilderpublic 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;getHttpHeadersOrDefault in interface StaticFilesHandlerOrBuilderpublic java.lang.String getHttpHeadersOrThrow(java.lang.String key)
HTTP headers to use for all responses from these URLs.
map<string, string> http_headers = 3;getHttpHeadersOrThrow in interface StaticFilesHandlerOrBuilderpublic 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;getMimeType in interface StaticFilesHandlerOrBuilderpublic 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;getMimeTypeBytes in interface StaticFilesHandlerOrBuilderpublic boolean hasExpiration()
Time a static file served by this handler should be cached by web proxies and browsers.
.google.protobuf.Duration expiration = 5;hasExpiration in interface StaticFilesHandlerOrBuilderpublic Duration getExpiration()
Time a static file served by this handler should be cached by web proxies and browsers.
.google.protobuf.Duration expiration = 5;getExpiration in interface StaticFilesHandlerOrBuilderpublic DurationOrBuilder getExpirationOrBuilder()
Time a static file served by this handler should be cached by web proxies and browsers.
.google.protobuf.Duration expiration = 5;getExpirationOrBuilder in interface StaticFilesHandlerOrBuilderpublic boolean getRequireMatchingFile()
Whether this handler should match the request if the file referenced by the handler does not exist.
bool require_matching_file = 6;getRequireMatchingFile in interface StaticFilesHandlerOrBuilderpublic 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;getApplicationReadable in interface StaticFilesHandlerOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static StaticFilesHandler parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static StaticFilesHandler parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static StaticFilesHandler parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static StaticFilesHandler parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static StaticFilesHandler parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static StaticFilesHandler parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static StaticFilesHandler parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static StaticFilesHandler parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static StaticFilesHandler parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static StaticFilesHandler parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static StaticFilesHandler parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static StaticFilesHandler parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic StaticFilesHandler.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static StaticFilesHandler.Builder newBuilder()
public static StaticFilesHandler.Builder newBuilder(StaticFilesHandler prototype)
public StaticFilesHandler.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected StaticFilesHandler.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static StaticFilesHandler getDefaultInstance()
public static Parser<StaticFilesHandler> parser()
public Parser<StaticFilesHandler> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public StaticFilesHandler getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder