|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.http.server.util.ARequestHandler
org.eclipse.smila.http.server.json.JsonRequestHandler
org.eclipse.smila.objectstore.httphandler.AStoreHandler
public abstract class AStoreHandler
base class for request handlers concerning objectstore access.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.smila.http.server.json.JsonRequestHandler |
|---|
FACTORY, HTTP_UTILS |
| Constructor Summary | |
|---|---|
AStoreHandler()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.eclipse.smila.http.server.json.JsonRequestHandler |
|---|
getRequestHost, getSuccessStatus, getSuccessStatus, handle, isValidMethod, process, writeErrorResult, writeResultObject, writeSuccessResult |
| Methods inherited from class org.eclipse.smila.http.server.util.ARequestHandler |
|---|
activate, getDynamicUriParts, getRootContextPath, getStaticUriParts, getUriPattern, matches, urlDecode |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AStoreHandler()
| Method Detail |
|---|
public 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 URI
protected java.lang.String getObjectId(java.lang.String requestUri)
requestUri - the request URI
protected 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)
|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||