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 BaseUrlGeneratorbaseUrlGeneratorprotected org.apache.chemistry.opencmis.commons.server.CmisServiceFactorycmisServiceFactoryprotected org.apache.chemistry.opencmis.commons.enums.CmisVersioncmisVersionprotected CMISDispatcherRegistryregistryprotected StringserviceNameprotected javax.servlet.http.HttpServletservletprotected TenantAdminServicetenantAdminServiceprotected Stringversion
-
Constructor Summary
Constructors Constructor Description CMISServletDispatcher()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidexecute(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.WebScriptResponse res)protected abstract CMISDispatcherRegistry.BindinggetBinding()protected DescriptorgetCurrentDescriptor()protected CMISHttpServletRequestgetHttpRequest(org.springframework.extensions.webscripts.WebScriptRequest req)protected CMISHttpServletResponsegetHttpResponse(org.springframework.extensions.webscripts.WebScriptResponse res)StringgetServiceName()protected abstract javax.servlet.http.HttpServletgetServlet()protected ObjectgetServletAttribute(String attrName)protected javax.servlet.ServletConfiggetServletConfig()voidinit()voidsetBaseUrlGenerator(BaseUrlGenerator baseUrlGenerator)voidsetCmisServiceFactory(org.apache.chemistry.opencmis.commons.server.CmisServiceFactory cmisServiceFactory)voidsetCmisVersion(String cmisVersion)voidsetDescriptorService(DescriptorService descriptorService)voidsetNonAttachContentTypes(Set<String> nonAttachWhiteList)voidsetRegistry(CMISDispatcherRegistry registry)voidsetServiceName(String serviceName)voidsetTenantAdminService(TenantAdminService tenantAdminService)voidsetVersion(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)
-
getCurrentDescriptor
protected Descriptor getCurrentDescriptor()
-
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:
executein interfaceCMISDispatcher- Throws:
IOException
-
-