Package org.alfresco.opencmis
Class CMISServletDispatcher
java.lang.Object
org.alfresco.opencmis.CMISServletDispatcher
- All Implemented Interfaces:
CMISDispatcher
- Direct Known Subclasses:
AtomPubCMISDispatcher,BrowserCMISDispatcher
Dispatches OpenCMIS requests to a servlet e.g. the OpenCMIS AtomPub servlet.
- Author:
- steveglover
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BaseUrlGeneratorprotected org.apache.chemistry.opencmis.commons.server.CmisServiceFactoryprotected org.apache.chemistry.opencmis.commons.enums.CmisVersionprotected CMISDispatcherRegistryprotected Stringprotected javax.servlet.http.HttpServletprotected TenantAdminServiceprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.WebScriptResponse res) protected abstract CMISDispatcherRegistry.Bindingprotected Descriptorprotected CMISHttpServletRequestgetHttpRequest(org.springframework.extensions.webscripts.WebScriptRequest req) protected CMISHttpServletResponsegetHttpResponse(org.springframework.extensions.webscripts.WebScriptResponse res) protected abstract javax.servlet.http.HttpServletprotected ObjectgetServletAttribute(String attrName) protected javax.servlet.ServletConfigvoidinit()booleanvoidsetAllowUnsecureCallbackJSONP(boolean allowUnsecureCallbackJSONP) voidsetBaseUrlGenerator(BaseUrlGenerator baseUrlGenerator) voidsetCmisServiceFactory(org.apache.chemistry.opencmis.commons.server.CmisServiceFactory cmisServiceFactory) voidsetCmisVersion(String cmisVersion) voidsetDescriptorService(DescriptorService descriptorService) voidsetNonAttachContentTypes(String nonAttachAllowListStr) voidsetRegistry(CMISDispatcherRegistry registry) voidsetServiceName(String serviceName) voidsetTenantAdminService(TenantAdminService tenantAdminService) voidsetVersion(String version)
-
Field Details
-
cmisServiceFactory
protected org.apache.chemistry.opencmis.commons.server.CmisServiceFactory cmisServiceFactory -
servlet
protected javax.servlet.http.HttpServlet servlet -
registry
-
serviceName
-
baseUrlGenerator
-
version
-
cmisVersion
protected org.apache.chemistry.opencmis.commons.enums.CmisVersion cmisVersion -
tenantAdminService
-
-
Constructor Details
-
CMISServletDispatcher
public CMISServletDispatcher()
-
-
Method Details
-
setTenantAdminService
-
setDescriptorService
-
setVersion
-
setBaseUrlGenerator
-
setRegistry
-
setCmisServiceFactory
public void setCmisServiceFactory(org.apache.chemistry.opencmis.commons.server.CmisServiceFactory cmisServiceFactory) -
setServiceName
-
getServiceName
-
setCmisVersion
-
setNonAttachContentTypes
-
getCurrentDescriptor
-
setAllowUnsecureCallbackJSONP
public void setAllowUnsecureCallbackJSONP(boolean allowUnsecureCallbackJSONP) -
isAllowUnsecureCallbackJSONP
public boolean isAllowUnsecureCallbackJSONP() -
init
public void init() -
getBinding
-
getServlet
protected abstract javax.servlet.http.HttpServlet getServlet() -
getServletAttribute
-
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
-