mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-21 18:09:20 +00:00
Merged 5.1.N (5.1.2) to 5.2.N (5.2.1)
125605 rmunteanu: Merged 5.1.1 (5.1.1) to 5.1.N (5.1.2) 125498 slanglois: MNT-16155 Update source headers - remove svn:eol-style property on Java and JSP source files git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@125783 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1,31 +1,31 @@
|
||||
package org.alfresco.rest.api.tests;
|
||||
|
||||
import org.apache.chemistry.opencmis.server.impl.atompub.CmisAtomPubServlet;
|
||||
import org.eclipse.jetty.servlet.ServletHolder;
|
||||
import org.eclipse.jetty.webapp.WebAppContext;
|
||||
|
||||
/**
|
||||
* Manages an embedded jetty server, hooking it up to the repository spring context and providing
|
||||
* authenticated, tenant-based access through the tenant servlet.
|
||||
*
|
||||
* @author steveglover
|
||||
*
|
||||
*/
|
||||
public class EnterpriseJettyComponent extends PublicApiJettyComponent
|
||||
{
|
||||
public EnterpriseJettyComponent(int port, String contextPath, String[] configLocations, String[] classLocations)
|
||||
{
|
||||
super(port, contextPath, configLocations, classLocations);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void configureWebAppContext(WebAppContext webAppContext)
|
||||
{
|
||||
super.configureWebAppContext(webAppContext);
|
||||
|
||||
// the tenant servlet with alfresco managed authentication
|
||||
ServletHolder servletHolder = new ServletHolder(CmisAtomPubServlet.class);
|
||||
servletHolder.setInitParameter("callContextHandler", "org.apache.chemistry.opencmis.server.shared.BasicAuthCallContextHandler");
|
||||
webAppContext.addServlet(servletHolder, "/cmisatom/*");
|
||||
}
|
||||
}
|
||||
package org.alfresco.rest.api.tests;
|
||||
|
||||
import org.apache.chemistry.opencmis.server.impl.atompub.CmisAtomPubServlet;
|
||||
import org.eclipse.jetty.servlet.ServletHolder;
|
||||
import org.eclipse.jetty.webapp.WebAppContext;
|
||||
|
||||
/**
|
||||
* Manages an embedded jetty server, hooking it up to the repository spring context and providing
|
||||
* authenticated, tenant-based access through the tenant servlet.
|
||||
*
|
||||
* @author steveglover
|
||||
*
|
||||
*/
|
||||
public class EnterpriseJettyComponent extends PublicApiJettyComponent
|
||||
{
|
||||
public EnterpriseJettyComponent(int port, String contextPath, String[] configLocations, String[] classLocations)
|
||||
{
|
||||
super(port, contextPath, configLocations, classLocations);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void configureWebAppContext(WebAppContext webAppContext)
|
||||
{
|
||||
super.configureWebAppContext(webAppContext);
|
||||
|
||||
// the tenant servlet with alfresco managed authentication
|
||||
ServletHolder servletHolder = new ServletHolder(CmisAtomPubServlet.class);
|
||||
servletHolder.setInitParameter("callContextHandler", "org.apache.chemistry.opencmis.server.shared.BasicAuthCallContextHandler");
|
||||
webAppContext.addServlet(servletHolder, "/cmisatom/*");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user