use of org.apache.jackrabbit.webdav.simple.SimpleWebdavServlet in project jackrabbit-oak by apache.
the class RemotingInitializer method webDavServlet.
@Bean
public ServletRegistrationBean webDavServlet() {
ServletRegistrationBean bean = new ServletRegistrationBean(new SimpleWebdavServlet() {
@Override
public Repository getRepository() {
return repository;
}
@Override
public ServletContext getServletContext() {
return RemotingInitializer.this.getServletContext();
}
}, "/repository/*");
bean.addInitParameter(SimpleWebdavServlet.INIT_PARAM_RESOURCE_PATH_PREFIX, "/repository");
bean.addInitParameter(SimpleWebdavServlet.INIT_PARAM_RESOURCE_CONFIG, "/remoting/webdav-config.xml");
return bean;
}
Aggregations