Package com.google.gerrit.server.config
Class ConfigResource
- java.lang.Object
-
- com.google.gerrit.server.config.ConfigResource
-
- All Implemented Interfaces:
RestResource
- Direct Known Subclasses:
CacheResource
,CapabilityResource
,TaskResource
,TopMenuResource
public class ConfigResource extends Object implements RestResource
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.google.gerrit.extensions.restapi.RestResource
RestResource.HasETag, RestResource.HasLastModified
-
-
Field Summary
Fields Modifier and Type Field Description static com.google.inject.TypeLiteral<RestView<ConfigResource>>
CONFIG_KIND
static CacheControl
DEFAULT_CACHE_CONTROL
Default cache control that gets set on the 'Cache-Control' header for responses on this resource that are cacheable.
-
Constructor Summary
Constructors Constructor Description ConfigResource()
-
-
-
Field Detail
-
CONFIG_KIND
public static final com.google.inject.TypeLiteral<RestView<ConfigResource>> CONFIG_KIND
-
DEFAULT_CACHE_CONTROL
public static CacheControl DEFAULT_CACHE_CONTROL
Default cache control that gets set on the 'Cache-Control' header for responses on this resource that are cacheable.Not all resources are cacheable and in fact the vast majority might not be. Caching is a trade-off between the freshness of data and the number of QPS that the web UI sends.
-
-