public abstract class AStoreHandler extends JsonRequestHandler
FACTORY, HEADER_REQUEST_HOST, HTTP_UTILS| Constructor and Description |
|---|
AStoreHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getErrorStatus(java.lang.String method,
java.lang.String requestUri,
java.lang.Throwable ex)
Select appropriate HTTP status codes for
ObjectStoreException and subclasses. |
protected java.lang.String |
getObjectId(java.lang.String requestUri)
Extracts the object id from the requestURI.
|
ObjectStoreService |
getObjectStoreService() |
protected java.lang.String |
getStoreName(java.lang.String requestUri)
Extracts the store name from the requestURI.
|
void |
setObjectStoreService(ObjectStoreService objectStoreService)
method for DS to set a service reference.
|
void |
unsetObjectStoreService(ObjectStoreService objectStoreService)
method for DS to unset a service reference.
|
getRequestHost, getSuccessStatus, getSuccessStatus, handle, isValidMethod, process, process, writeErrorResult, writeResultObject, writeSuccessResultactivate, getDynamicUriParts, getRootContextPath, getStaticUriParts, getUriPattern, matches, urlDecodepublic ObjectStoreService getObjectStoreService()
public void setObjectStoreService(ObjectStoreService objectStoreService)
objectStoreService - ObjectStoreService reference.public void unsetObjectStoreService(ObjectStoreService objectStoreService)
objectStoreService - ObjectStoreService reference.protected java.lang.String getStoreName(java.lang.String requestUri)
requestUri - the request URIprotected java.lang.String getObjectId(java.lang.String requestUri)
requestUri - the request URIprotected int getErrorStatus(java.lang.String method,
java.lang.String requestUri,
java.lang.Throwable ex)
ObjectStoreException and subclasses.getErrorStatus in class JsonRequestHandlerHTTP_UTILS#getErrorStatus(String, String, Throwable)