@Path(value="/cache/v1") public class CacheEndpoint extends info.magnolia.rest.AbstractEndpoint<CacheEndpointDefinition>
Modifier and Type | Field and Description |
---|---|
static String |
ASCENDING_ORDER |
static String |
DEFAULT_REST_URL |
static String |
DESCENDING_ORDER |
static String |
PROPERTY_CONTENT_TYPE |
static String |
PROPERTY_ERROR_MESSAGE |
static String |
PROPERTY_ORIGINAL_URL |
static String |
PROPERTY_PLAIN_CONTENT |
static String |
PROPERTY_SIZE |
static String |
PROPERTY_UNSUPPORTED_CACHED_ENTRY_TYPE |
Constructor and Description |
---|
CacheEndpoint(CacheEndpointDefinition endpointDefinition,
info.magnolia.module.cache.inject.CacheFactoryProvider cacheFactoryProvider,
info.magnolia.i18nsystem.SimpleTranslator i18n)
Deprecated.
since 5.5.3, Please use
CacheEndpoint(CacheEndpointDefinition, CacheFactoryProvider, SimpleTranslator, CacheBrowserAppModule) instead. |
CacheEndpoint(CacheEndpointDefinition endpointDefinition,
info.magnolia.module.cache.inject.CacheFactoryProvider cacheFactoryProvider,
info.magnolia.i18nsystem.SimpleTranslator i18n,
CacheBrowserAppModule module) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
delete(String cacheName,
String json) |
javax.ws.rs.core.Response |
getAllKeys(String cacheName) |
javax.ws.rs.core.Response |
getCacheContent(String cacheName,
String json) |
javax.ws.rs.core.Response |
getCacheSize(String cacheName) |
javax.ws.rs.core.Response |
getKeys(String cacheName,
int offset,
int pageLength,
String sortOrder,
String sortProperty) |
javax.ws.rs.core.Response |
ping() |
public static final String DEFAULT_REST_URL
public static final String PROPERTY_ERROR_MESSAGE
public static final String PROPERTY_SIZE
public static final String PROPERTY_ORIGINAL_URL
public static final String PROPERTY_CONTENT_TYPE
public static final String PROPERTY_PLAIN_CONTENT
public static final String PROPERTY_UNSUPPORTED_CACHED_ENTRY_TYPE
public static final String ASCENDING_ORDER
public static final String DESCENDING_ORDER
@Inject public CacheEndpoint(CacheEndpointDefinition endpointDefinition, info.magnolia.module.cache.inject.CacheFactoryProvider cacheFactoryProvider, info.magnolia.i18nsystem.SimpleTranslator i18n, CacheBrowserAppModule module)
@Deprecated public CacheEndpoint(CacheEndpointDefinition endpointDefinition, info.magnolia.module.cache.inject.CacheFactoryProvider cacheFactoryProvider, info.magnolia.i18nsystem.SimpleTranslator i18n)
CacheEndpoint(CacheEndpointDefinition, CacheFactoryProvider, SimpleTranslator, CacheBrowserAppModule)
instead.@GET @Path(value="/ping") @Produces(value="application/json") public javax.ws.rs.core.Response ping()
@GET @Path(value="/{cacheName}/getAll") @Produces(value="application/json") public javax.ws.rs.core.Response getAllKeys(@PathParam(value="cacheName") String cacheName)
@GET @Path(value="/{cacheName}/get") @Produces(value="application/json") public javax.ws.rs.core.Response getKeys(@PathParam(value="cacheName") String cacheName, @QueryParam(value="offset") int offset, @QueryParam(value="pageLength") int pageLength, @QueryParam(value="sortOrder") String sortOrder, @QueryParam(value="sortProperty") String sortProperty)
@GET @Path(value="/{cacheName}/size") @Produces(value="application/json") public javax.ws.rs.core.Response getCacheSize(@PathParam(value="cacheName") String cacheName)
@DELETE @Path(value="/{cacheName}/delete") public javax.ws.rs.core.Response delete(@PathParam(value="cacheName") String cacheName, @QueryParam(value="cacheKey") String json)
Copyright © 2017 Magnolia International Ltd.. All rights reserved.