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 Details

    • 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
  • Constructor Details

    • CMISServletDispatcher

      public CMISServletDispatcher()
  • Method Details

    • 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(Set<String> nonAttachWhiteList)
    • getCurrentDescriptor

      protected Descriptor getCurrentDescriptor()
    • init

      public void init()
    • getBinding

      protected abstract CMISDispatcherRegistry.Binding getBinding()
    • getServlet

      protected abstract javax.servlet.http.HttpServlet getServlet()
    • getServletAttribute

      protected Object getServletAttribute(String attrName)
    • 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 interface CMISDispatcher
      Throws:
      IOException