Package org.alfresco.opencmis
Class CMISServletDispatcher
- java.lang.Object
-
- org.alfresco.opencmis.CMISServletDispatcher
-
- All Implemented Interfaces:
CMISDispatcher
- Direct Known Subclasses:
AtomPubCMISDispatcher
,BrowserCMISDispatcher
public abstract class CMISServletDispatcher extends Object implements CMISDispatcher
Dispatches OpenCMIS requests to a servlet e.g. the OpenCMIS AtomPub servlet.- Author:
- steveglover
-
-
Field Summary
Fields Modifier and Type Field Description protected BaseUrlGenerator
baseUrlGenerator
protected org.apache.chemistry.opencmis.commons.server.CmisServiceFactory
cmisServiceFactory
protected org.apache.chemistry.opencmis.commons.enums.CmisVersion
cmisVersion
protected CMISDispatcherRegistry
registry
protected String
serviceName
protected javax.servlet.http.HttpServlet
servlet
protected TenantAdminService
tenantAdminService
protected String
version
-
Constructor Summary
Constructors Constructor Description CMISServletDispatcher()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
execute(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.WebScriptResponse res)
protected abstract CMISDispatcherRegistry.Binding
getBinding()
protected Descriptor
getCurrentDescriptor()
protected CMISHttpServletRequest
getHttpRequest(org.springframework.extensions.webscripts.WebScriptRequest req)
protected CMISHttpServletResponse
getHttpResponse(org.springframework.extensions.webscripts.WebScriptResponse res)
String
getServiceName()
protected abstract javax.servlet.http.HttpServlet
getServlet()
protected Object
getServletAttribute(String attrName)
protected javax.servlet.ServletConfig
getServletConfig()
void
init()
boolean
isAllowUnsecureCallbackJSONP()
void
setAllowUnsecureCallbackJSONP(boolean allowUnsecureCallbackJSONP)
void
setBaseUrlGenerator(BaseUrlGenerator baseUrlGenerator)
void
setCmisServiceFactory(org.apache.chemistry.opencmis.commons.server.CmisServiceFactory cmisServiceFactory)
void
setCmisVersion(String cmisVersion)
void
setDescriptorService(DescriptorService descriptorService)
void
setNonAttachContentTypes(String nonAttachAllowListStr)
void
setRegistry(CMISDispatcherRegistry registry)
void
setServiceName(String serviceName)
void
setTenantAdminService(TenantAdminService tenantAdminService)
void
setVersion(String version)
-
-
-
Field Detail
-
cmisServiceFactory
protected org.apache.chemistry.opencmis.commons.server.CmisServiceFactory cmisServiceFactory
-
servlet
protected javax.servlet.http.HttpServlet servlet
-
registry
protected CMISDispatcherRegistry registry
-
serviceName
protected String serviceName
-
baseUrlGenerator
protected BaseUrlGenerator baseUrlGenerator
-
version
protected String version
-
cmisVersion
protected org.apache.chemistry.opencmis.commons.enums.CmisVersion cmisVersion
-
tenantAdminService
protected TenantAdminService tenantAdminService
-
-
Method Detail
-
setTenantAdminService
public void setTenantAdminService(TenantAdminService tenantAdminService)
-
setDescriptorService
public void setDescriptorService(DescriptorService descriptorService)
-
setVersion
public void setVersion(String version)
-
setBaseUrlGenerator
public void setBaseUrlGenerator(BaseUrlGenerator baseUrlGenerator)
-
setRegistry
public void setRegistry(CMISDispatcherRegistry registry)
-
setCmisServiceFactory
public void setCmisServiceFactory(org.apache.chemistry.opencmis.commons.server.CmisServiceFactory cmisServiceFactory)
-
setServiceName
public void setServiceName(String serviceName)
-
getServiceName
public String getServiceName()
-
setCmisVersion
public void setCmisVersion(String cmisVersion)
-
setNonAttachContentTypes
public void setNonAttachContentTypes(String nonAttachAllowListStr)
-
getCurrentDescriptor
protected Descriptor getCurrentDescriptor()
-
setAllowUnsecureCallbackJSONP
public void setAllowUnsecureCallbackJSONP(boolean allowUnsecureCallbackJSONP)
-
isAllowUnsecureCallbackJSONP
public boolean isAllowUnsecureCallbackJSONP()
-
init
public void init()
-
getBinding
protected abstract CMISDispatcherRegistry.Binding getBinding()
-
getServlet
protected abstract javax.servlet.http.HttpServlet getServlet()
-
getServletConfig
protected javax.servlet.ServletConfig getServletConfig()
-
getHttpRequest
protected CMISHttpServletRequest getHttpRequest(org.springframework.extensions.webscripts.WebScriptRequest req)
-
getHttpResponse
protected CMISHttpServletResponse getHttpResponse(org.springframework.extensions.webscripts.WebScriptResponse res)
-
execute
public void execute(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.WebScriptResponse res) throws IOException
- Specified by:
execute
in interfaceCMISDispatcher
- Throws:
IOException
-
-