Return-Path: X-Original-To: apmail-chemistry-dev-archive@www.apache.org Delivered-To: apmail-chemistry-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 06DFA18C2D for ; Thu, 9 Jul 2015 06:56:31 +0000 (UTC) Received: (qmail 95049 invoked by uid 500); 9 Jul 2015 06:56:30 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 94987 invoked by uid 500); 9 Jul 2015 06:56:30 -0000 Mailing-List: contact dev-help@chemistry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@chemistry.apache.org Delivered-To: mailing list dev@chemistry.apache.org Received: (qmail 94976 invoked by uid 99); 9 Jul 2015 06:56:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jul 2015 06:56:30 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mkrieken@hotmail.com designates 157.55.2.27 as permitted sender) Received: from [157.55.2.27] (HELO DUB004-OMC3S18.hotmail.com) (157.55.2.27) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jul 2015 06:54:14 +0000 Received: from DUB124-W26 ([157.55.2.8]) by DUB004-OMC3S18.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Wed, 8 Jul 2015 23:56:01 -0700 X-TMN: [Kfx3F4r/l0xmcf82dlYtPgzC2vIhtGmc] X-Originating-Email: [mkrieken@hotmail.com] Message-ID: Content-Type: multipart/alternative; boundary="_c537dffa-d6a0-4a58-a1ff-f438c74224d9_" From: martin krieken To: "dev@chemistry.apache.org" Subject: Cmisservlet init param Date: Thu, 9 Jul 2015 08:56:01 +0200 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 09 Jul 2015 06:56:01.0677 (UTC) FILETIME=[511DE3D0:01D0BA14] X-Virus-Checked: Checked by ClamAV on apache.org --_c537dffa-d6a0-4a58-a1ff-f438c74224d9_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I am a java programmer and i currently i working myself into spring 4 (with= java 8). I am trying to build a Dam and a cmis connector would be a really nice feature to have esp with the connector with Adobe drive. I looked into the project and esp into the inmemory setup. I was able to co= nnect a spring project but i encounterd some thing that were not compatible with the non-xml setup i am trying to run. I was able to get it = running but with some overriding etc=2C but i would really like to avoid it if posible. One of the things that is currently set as an init param on the servlet usi= ng the xml setup is the Cmisversion.=20 Both versions use the same servlet and it then sets the version based on th= e init param. Would it be posible to make those functions public or maybe p= ass the version in using a constructor? CmisWebServicesServlet servlet =3D new CmisWebServicesServlet()=3B servlet.setCmisVersion("1.0") //Or a double maybe..dunno how the nummering = goes I am using a setup where i use spring in combination with a non-xml setup. = Currently i do something likes this public class CmisInitializer implements WebApplicationInitializer { public void onStartup(ServletContext servletContext){ WebApplicationContext context =3D getContext()=3B =20 servletContext.addListener(new ContextLoaderListener(contex= t))=3B ServletRegistration.Dynamic dispatcher =3D context.addServl= et(name=2C new SpringCmisWebServicesServlet(version))=3B =20 dispatcher.setLoadOnStartup(1)=3B dispatcher.setAsyncSupported(true)=3B dispatcher.addMapping(mapping)=3B =20 } } Currently i made a SpringCmisWebServicesServlet where i could pass it in us= ing a constructor=2C but having a function would be maybe more clear for th= e future. Kind Regards=2C Martin van Krieken = --_c537dffa-d6a0-4a58-a1ff-f438c74224d9_--