public class StoreAdminHandler extends AStoreHandler
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PARAM_RETURNOBJECTS
parameter to switch on or off list of objects in store info.
|
FACTORY, HEADER_REQUEST_HOST, HTTP_UTILS| Constructor and Description |
|---|
StoreAdminHandler()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
getSuccessStatus(java.lang.String method,
java.lang.String requestUri)
for PUT and DELETE, success status is
HttpStatus.CREATED. |
protected boolean |
isValidMethod(java.lang.String method,
java.lang.String requestUri)
Valid methods are GET (store info), PUT (create store) or DELETE (remove store).
|
java.lang.Object |
process(java.lang.String method,
java.lang.String requestUri,
Record parameters)
process input record and return result object.
|
getErrorStatus, getObjectId, getObjectStoreService, getStoreName, setObjectStoreService, unsetObjectStoreServicegetRequestHost, getSuccessStatus, handle, process, writeErrorResult, writeResultObject, writeSuccessResultactivate, getDynamicUriParts, getRootContextPath, getStaticUriParts, getUriPattern, matches, urlDecodepublic static final java.lang.String PARAM_RETURNOBJECTS
protected boolean isValidMethod(java.lang.String method,
java.lang.String requestUri)
isValidMethod in class JsonRequestHandlermethod - HTTP methodrequestUri - request URIprotected int getSuccessStatus(java.lang.String method,
java.lang.String requestUri)
HttpStatus.CREATED.
getSuccessStatus in class JsonRequestHandlermethod - HTTP methodrequestUri - request URIpublic java.lang.Object process(java.lang.String method,
java.lang.String requestUri,
Record parameters)
throws ObjectStoreException
process in class JsonRequestHandlermethod - HTTP methodrequestUri - request URI.parameters - input record parsed either from request body, if it has content, or from request URI parameters.ObjectStoreException