Author: jens
Date: Wed Mar  7 13:33:45 2012
New Revision: 1297968

URL: http://svn.apache.org/viewvc?rev=1297968&view=rev
Log:
https://svn.apache.org/repos/asf/chemistry/playground

Added:
    chemistry/playground/cmisdemo/
    chemistry/playground/cmisdemo/_setenv.bat
    chemistry/playground/cmisdemo/build.xml
    chemistry/playground/cmisdemo/readme.txt
    chemistry/playground/cmisdemo/zipsrc/
    chemistry/playground/cmisdemo/zipsrc/_setenv.bat
    chemistry/playground/cmisdemo/zipsrc/_start.bat
    chemistry/playground/cmisdemo/zipsrc/apache-tomcat-6.0.20/
    chemistry/playground/cmisdemo/zipsrc/chemistry/
    chemistry/playground/cmisdemo/zipsrc/chemistry/inmemory/
    
chemistry/playground/cmisdemo/zipsrc/chemistry/inmemory/repository.properties
    chemistry/playground/cmisdemo/zipsrc/chemistry/inmemory/web.xml
    chemistry/playground/cmisdemo/zipsrc/chemistry/root/
    chemistry/playground/cmisdemo/zipsrc/chemistry/root/asf_logo.png   (with 
props)
    
chemistry/playground/cmisdemo/zipsrc/chemistry/root/chemistry_logo_small.png   
(with props)
    chemistry/playground/cmisdemo/zipsrc/chemistry/root/index-both.jsp
    chemistry/playground/cmisdemo/zipsrc/chemistry/root/index-jsclient.jsp
    chemistry/playground/cmisdemo/zipsrc/chemistry/root/index-publicserver.jsp
    chemistry/playground/cmisdemo/zipsrc/chemistry/workbench/
    chemistry/playground/cmisdemo/zipsrc/chemistry/workbench/CMISWorkbench.jnlp
    chemistry/playground/cmisdemo/zipsrc/jdk1.6.0_30/

Added: chemistry/playground/cmisdemo/_setenv.bat
URL: 
http://svn.apache.org/viewvc/chemistry/playground/cmisdemo/_setenv.bat?rev=1297968&view=auto
==============================================================================
--- chemistry/playground/cmisdemo/_setenv.bat (added)
+++ chemistry/playground/cmisdemo/_setenv.bat Wed Mar  7 13:33:45 2012
@@ -0,0 +1,5 @@
+set JAVA_HOME=D:\Java\jdk1.6.0_22-x64
+set ANT_HOME=D:\Java\apache-ant-1.8.2
+set MAVEN_HOME=D:\Java\apache-maven-3.0.3
+REM set MAVEN_HOME=D:\Java\apache-maven-2.2.1
+set PATH=%MAVEN_HOME%\bin;%ANT_HOME%\bin;%JAVA_HOME%\bin;%PATH%

Added: chemistry/playground/cmisdemo/build.xml
URL: 
http://svn.apache.org/viewvc/chemistry/playground/cmisdemo/build.xml?rev=1297968&view=auto
==============================================================================
--- chemistry/playground/cmisdemo/build.xml (added)
+++ chemistry/playground/cmisdemo/build.xml Wed Mar  7 13:33:45 2012
@@ -0,0 +1,111 @@
+<!-- 
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
+<project name="CMIS-Packaging" default="buildall" basedir=".">
+
+       <property name="target.name" value="cmisdemo.zip" />
+       <property name="src.dir" value="./zipsrc" />
+       <property name="work.dir" value="work"/>
+       <property name="temp.dir" value="temp"/>
+       <property name="chemistry.dir" value="d:/jens/workspace-apache" />
+       <property name="unzip-destination" value="unzipped" />
+    <property name="chemistry.version" value="0.7.0-SNAPSHOT" />
+    <property name="tomcat.src.dir" value="apache-tomcat-6.0.20" />
+    <property name="jdk.src.dir" value="jdk1.6.0_30" />
+        
+       <target name="clean">
+               <delete file="${project-name}.zip" />
+               <delete dir="${work.dir}" />
+               <delete dir="${temp.dir}" />
+       </target>
+
+    <target name="buildroot" description="Build root application"> 
+        <copy todir="${temp.dir}/ROOT" overwrite="true" >
+            <fileset dir="${src.dir}/chemistry/root">
+                <include name="*.png"/>
+            </fileset>        
+        </copy>
+        <copy file="${src.dir}/chemistry/root/${root.jsp}" 
tofile="${temp.dir}/ROOT/index.jsp" overwrite="true" />
+               <zip destfile="${work.dir}/ROOT.war" basedir="${temp.dir}/ROOT" 
/>
+    </target>
+
+
+    <target name="buildjsclient" description="Javascript Client"> 
+        <copy 
file="${chemistry.dir}/chemistry-opencmis-javascript-client/target/chemistry-opencmis-javascript-client-${chemistry.version}.war"
+              tofile="${work.dir}/jsclient.war" overwrite="true" />
+    </target>
+    
+    <target name="buildinmemory" description="InMemory Web Application"> 
+        <copy 
file="${chemistry.dir}/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/target/chemistry-opencmis-server-inmemory-${chemistry.version}.war"
+              tofile="${work.dir}/inmemory.war" overwrite="true" />
+               <touch file="${src.dir}/chemistry/inmemory/web.xml"/>
+               <touch 
file="${src.dir}/chemistry/inmemory/repository.properties"/>
+               <war destfile="${work.dir}/inmemory.war" update="true">
+            <webinf file="${src.dir}/chemistry/inmemory/web.xml"/>
+            <classes 
file="${src.dir}/chemistry/inmemory/repository.properties"/>
+        </war>
+    </target>
+    
+       <target name="set-jsclient">
+        <property name="root.jsp" value="index-jsclient.jsp" />
+       </target>
+
+       <target name="set-publicserver">
+        <property name="root.jsp" value="index-publicserver.jsp" />
+       </target>
+
+       <target name="set-both">
+        <property name="root.jsp" value="index-both.jsp" />
+       </target>
+
+       <target name="buildzip" depends="buildroot, buildinmemory">
+               <zip destfile="${target.name}" update="true">
+            <fileset dir="${src.dir}/" >
+                <include name="*.bat"/>
+            </fileset>
+            <zipfileset dir="${src.dir}/${jdk.src.dir}" 
prefix="${jdk.src.dir}" />
+            <zipfileset dir="${src.dir}/${tomcat.src.dir}" 
prefix="${tomcat.src.dir}" />
+            <zipfileset dir="${work.dir}/" prefix="${tomcat.src.dir}/webapps" >
+                <include name="*.war"/>
+            </zipfileset>
+        </zip>
+       </target>
+
+    <target name="buildworkbench" description="Workbench webstart 
application"> 
+        <copy 
file="${chemistry.dir}/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/target/chemistry-opencmis-workbench-webstart-${chemistry.version}.war"
+              tofile="${work.dir}/workbench.war" overwrite="true" />
+               <touch 
file="${src.dir}/chemistry/workbench/CMISWorkbench.jnlp"/>
+        <war destfile="${work.dir}/workbench.war" update="true" >
+            <zipfileset 
file="${src.dir}/chemistry/workbench/CMISWorkbench.jnlp" prefix="workbench"/> 
<!-- must contain target server name, etc. -->
+        </war>
+    </target>
+    
+    <target name="buildbrowser" description="CMIS Browser application"> 
+        <copy 
file="${chemistry.dir}/chemistry-opencmis-test/chemistry-opencmis-test-browser-app/target/chemistry-opencmis-test-browser-app-${chemistry.version}.war"
+              tofile="${work.dir}/cmis-browser.war" overwrite="true" />
+    </target>
+
+       <target name="buildzip-jsclient" depends="set-jsclient, buildjsclient, 
buildzip">
+       </target>
+
+       <target name="buildzip-publicserver" depends="set-publicserver, 
buildworkbench, buildbrowser, buildzip">
+       </target>
+
+       <target name="buildall" depends="set-both, buildjsclient, 
buildworkbench, buildbrowser, buildzip">
+       </target>
+</project>
\ No newline at end of file

Added: chemistry/playground/cmisdemo/readme.txt
URL: 
http://svn.apache.org/viewvc/chemistry/playground/cmisdemo/readme.txt?rev=1297968&view=auto
==============================================================================
--- chemistry/playground/cmisdemo/readme.txt (added)
+++ chemistry/playground/cmisdemo/readme.txt Wed Mar  7 13:33:45 2012
@@ -0,0 +1,54 @@
+<!-- 
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
+
+This is a build script to generate a zip file containing a standalone CMIS 
dsistribution with no external dependencies.
+Prerequisites:
+checked-out latest sources from Apache subversion 
https://svn.apache.org/repos/asf/chemistry/opencmis/trunk/
+Run mvn install
+cd chemistry-opencmis-workbench\chemistry-opencmis-workbench-webstart
+mvn package
+
+For the Javascript client
+get sources from subversion 
https://svn.apache.org/repos/asf/chemistry/playground/chemistry-opencmis-javascript-client
+
+use the following structure to create a source tree
+
+--- build.xml
++--- zipsrc
+       +--- apache-tomcat-6.0.20         // copy an expanded Tomcat 
distribution package here
+       +--- jdk1.6.0_30                         // copy a Java JDK here 
+       ...
+
+You can tweak other files in the zipsrc directory according to your needs 
(web.xml, repository.properties etc.)
+
+Run one of following commands:
+ant buildzip-jsclient                       // creates a zip file containing 
InMemory server and Javascript client
+ant buildzip-publicserver              // creates a zip file containing 
InMemory (with public server settings,
+                                                        // browser client and 
CMIS Workbench as Java webstart
+ant buildall                                     // creates a zip file 
containing all of the above
+ant clean                                        // remove all generated files
+
+Ouput is a file cmisdemo.zip that you can unzip to an arbitary location. You 
can run a batch file _start.bat from there
+and open a browser with the page http://localhost:8080
+
+Note: If version numbers change please adjust properies in build.xml AND 
_start.bat
+
+
+
+   
\ No newline at end of file

Added: chemistry/playground/cmisdemo/zipsrc/_setenv.bat
URL: 
http://svn.apache.org/viewvc/chemistry/playground/cmisdemo/zipsrc/_setenv.bat?rev=1297968&view=auto
==============================================================================
--- chemistry/playground/cmisdemo/zipsrc/_setenv.bat (added)
+++ chemistry/playground/cmisdemo/zipsrc/_setenv.bat Wed Mar  7 13:33:45 2012
@@ -0,0 +1,6 @@
+set JAVA_HOME=.\jdk1.6.0_22-x64
+set TOMCAT_HOME=.\apache-tomcat-6.0.20
+IF "%PATHEXTENDED%" == "1" GOTO end
+set PATH=%JAVA_HOME%\bin;%TOMCAT_HOME%\bin;%PATH%;
+set PATHEXTENDED=1
+:end
\ No newline at end of file

Added: chemistry/playground/cmisdemo/zipsrc/_start.bat
URL: 
http://svn.apache.org/viewvc/chemistry/playground/cmisdemo/zipsrc/_start.bat?rev=1297968&view=auto
==============================================================================
--- chemistry/playground/cmisdemo/zipsrc/_start.bat (added)
+++ chemistry/playground/cmisdemo/zipsrc/_start.bat Wed Mar  7 13:33:45 2012
@@ -0,0 +1,4 @@
+call _setenv.bat
+set CATALINA_HOME=%TOMCAT_HOME%
+echo "Starting Tomcat. Then open a browser with address http://localhost:8080";
+catalina run
\ No newline at end of file

Added: 
chemistry/playground/cmisdemo/zipsrc/chemistry/inmemory/repository.properties
URL: 
http://svn.apache.org/viewvc/chemistry/playground/cmisdemo/zipsrc/chemistry/inmemory/repository.properties?rev=1297968&view=auto
==============================================================================
--- 
chemistry/playground/cmisdemo/zipsrc/chemistry/inmemory/repository.properties 
(added)
+++ 
chemistry/playground/cmisdemo/zipsrc/chemistry/inmemory/repository.properties 
Wed Mar  7 13:33:45 2012
@@ -0,0 +1,59 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+# 
+#      http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+class=org.apache.chemistry.opencmis.inmemory.server.InMemoryServiceFactoryImpl
+
+repository.id=dummy-rep
+repository.name=Dummy Repository
+
+# In Memory Settings
+InMemoryServer.RepositoryId=A1
+# 
InMemoryServer.RepositoryInfoCreatorClass=org.apache.chemistry.opencmis.client.provider.inmemory.UnitTestRepositoryInfo
+InMemoryServer.User=dummyuser
+InMemoryServer.Password=dummysecret
+InMemoryServer.TypesCreatorClass=org.apache.chemistry.opencmis.inmemory.types.DefaultTypeSystemCreator
+InMemoryServer.TypeDefinitionsFile=types.xml
+# settings for public server
+InMemoryServer.MaxContentSizeKB=4096
+InMemoryServer.CleanIntervalMinutes=240
+
+# settings for init repository with data
+  # enable or disable
+RepositoryFiller.Enable=true
+  # Type id of documents that are created
+RepositoryFiller.DocumentTypeId=ComplexType
+  # Type id of folders that are created
+RepositoryFiller.FolderTypeId=cmis:folder
+  # Number of documents created per folder
+RepositoryFiller.DocsPerFolder=3
+  # Number of folders created per folder
+RepositoryFiller.FolderPerFolder=2
+  # number of folder levels created (depth of hierarchy)
+RepositoryFiller.Depth=3
+  # Size of content for documents (0=do not create content), default=0
+RepositoryFiller.ContentSizeInKB=32
+  # properties to set for a document
+RepositoryFiller.DocumentProperty.0=StringProp
+#RepositoryFiller.DocumentProperty.1=StringPropMV
+  # properties to set for a folder
+#RepositoryFiller.FolderProperty.0=StringFolderProp
+# InMemoryServer.MaxContentSizeKB=4096
+# InMemoryServer.CleanIntervalMinutes=240
+RepositoryFiller.ContentKind=lorem/text
+# RepositoryFiller.ContentKind=lorem/html
+# RepositoryFiller.ContentKind=static/text
+# RepositoryFiller.ContentKind=fractal/jpeg
+# slow!! 
+ 
\ No newline at end of file

Added: chemistry/playground/cmisdemo/zipsrc/chemistry/inmemory/web.xml
URL: 
http://svn.apache.org/viewvc/chemistry/playground/cmisdemo/zipsrc/chemistry/inmemory/web.xml?rev=1297968&view=auto
==============================================================================
--- chemistry/playground/cmisdemo/zipsrc/chemistry/inmemory/web.xml (added)
+++ chemistry/playground/cmisdemo/zipsrc/chemistry/inmemory/web.xml Wed Mar  7 
13:33:45 2012
@@ -0,0 +1,148 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- !!!
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.  
+-->
+<web-app version="2.4"
+       xmlns="http://java.sun.com/xml/ns/j2ee"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+       xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
+
+       <display-name>OpenCMIS Server</display-name>
+
+       <welcome-file-list>
+               <welcome-file>index.jsp</welcome-file>
+               <welcome-file>index.html</welcome-file>
+       </welcome-file-list>
+
+       <listener>
+               
<listener-class>org.apache.chemistry.opencmis.server.impl.CmisRepositoryContextListener</listener-class>
+       </listener>
+       
+       <listener>
+               
<listener-class>com.sun.xml.ws.transport.http.servlet.WSServletContextListener</listener-class>
+       </listener>
+       
+       <!-- 
+            A servlet filter that logs all requests in files. Useful for 
monitoring and debugging.
+            Use it with care! It can generate a huge amount of files and will 
slow down performance
+            significantly.
+       -->
+       <!-- - - >
+       <filter>
+               <filter-name>LoggingFilter</filter-name>
+               
<filter-class>org.apache.chemistry.opencmis.server.support.filter.LoggingFilter</filter-class>
+               <init-param>
+                  <param-name>LogDir</param-name>
+                  <param-value></param-value>
+                </init-param>
+               <init-param>
+                  <param-name>PrettyPrint</param-name>
+                  <param-value>true</param-value>
+                </init-param>
+               <init-param>
+                  <param-name>LogHeader</param-name>
+                  <param-value>true</param-value>
+                </init-param>
+               <init-param>
+                  <param-name>Indent</param-name>
+                  <param-value>4</param-value>
+                </init-param>
+       </filter>
+       
+       <filter-mapping>
+               <filter-name>LoggingFilter</filter-name>
+               <servlet-name>cmisatom</servlet-name> 
+       </filter-mapping>
+       <filter-mapping>
+               <filter-name>LoggingFilter</filter-name>
+               <servlet-name>cmisws</servlet-name> 
+       </filter-mapping>
+       <filter-mapping>
+               <filter-name>LoggingFilter</filter-name>
+               <servlet-name>cmisbrowser</servlet-name> 
+       </filter-mapping>
+    < ! - - -->
+
+       <!--
+               Uncomment the following filter if the OpenCMIS server runs 
behind a proxy server or a load balancer.
+               The value of the 'trustedProxies' parameter is a regular 
expression. It must match the IP address of the proxy or load balancer.
+       -->
+       <!--
+       <filter>
+               <filter-name>ProxyFilter</filter-name>
+               
<filter-class>org.apache.chemistry.opencmis.server.filter.ProxyFilter</filter-class>
+               <init-param>
+                       <param-name>trustedProxies</param-name>
+                       
<param-value>10\.\d{1,3}\.\d{1,3}\.\d{1,3}|192\.168\.\d{1,3}\.\d{1,3}|169\.254\.\d{1,3}\.\d{1,3}|127\.\d{1,3}\.\d{1,3}\.\d{1,3}</param-value>
+               </init-param>
+       </filter>
+
+       <filter-mapping>
+               <filter-name>ProxyFilter</filter-name>
+               <servlet-name>cmisatom</servlet-name> 
+       </filter-mapping>
+       -->
+
+       <servlet>
+               <servlet-name>cmisws</servlet-name>
+               
<servlet-class>com.sun.xml.ws.transport.http.servlet.WSServlet</servlet-class>
+               <load-on-startup>1</load-on-startup>
+       </servlet>
+
+       <servlet>
+               <servlet-name>cmisatom</servlet-name>
+               
<servlet-class>org.apache.chemistry.opencmis.server.impl.atompub.CmisAtomPubServlet</servlet-class>
+               <init-param>
+                       <param-name>callContextHandler</param-name>
+                       
<param-value>org.apache.chemistry.opencmis.server.shared.BasicAuthCallContextHandler</param-value>
+               </init-param>
+               <load-on-startup>2</load-on-startup>
+       </servlet>
+       
+       <!-- -->
+       <servlet>
+               <servlet-name>cmisbrowser</servlet-name>
+               
<servlet-class>org.apache.chemistry.opencmis.server.impl.browser.CmisBrowserBindingServlet</servlet-class>
+               <init-param>
+                       <param-name>callContextHandler</param-name>
+                       
<param-value>org.apache.chemistry.opencmis.server.shared.BasicAuthCallContextHandler</param-value>
+               </init-param>
+               <load-on-startup>2</load-on-startup>
+       </servlet>
+    <!-- -->
+
+       <servlet-mapping>
+               <servlet-name>cmisws</servlet-name>
+               <url-pattern>/services/*</url-pattern>
+       </servlet-mapping>
+
+       <servlet-mapping>
+               <servlet-name>cmisatom</servlet-name>
+               <url-pattern>/atom/*</url-pattern>
+       </servlet-mapping>
+
+       <!-- -->
+       <servlet-mapping>
+               <servlet-name>cmisbrowser</servlet-name>
+               <url-pattern>/browser/*</url-pattern>
+       </servlet-mapping>
+       <!-- -->
+
+       <session-config>
+               <session-timeout>60</session-timeout>
+       </session-config>
+</web-app>

Added: chemistry/playground/cmisdemo/zipsrc/chemistry/root/asf_logo.png
URL: 
http://svn.apache.org/viewvc/chemistry/playground/cmisdemo/zipsrc/chemistry/root/asf_logo.png?rev=1297968&view=auto
==============================================================================
Binary file - no diff available.

Propchange: chemistry/playground/cmisdemo/zipsrc/chemistry/root/asf_logo.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: 
chemistry/playground/cmisdemo/zipsrc/chemistry/root/chemistry_logo_small.png
URL: 
http://svn.apache.org/viewvc/chemistry/playground/cmisdemo/zipsrc/chemistry/root/chemistry_logo_small.png?rev=1297968&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
chemistry/playground/cmisdemo/zipsrc/chemistry/root/chemistry_logo_small.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: chemistry/playground/cmisdemo/zipsrc/chemistry/root/index-both.jsp
URL: 
http://svn.apache.org/viewvc/chemistry/playground/cmisdemo/zipsrc/chemistry/root/index-both.jsp?rev=1297968&view=auto
==============================================================================
--- chemistry/playground/cmisdemo/zipsrc/chemistry/root/index-both.jsp (added)
+++ chemistry/playground/cmisdemo/zipsrc/chemistry/root/index-both.jsp Wed Mar  
7 13:33:45 2012
@@ -0,0 +1,149 @@
+<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
+    pageEncoding="ISO-8859-1"%>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd";>
+
+<%@ page import="java.net.URLEncoder" %>
+
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+<title>Apache Chemistry Public Server</title>
+<style type="text/css">
+
+body {
+  font-family: Verdana, arial, sans-serif;
+  color: black;
+  font-size: 12px;
+}
+
+h1 {
+  font-size: 24px;
+  line-height: normal;
+  font-weight: bold;
+  background-color: #f0f0f0;
+  color: #003366;
+   border-bottom: 1px solid #3c78b5;
+  padding: 2px;
+  margin: 36px 0px 4px 0px;
+}
+
+h2 {
+  font-size: 18px;
+  line-height: normal;
+  font-weight: bold;
+  background-color: #f0f0f0;
+   border-bottom: 1px solid #3c78b5;
+  padding: 2px;
+  margin: 27px 0px 4px 0px;
+}
+
+h3 {
+  font-size: 14px;
+  line-height: normal;
+  font-weight: bold;
+  background-color: #f0f0f0;
+  padding: 2px;
+  margin: 21px 0px 4px 0px;
+}
+
+h4 {
+  font-size: 12px;
+  line-height: normal;
+  font-weight: bold;
+  background-color: #f0f0f0;
+  padding: 2px;
+  margin: 18px 0px 4px 0px;
+}
+
+HR {
+  color: 3c78b5;
+  height: 1;
+}
+
+th  {
+    border: 1px solid #ccc;
+    padding: 2px 4px 2px 4px;
+    background: #f0f0f0;
+    text-align: center;
+       font-size: 12px;
+}
+
+td  {
+    border: 1px solid #ccc;
+    padding: 3px 4px 3px 4px;
+       font-size: 12px;
+}
+
+</style>
+<%!
+  private String getUrl(HttpServletRequest request) {
+    String url = request.getRequestURL().toString();
+    return url.substring(0, url.lastIndexOf('/')+1);
+  }  
+%>
+
+</head>
+<body>
+  <img alt="Apache Chemistry Logo" title="Apache Chemistry Logo" 
src="chemistry_logo_small.png" />
+
+<h1>Chemistry Cloud Deployment</h1>
+<p> This is an <b>experimental</b> public CMIS server from the <a 
href="http://chemistry.apache.org";> 
+Apache Chemistry Project</a>. The following services are available:
+</p>
+<table>
+  <tr> <th> Service </th> <th> Address</th></tr>
+  <tr>
+       <td>CMIS InMemory-Server</td> 
+       <td><a href="/inmemory">  
+<% out.println(getUrl(request) + "inmemory");%>
+       </a></td>
+  </tr>
+  <tr>
+       <td>CMIS Browser (Simple read-only HTML client)</td> 
+       <td>
+<% 
+      out.println("<a href=\"/cmis-browser/browse?url=" + 
URLEncoder.encode(getUrl(request) + "inmemory/atom", "UTF-8") + "\">");
+      out.println(getUrl(request) + "cmis-browser/browse");%>
+       </a></td>
+  </tr>
+  <tr>
+       <td>CMIS Workbench</td> 
+       <td><a href="/workbench/workbench/CMISWorkbench.jnlp">Download Java 
WebStart</a></td>
+  </tr>
+  <tr>
+       <td>CMIS Browser Binding Test Page</td> 
+       <td><a href="/jsclient">  
+<% out.println(getUrl(request) + "jsclient");%>
+       </a></td>
+  </tr>
+  <tr>
+       <td>CMIS CMIS Browser Binding Testsuite</td> 
+       <td><a href="/jsclient/test.html">  
+<% out.println(getUrl(request) + "jsclient/test.html");%>
+       </a></td>
+  </tr>
+</table>
+<p> Feedback or questions? <a href="mailto:[email protected]";> 
+Send email</a>.
+</p>
+  
+<h2>More Information</h2>
+<p>
+<a href="http://chemistry.apache.org";> Apache Chemistry web site</a>
+</p>
+<p>
+<a href="http://www.oasis-open.org/committees/cmis";> CMIS page at OASIS</a>
+</p>
+
+<hr/>
+<h2>License Information</h2>
+This software is licensed under the 
+<a href="http://www.apache.org/licenses/LICENSE-2.0.html";> Apache 2.0 License 
</a>
+<br/>
+
+<a href="http://www.apache.org";>
+  <img alt="ASF Logo" title="ASF Logo" src="asf_logo.png" align="right"/>
+</a>
+
+</body>
+</html>
\ No newline at end of file

Added: chemistry/playground/cmisdemo/zipsrc/chemistry/root/index-jsclient.jsp
URL: 
http://svn.apache.org/viewvc/chemistry/playground/cmisdemo/zipsrc/chemistry/root/index-jsclient.jsp?rev=1297968&view=auto
==============================================================================
--- chemistry/playground/cmisdemo/zipsrc/chemistry/root/index-jsclient.jsp 
(added)
+++ chemistry/playground/cmisdemo/zipsrc/chemistry/root/index-jsclient.jsp Wed 
Mar  7 13:33:45 2012
@@ -0,0 +1,137 @@
+<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
+    pageEncoding="ISO-8859-1"%>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd";>
+
+<%@ page import="java.net.URLEncoder" %>
+
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+<title>Apache Chemistry Public Server</title>
+<style type="text/css">
+
+body {
+  font-family: Verdana, arial, sans-serif;
+  color: black;
+  font-size: 12px;
+}
+
+h1 {
+  font-size: 24px;
+  line-height: normal;
+  font-weight: bold;
+  background-color: #f0f0f0;
+  color: #003366;
+   border-bottom: 1px solid #3c78b5;
+  padding: 2px;
+  margin: 36px 0px 4px 0px;
+}
+
+h2 {
+  font-size: 18px;
+  line-height: normal;
+  font-weight: bold;
+  background-color: #f0f0f0;
+   border-bottom: 1px solid #3c78b5;
+  padding: 2px;
+  margin: 27px 0px 4px 0px;
+}
+
+h3 {
+  font-size: 14px;
+  line-height: normal;
+  font-weight: bold;
+  background-color: #f0f0f0;
+  padding: 2px;
+  margin: 21px 0px 4px 0px;
+}
+
+h4 {
+  font-size: 12px;
+  line-height: normal;
+  font-weight: bold;
+  background-color: #f0f0f0;
+  padding: 2px;
+  margin: 18px 0px 4px 0px;
+}
+
+HR {
+  color: 3c78b5;
+  height: 1;
+}
+
+th  {
+    border: 1px solid #ccc;
+    padding: 2px 4px 2px 4px;
+    background: #f0f0f0;
+    text-align: center;
+       font-size: 12px;
+}
+
+td  {
+    border: 1px solid #ccc;
+    padding: 3px 4px 3px 4px;
+       font-size: 12px;
+}
+
+</style>
+<%!
+  private String getUrl(HttpServletRequest request) {
+    String url = request.getRequestURL().toString();
+    return url.substring(0, url.lastIndexOf('/')+1);
+  }  
+%>
+
+</head>
+<body>
+  <img alt="Apache Chemistry Logo" title="Apache Chemistry Logo" 
src="chemistry_logo_small.png" />
+
+<h1>Chemistry Cloud Deployment</h1>
+<p> This is an <b>experimental</b> public CMIS server from the <a 
href="http://chemistry.apache.org";> 
+Apache Chemistry Project</a>. The following services are available:
+</p>
+<table>
+  <tr> <th> Service </th> <th> Address</th></tr>
+  <tr>
+       <td>CMIS InMemory-Server</td> 
+       <td><a href="/inmemory">  
+<% out.println(getUrl(request) + "inmemory");%>
+       </a></td>
+  </tr>
+  <tr>
+       <td>CMIS Browser Binding Test Page</td> 
+       <td><a href="/jsclient">  
+<% out.println(getUrl(request) + "jsclient");%>
+       </a></td>
+  </tr>
+  <tr>
+       <td>CMIS CMIS Browser Binding Testsuite</td> 
+       <td><a href="/jsclient/test.html">  
+<% out.println(getUrl(request) + "jsclient/test.html");%>
+       </a></td>
+  </tr>
+</table>
+<p> Feedback or questions? <a href="mailto:[email protected]";> 
+Send email</a>.
+</p>
+  
+<h2>More Information</h2>
+<p>
+<a href="http://chemistry.apache.org";> Apache Chemistry web site</a>
+</p>
+<p>
+<a href="http://www.oasis-open.org/committees/cmis";> CMIS page at OASIS</a>
+</p>
+
+<hr/>
+<h2>License Information</h2>
+This software is licensed under the 
+<a href="http://www.apache.org/licenses/LICENSE-2.0.html";> Apache 2.0 License 
</a>
+<br/>
+
+<a href="http://www.apache.org";>
+  <img alt="ASF Logo" title="ASF Logo" src="asf_logo.png" align="right"/>
+</a>
+
+</body>
+</html>
\ No newline at end of file

Added: 
chemistry/playground/cmisdemo/zipsrc/chemistry/root/index-publicserver.jsp
URL: 
http://svn.apache.org/viewvc/chemistry/playground/cmisdemo/zipsrc/chemistry/root/index-publicserver.jsp?rev=1297968&view=auto
==============================================================================
--- chemistry/playground/cmisdemo/zipsrc/chemistry/root/index-publicserver.jsp 
(added)
+++ chemistry/playground/cmisdemo/zipsrc/chemistry/root/index-publicserver.jsp 
Wed Mar  7 13:33:45 2012
@@ -0,0 +1,137 @@
+<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
+    pageEncoding="ISO-8859-1"%>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd";>
+
+<%@ page import="java.net.URLEncoder" %>
+
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+<title>Apache Chemistry Public Server</title>
+<style type="text/css">
+
+body {
+  font-family: Verdana, arial, sans-serif;
+  color: black;
+  font-size: 12px;
+}
+
+h1 {
+  font-size: 24px;
+  line-height: normal;
+  font-weight: bold;
+  background-color: #f0f0f0;
+  color: #003366;
+   border-bottom: 1px solid #3c78b5;
+  padding: 2px;
+  margin: 36px 0px 4px 0px;
+}
+
+h2 {
+  font-size: 18px;
+  line-height: normal;
+  font-weight: bold;
+  background-color: #f0f0f0;
+   border-bottom: 1px solid #3c78b5;
+  padding: 2px;
+  margin: 27px 0px 4px 0px;
+}
+
+h3 {
+  font-size: 14px;
+  line-height: normal;
+  font-weight: bold;
+  background-color: #f0f0f0;
+  padding: 2px;
+  margin: 21px 0px 4px 0px;
+}
+
+h4 {
+  font-size: 12px;
+  line-height: normal;
+  font-weight: bold;
+  background-color: #f0f0f0;
+  padding: 2px;
+  margin: 18px 0px 4px 0px;
+}
+
+HR {
+  color: 3c78b5;
+  height: 1;
+}
+
+th  {
+    border: 1px solid #ccc;
+    padding: 2px 4px 2px 4px;
+    background: #f0f0f0;
+    text-align: center;
+       font-size: 12px;
+}
+
+td  {
+    border: 1px solid #ccc;
+    padding: 3px 4px 3px 4px;
+       font-size: 12px;
+}
+
+</style>
+<%!
+  private String getUrl(HttpServletRequest request) {
+    String url = request.getRequestURL().toString();
+    return url.substring(0, url.lastIndexOf('/')+1);
+  }  
+%>
+
+</head>
+<body>
+  <img alt="Apache Chemistry Logo" title="Apache Chemistry Logo" 
src="chemistry_logo_small.png" />
+
+<h1>Chemistry Cloud Deployment</h1>
+<p> This is an <b>experimental</b> public CMIS server from the <a 
href="http://chemistry.apache.org";> 
+Apache Chemistry Project</a>. The following services are available:
+</p>
+<table>
+  <tr> <th> Service </th> <th> Address</th></tr>
+  <tr>
+       <td>CMIS InMemory-Server</td> 
+       <td><a href="/inmemory">  
+<% out.println(getUrl(request) + "inmemory");%>
+       </a></td>
+  </tr>
+  <tr>
+       <td>CMIS Browser</td> 
+       <td>
+<% 
+      out.println("<a href=\"/cmis-browser/browse?url=" + 
URLEncoder.encode(getUrl(request) + "inmemory/atom", "UTF-8") + "\">");
+      out.println(getUrl(request) + "cmis-browser/browse");%>
+       </a></td>
+  </tr>
+  <tr>
+       <td>CMIS Workbench</td> 
+       <td><a href="/workbench/workbench/CMISWorkbench.jnlp">Download Java 
WebStart</a></td>
+  </tr>
+</table>
+<p> Feedback or questions? <a href="mailto:[email protected]";> 
+Send email</a>.
+</p>
+  
+<h2>More Information</h2>
+<p>
+<a href="http://chemistry.apache.org";> Apache Chemistry web site</a>
+</p>
+<p>
+<a href="http://www.oasis-open.org/committees/cmis";> CMIS page at OASIS</a>
+</p>
+
+<hr/>
+<h2>License Information</h2>
+This software is licensed under the 
+<a href="http://www.apache.org/licenses/LICENSE-2.0.html";> Apache 2.0 License 
</a>
+<br/>
+
+<a href="http://www.apache.org";>
+  <img alt="ASF Logo" title="ASF Logo" src="asf_logo.png" align="right"/>
+</a>
+
+</body>
+</html>
\ No newline at end of file

Added: 
chemistry/playground/cmisdemo/zipsrc/chemistry/workbench/CMISWorkbench.jnlp
URL: 
http://svn.apache.org/viewvc/chemistry/playground/cmisdemo/zipsrc/chemistry/workbench/CMISWorkbench.jnlp?rev=1297968&view=auto
==============================================================================
--- chemistry/playground/cmisdemo/zipsrc/chemistry/workbench/CMISWorkbench.jnlp 
(added)
+++ chemistry/playground/cmisdemo/zipsrc/chemistry/workbench/CMISWorkbench.jnlp 
Wed Mar  7 13:33:45 2012
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="utf-8"?>
+<jnlp spec="1.5+" 
codebase="http://ec2-184-72-233-127.compute-1.amazonaws.com/workbench";>
+  <information>
+    <title>OpenCMIS Workbench</title>
+    <vendor>The Apache Software Foundation</vendor>
+    <homepage href="http://chemistry.apache.org/java/opencmis.html"/>
+    <description>Apache Chemistry OpenCMIS is an open source implementation of 
the OASIS CMIS specification.</description>
+    <offline-allowed/>
+    <update check="timeout" policy="prompt-update"/>
+  </information>
+  <security>
+     <all-permissions/>
+  </security>
+  <resources>
+    <j2se version="1.6+" initial-heap-size="64m" max-heap-size="256m"/>
+     
+<jar href="lib/chemistry-opencmis-workbench-0.5.0-SNAPSHOT.jar" main="true"/>
+<jar href="lib/chemistry-opencmis-client-impl-0.5.0-SNAPSHOT.jar"/>
+<jar href="lib/chemistry-opencmis-client-api-0.5.0-SNAPSHOT.jar"/>
+<jar href="lib/chemistry-opencmis-commons-api-0.5.0-SNAPSHOT.jar"/>
+<jar href="lib/chemistry-opencmis-commons-impl-0.5.0-SNAPSHOT.jar"/>
+<jar href="lib/jaxws-rt-2.1.7.jar"/>
+<jar href="lib/jaxws-api-2.1.jar"/>
+<jar href="lib/jaxb-api-2.1.jar"/>
+<jar href="lib/saaj-api-1.3.jar"/>
+<jar href="lib/jsr250-api-1.0.jar"/>
+<jar href="lib/jsr181-api-1.0-MR1.jar"/>
+<jar href="lib/jaxb-impl-2.1.11.jar"/>
+<jar href="lib/saaj-impl-1.3.3.jar"/>
+<jar href="lib/streambuffer-0.9.jar"/>
+<jar href="lib/activation-1.1.jar"/>
+<jar href="lib/wstx-asl-3.2.3.jar"/>
+<jar href="lib/stax-api-1.0.1.jar"/>
+<jar href="lib/stax-ex-1.2.jar"/>
+<jar href="lib/stax-api-1.0.jar"/>
+<jar href="lib/resolver-20050927.jar"/>
+<jar href="lib/mimepull-1.3.jar"/>
+<jar href="lib/chemistry-opencmis-client-bindings-0.5.0-SNAPSHOT.jar"/>
+<jar href="lib/org.osgi.core-1.0.0.jar"/>
+<jar href="lib/chemistry-opencmis-test-tck-0.5.0-SNAPSHOT.jar"/>
+<jar href="lib/groovy-1.8.0.jar"/>
+<jar href="lib/antlr-2.7.7.jar"/>
+<jar href="lib/asm-3.2.jar"/>
+<jar href="lib/asm-commons-3.2.jar"/>
+<jar href="lib/asm-util-3.2.jar"/>
+<jar href="lib/asm-analysis-3.2.jar"/>
+<jar href="lib/asm-tree-3.2.jar"/>
+<jar href="lib/log4j-1.2.16.jar"/>
+<jar href="lib/commons-codec-1.4.jar"/>
+<jar href="lib/commons-logging-1.1.1.jar"/>
+
+    <property name="cmis.workbench.url" 
value="http://ec2-184-72-233-127.compute-1.amazonaws.com/inmemory/atom"/>  
+    <property name="cmis.workbench.user" value="user"/>  
+    <property name="cmis.workbench.password" value=""/>
+    <property name="cmis.workbench.binding" value="AtomPub"/>
+  </resources>
+  <application-desc 
main-class="org.apache.chemistry.opencmis.workbench.Workbench"/>
+</jnlp>
+


Reply via email to