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, unknownFields
memoizedSize
memoizedHashCode
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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public 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 MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField
in class GeneratedMessageV3
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public 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 StaticFilesHandlerOrBuilder
public 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 StaticFilesHandlerOrBuilder
public 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 StaticFilesHandlerOrBuilder
public 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 StaticFilesHandlerOrBuilder
public int getHttpHeadersCount()
StaticFilesHandlerOrBuilder
HTTP headers to use for all responses from these URLs.
map<string, string> http_headers = 3;
getHttpHeadersCount
in interface StaticFilesHandlerOrBuilder
public 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 StaticFilesHandlerOrBuilder
public 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 StaticFilesHandlerOrBuilder
public 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 StaticFilesHandlerOrBuilder
public 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 StaticFilesHandlerOrBuilder
public 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 StaticFilesHandlerOrBuilder
public 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 StaticFilesHandlerOrBuilder
public 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 StaticFilesHandlerOrBuilder
public 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 StaticFilesHandlerOrBuilder
public 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 StaticFilesHandlerOrBuilder
public 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 StaticFilesHandlerOrBuilder
public 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 StaticFilesHandlerOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static StaticFilesHandler parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static StaticFilesHandler parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static StaticFilesHandler parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static StaticFilesHandler parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static StaticFilesHandler parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static StaticFilesHandler parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static StaticFilesHandler parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static StaticFilesHandler parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static StaticFilesHandler parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static StaticFilesHandler parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static StaticFilesHandler parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static StaticFilesHandler parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public StaticFilesHandler.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static StaticFilesHandler.Builder newBuilder()
public static StaticFilesHandler.Builder newBuilder(StaticFilesHandler prototype)
public StaticFilesHandler.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected StaticFilesHandler.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static StaticFilesHandler getDefaultInstance()
public static Parser<StaticFilesHandler> parser()
public Parser<StaticFilesHandler> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public StaticFilesHandler getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder