throw new ServletException("Could not load call context handler: " + e, e);
}
}
// get memory threshold and temp directory
CmisServiceFactory factory = (CmisServiceFactory) config.getServletContext().getAttribute(
CmisRepositoryContextListener.SERVICES_FACTORY);
if (factory == null) {
throw new CmisRuntimeException("Service factory not available! Configuration problem?");
}
tempDir = factory.getTempDirectory();
memoryThreshold = factory.getMemoryThreshold();
maxContentSize = factory.getMaxContentSize();
encrypt = factory.encryptTempFiles();
// initialize the dispatchers
repositoryDispatcher = new Dispatcher(false);
rootDispatcher = new Dispatcher(false);