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.Flags
Constructor and Description |
---|
StaticFilesHandler() |
Modifier and Type | Method and Description |
---|---|
StaticFilesHandler |
clone() |
java.lang.Boolean |
getApplicationReadable()
Whether files should also be uploaded as code data.
|
java.lang.String |
getExpiration()
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()
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.Defaults to file-specific MIME types,
which are derived from each file's filename extension.
|
java.lang.String |
getPath()
Path to the static files matched by the URL pattern, from the application root directory.
|
java.lang.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.
|
StaticFilesHandler |
set(java.lang.String fieldName,
java.lang.Object value) |
StaticFilesHandler |
setApplicationReadable(java.lang.Boolean applicationReadable)
Whether files should also be uploaded as code data.
|
StaticFilesHandler |
setExpiration(java.lang.String expiration)
Time a static file served by this handler should be cached by web proxies and browsers.
|
StaticFilesHandler |
setHttpHeaders(java.util.Map<java.lang.String,java.lang.String> httpHeaders)
HTTP headers to use for all responses from these URLs.
|
StaticFilesHandler |
setMimeType(java.lang.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(java.lang.String path)
Path to the static files matched by the URL pattern, from the application root directory.
|
StaticFilesHandler |
setRequireMatchingFile(java.lang.Boolean requireMatchingFile)
Whether this handler should match the request if the file referenced by the handler does not
exist.
|
StaticFilesHandler |
setUploadPathRegex(java.lang.String uploadPathRegex)
Regular expression that matches the file paths for all files that should be referenced by this
handler.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.Boolean getApplicationReadable()
null
for nonepublic StaticFilesHandler setApplicationReadable(java.lang.Boolean applicationReadable)
applicationReadable
- applicationReadable or null
for nonepublic java.lang.String getExpiration()
null
for nonepublic StaticFilesHandler setExpiration(java.lang.String expiration)
expiration
- expiration or null
for nonepublic java.util.Map<java.lang.String,java.lang.String> getHttpHeaders()
null
for nonepublic StaticFilesHandler setHttpHeaders(java.util.Map<java.lang.String,java.lang.String> httpHeaders)
httpHeaders
- httpHeaders or null
for nonepublic java.lang.String getMimeType()
null
for nonepublic StaticFilesHandler setMimeType(java.lang.String mimeType)
mimeType
- mimeType or null
for nonepublic java.lang.String getPath()
null
for nonepublic StaticFilesHandler setPath(java.lang.String path)
path
- path or null
for nonepublic java.lang.Boolean getRequireMatchingFile()
null
for nonepublic StaticFilesHandler setRequireMatchingFile(java.lang.Boolean requireMatchingFile)
requireMatchingFile
- requireMatchingFile or null
for nonepublic java.lang.String getUploadPathRegex()
null
for nonepublic StaticFilesHandler setUploadPathRegex(java.lang.String uploadPathRegex)
uploadPathRegex
- uploadPathRegex or null
for nonepublic StaticFilesHandler set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public StaticFilesHandler clone()
clone
in class com.google.api.client.json.GenericJson