public abstract class BaseResourceRequestHandler extends java.lang.Object implements ResourceRequestHandler, RestConstants
COMPACT, DROPNULLS, ENDSWITH, EQUALS, EXACTMATCH, EXCLUDECOLS, FILTERDOMAIN, FILTERDOMAIN_ORG, FILTERDOMAIN_SITE, FORM_PARAM_ROWSTAMP, GENERIC, GLCOMP, GRATERTHAN, GRATERTHANEQUALS, INCLUDECOLS, KEYS, LANGCODE, LESSTHAN, LESSTHANEQUALS, LOCALE, LOGINID, LOGINPASSWORD, MAXAUTHTOKEN, MAXITEMS, MAXUSER, METADATA, MXRESTSESSION, NOTEQUALS, OPERATION_PARAM_NS, OPMODEOR, ORDERBY, ORDERBYASC, ORDERBYDESC, PAGE, QUERY_OPERATION, REFRESH_LOCALE, RELATED_ATTRBUTE, RELEASE_RESOURCE_REQUEST, RESOURCE_LOCATOR_ID, REST_LOGGER, RESTSESSION, RETAINMBOS, ROOTONLY, RSSTART, SESSION_OSMSGTYPE, STARTSSWITH, TENANTCODE, TIMEZONE, USE_LOCATION_FOR_CREATE, USE_SESSION_FOR_COLLECTION, USE_TOTAL_COUNT, USER_WHERE, USER_WHERE_POLICY_ALLOW, USER_WHERE_POLICY_BLOCK, USER_WHERE_POLICY_PARSE, USEROWSTAMP, VALIDATE_XML_TEXT, VERBOSE
Constructor and Description |
---|
BaseResourceRequestHandler() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDelagateHandler(java.lang.String resourceType,
java.lang.String resourceName) |
ResourceResponse |
handleRequest(ResourceRequest req)
This method will be called to handle the REST resquest for POST/GET/PUT/DELETE
|
boolean |
isRequestNoCache(ResourceRequest req) |
boolean |
isResourceModified(Resource resource,
ResourceRequest request) |
boolean |
isRoot() |
boolean |
isUseCache(Resource res,
ResourceRequest req) |
void |
setBlockAccessList(java.util.Set<java.lang.String> blockAccessList) |
void |
setHandlerName(java.lang.String handlerName) |
void |
setMXSession(MXSession mxSession) |
void |
setRoot(boolean rootHandler) |
public void setBlockAccessList(java.util.Set<java.lang.String> blockAccessList)
setBlockAccessList
in interface ResourceRequestHandler
public boolean isRequestNoCache(ResourceRequest req)
public boolean isUseCache(Resource res, ResourceRequest req) throws java.rmi.RemoteException, MXApplicationException
java.rmi.RemoteException
MXApplicationException
public boolean isResourceModified(Resource resource, ResourceRequest request)
public void setMXSession(MXSession mxSession)
setMXSession
in interface ResourceRequestHandler
ResourceRequestHandler.setMXSession(psdi.util.MXSession)
public void setHandlerName(java.lang.String handlerName)
setHandlerName
in interface ResourceRequestHandler
public java.lang.String getDelagateHandler(java.lang.String resourceType, java.lang.String resourceName)
public ResourceResponse handleRequest(ResourceRequest req) throws java.rmi.RemoteException, MXException
ResourceRequestHandler
handleRequest
in interface ResourceRequestHandler
req
- The REST request object which contains information from the HttpServletRequest objectjava.rmi.RemoteException
MXException
public boolean isRoot()
isRoot
in interface ResourceRequestHandler
public void setRoot(boolean rootHandler)
setRoot
in interface ResourceRequestHandler