public final class StaticFilesHandler
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the App Engine Admin API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
StaticFilesHandler() |
| Modifier and Type | Method and Description |
|---|---|
StaticFilesHandler |
clone() |
Boolean |
getApplicationReadable()
Whether files should also be uploaded as code data.
|
String |
getExpiration()
Time a static file served by this handler should be cached by web proxies and browsers.
|
Map<String,String> |
getHttpHeaders()
HTTP headers to use for all responses from these URLs.
|
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 |
getPath()
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.
|
String |
getUploadPathRegex()
Regular expression that matches the file paths for all files that should be referenced by this
handler.
|
StaticFilesHandler |
set(String fieldName,
Object value) |
StaticFilesHandler |
setApplicationReadable(Boolean applicationReadable)
Whether files should also be uploaded as code data.
|
StaticFilesHandler |
setExpiration(String expiration)
Time a static file served by this handler should be cached by web proxies and browsers.
|
StaticFilesHandler |
setHttpHeaders(Map<String,String> httpHeaders)
HTTP headers to use for all responses from these URLs.
|
StaticFilesHandler |
setMimeType(String mimeType)
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.
|
StaticFilesHandler |
setPath(String path)
Path to the static files matched by the URL pattern, from the application root directory.
|
StaticFilesHandler |
setRequireMatchingFile(Boolean requireMatchingFile)
Whether this handler should match the request if the file referenced by the handler does not
exist.
|
StaticFilesHandler |
setUploadPathRegex(String uploadPathRegex)
Regular expression that matches the file paths for all files that should be referenced by this
handler.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Boolean getApplicationReadable()
null for nonepublic StaticFilesHandler setApplicationReadable(Boolean applicationReadable)
applicationReadable - applicationReadable or null for nonepublic String getExpiration()
null for nonepublic StaticFilesHandler setExpiration(String expiration)
expiration - expiration or null for nonepublic Map<String,String> getHttpHeaders()
null for nonepublic StaticFilesHandler setHttpHeaders(Map<String,String> httpHeaders)
httpHeaders - httpHeaders or null for nonepublic String getMimeType()
null for nonepublic StaticFilesHandler setMimeType(String mimeType)
mimeType - mimeType or null for nonepublic String getPath()
null for nonepublic StaticFilesHandler setPath(String path)
path - path or null for nonepublic Boolean getRequireMatchingFile()
null for nonepublic StaticFilesHandler setRequireMatchingFile(Boolean requireMatchingFile)
requireMatchingFile - requireMatchingFile or null for nonepublic String getUploadPathRegex()
null for nonepublic StaticFilesHandler setUploadPathRegex(String uploadPathRegex)
uploadPathRegex - uploadPathRegex or null for nonepublic StaticFilesHandler set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic StaticFilesHandler clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2024 Google. All rights reserved.