public class BackendService
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BackendService.Properties
Resource object for general backend properties.
|
| Constructor and Description |
|---|
BackendService(java.lang.String minorVersion,
SystemService systemService,
BackendProperties backendProperties) |
BackendService(SystemService systemService) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<java.lang.String> |
getApiConfigs(java.lang.String expectedAppRevision)
Reads all WEB-INF/*.api files and return their contents in a list of strings.
|
BackendService.Properties |
getProperties()
Used to retrieve general properties of the backend such as expected project id.
|
void |
logMessages(com.google.api.server.spi.BackendService.MessageEntry[] messages)
Writes an array of messages to local log, each specified at its own level.
|
static void |
reloadApiConfigs()
Initiates a request to reload the current application's API configs.
|
public BackendService(SystemService systemService)
public BackendService(java.lang.String minorVersion,
SystemService systemService,
BackendProperties backendProperties)
public java.util.Collection<java.lang.String> getApiConfigs(java.lang.String expectedAppRevision)
throws InternalServerErrorException,
BadRequestException
expectedAppRevision - App revision client expects to seeInternalServerErrorExceptionBadRequestExceptionpublic static void reloadApiConfigs()
throws ServiceUnavailableException,
NotFoundException
public void logMessages(com.google.api.server.spi.BackendService.MessageEntry[] messages)
public BackendService.Properties getProperties()