Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Commit

Permalink
Initial import of Intranda ContentServer in version 1.1.5 provided by…
Browse files Browse the repository at this point in the history
… Intranda.
  • Loading branch information
henning-gerhardt committed Sep 21, 2016
0 parents commit f5d7d34
Show file tree
Hide file tree
Showing 178 changed files with 22,845 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry exported="true" kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
<classpathentry exported="true" kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
<classpathentry exported="true" kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry exported="true" kind="lib" path="WebContent/WEB-INF/lib/commons-beanutils-core-1.8.0.jar"/>
<classpathentry exported="true" kind="lib" path="WebContent/WEB-INF/lib/commons-cli-1.0.jar"/>
<classpathentry exported="true" kind="lib" path="WebContent/WEB-INF/lib/commons-codec-1.3.jar"/>
<classpathentry exported="true" kind="lib" path="WebContent/WEB-INF/lib/commons-collections-3.2.1.jar"/>
<classpathentry exported="true" kind="lib" path="WebContent/WEB-INF/lib/commons-configuration-1.6.jar"/>
<classpathentry exported="true" kind="lib" path="WebContent/WEB-INF/lib/commons-digester-1.8.jar"/>
<classpathentry exported="true" kind="lib" path="WebContent/WEB-INF/lib/commons-io-1.4.jar"/>
<classpathentry exported="true" kind="lib" path="WebContent/WEB-INF/lib/commons-lang-2.4.jar"/>
<classpathentry exported="true" kind="lib" path="WebContent/WEB-INF/lib/commons-logging-1.1.1.jar"/>
<classpathentry exported="true" kind="lib" path="WebContent/WEB-INF/lib/itext-2.1.5.jar"/>
<classpathentry exported="true" kind="lib" path="WebContent/WEB-INF/lib/jai_codec-1.1.3.jar"/>
<classpathentry exported="true" kind="lib" path="WebContent/WEB-INF/lib/jai_core-1.1.3.jar"/>
<classpathentry exported="true" kind="lib" path="WebContent/WEB-INF/lib/jai_imageio-1.1.jar"/>
<classpathentry exported="true" kind="lib" path="WebContent/WEB-INF/lib/jsch-0.1.27.jar"/>
<classpathentry exported="true" kind="lib" path="WebContent/WEB-INF/lib/jtidy-4aug2000r7-dev.jar"/>
<classpathentry exported="true" kind="lib" path="WebContent/WEB-INF/lib/junit-4.5.jar"/>
<classpathentry exported="true" kind="lib" path="WebContent/WEB-INF/lib/log4j-1.2.14.jar"/>
<classpathentry exported="true" kind="lib" path="WebContent/WEB-INF/lib/metsBeans-1.7-SNAPSHOT.jar"/>
<classpathentry exported="true" kind="lib" path="WebContent/WEB-INF/lib/modsBeans-3.3-SNAPSHOT.jar"/>
<classpathentry exported="true" kind="lib" path="WebContent/WEB-INF/lib/saxon-9.0.0.2.jar"/>
<classpathentry exported="true" kind="lib" path="WebContent/WEB-INF/lib/saxon-dom-9.0.0.2.jar"/>
<classpathentry exported="true" kind="lib" path="WebContent/WEB-INF/lib/stax-api-1.0.1.jar"/>
<classpathentry exported="true" kind="lib" path="WebContent/WEB-INF/lib/xml-apis-1.0.b2.jar"/>
<classpathentry exported="true" kind="lib" path="WebContent/WEB-INF/lib/xmlbeans-2.4.0.jar"/>
<classpathentry exported="true" kind="lib" path="WebContent/WEB-INF/lib/xmlbeans-xpath-2.4.0.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/ehcache-core-2.5.1.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/slf4j-api-1.6.1.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/IJ.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/jmagick-6.4.0.jar"/>
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v7.0">
<attributes>
<attribute name="owner.project.facets" value="jst.web"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/java-6-sun-1.6.0.26">
<attributes>
<attribute name="owner.project.facets" value="java"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="build/classes"/>
</classpath>
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
47 changes: 47 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>intrandaContentServer</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.dltk.core.scriptbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.php.core.PHPNature</nature>
</natures>
</projectDescription>
5 changes: 5 additions & 0 deletions .settings/.jsdtscope
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="WebContent"/>
<classpathentry kind="output" path=""/>
</classpath>
3 changes: 3 additions & 0 deletions .settings/org.eclipse.core.resources.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#Wed Dec 07 11:40:06 CET 2011
eclipse.preferences.version=1
encoding/<project>=UTF-8
11 changes: 11 additions & 0 deletions .settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.6
9 changes: 9 additions & 0 deletions .settings/org.eclipse.wst.common.component
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="intrandaContentServer">
<wb-resource deploy-path="/" source-path="/WebContent"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>
<property name="java-output-path" value="/intrandaContentServer/build/classes"/>
<property name="context-root" value="ics"/>
</wb-module>
</project-modules>
8 changes: 8 additions & 0 deletions .settings/org.eclipse.wst.common.project.facet.core.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<runtime name="Apache Tomcat v7.0"/>
<fixed facet="java"/>
<fixed facet="jst.web"/>
<installed facet="jst.web" version="2.5"/>
<installed facet="java" version="1.6"/>
</faceted-project>
1 change: 1 addition & 0 deletions .settings/org.eclipse.wst.jsdt.ui.superType.container
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.eclipse.wst.jsdt.launching.baseBrowserLibrary
1 change: 1 addition & 0 deletions .settings/org.eclipse.wst.jsdt.ui.superType.name
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Window
21 changes: 21 additions & 0 deletions META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: intrandaContentServer
Bundle-SymbolicName: intrandaContentServer
Bundle-Version: 1.0.0.qualifier
Export-Package: de.unigoettingen.sub.commons.contentlib.exceptions,
de.unigoettingen.sub.commons.contentlib.imagelib,
de.unigoettingen.sub.commons.contentlib.pdflib,
de.unigoettingen.sub.commons.contentlib.servlet,
de.unigoettingen.sub.commons.contentlib.servlet.controller,
de.unigoettingen.sub.commons.contentlib.servlet.model,
de.unigoettingen.sub.commons.simplemets,
de.unigoettingen.sub.commons.simplemets.exceptions,
de.unigoettingen.sub.commons.util,
de.unigoettingen.sub.commons.util.datasource,
de.unigoettingen.sub.commons.util.file,
de.unigoettingen.sub.commons.util.stream,
de.unigoettingen.sub.commons.util.xml,
org.goobi.presentation.contentservlet.controller
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
3 changes: 3 additions & 0 deletions WebContent/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Manifest-Version: 1.0
Class-Path:

Binary file added WebContent/WEB-INF/lib/IJ.jar
Binary file not shown.
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/commons-cli-1.0.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/commons-codec-1.3.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/commons-digester-1.8.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/commons-io-1.4.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/commons-lang-2.4.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/commons-logging-1.1.1.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/ehcache-core-2.5.1.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/itext-2.1.5.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/jai_codec-1.1.3.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/jai_core-1.1.3.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/jai_imageio-1.1.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/jmagick-6.4.0.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/jmagick.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/jsch-0.1.27.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/jtidy-4aug2000r7-dev.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/junit-4.5.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/log4j-1.2.14.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/saxon-9.0.0.2.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/saxon-dom-9.0.0.2.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/slf4j-api-1.6.1.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/stax-api-1.0.1.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/xml-apis-1.0.b2.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/xmlbeans-2.4.0.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/xmlbeans-xpath-2.4.0.jar
Binary file not shown.
47 changes: 47 additions & 0 deletions WebContent/WEB-INF/web.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" 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>contentserver2</display-name>

<servlet>
<description>
</description>
<display-name>ContentServer</display-name>
<servlet-name>ContentServer</servlet-name>
<servlet-class>
de.unigoettingen.sub.commons.contentlib.servlet.controller.ContentServer</servlet-class>
</servlet>

<servlet>
<description>
</description>
<display-name>GoobiContentServer</display-name>
<servlet-name>GoobiContentServer</servlet-name>
<servlet-class>
org.goobi.presentation.contentServlet.controller.GoobiContentServer
</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>GoobiContentServer</servlet-name>
<url-pattern>/gcs</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>ContentServer</servlet-name>
<url-pattern>/cs/*</url-pattern>
</servlet-mapping>


<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>

</web-app>
33 changes: 33 additions & 0 deletions WebContent/about.jsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<%@ page language="java" contentType="text/html; charset=UTF8"
pageEncoding="UTF8"%>

<%
request.setAttribute("page","about");
%>

<jsp:include page="inc/header.jsp" />

<div id="main">

<h2 id="about">About ContentServer - version 2</h2>

<p>The GoobiContentServer analyses METS files via simple HTTP requests per GET or POST and processes their images.
The whole GoobiContentServer API was programmed by <a
href="http://www.intranda.com">intranda software</a> on behalf of the <a
href="http://gdz.sub.uni-goettingen.de">Center for Retrospective Digitization, Göttingen (GDZ)</a>.
</p>
<p>A detailed description on how to use the GoobiContentServer can be found under <a
href="help.jsp">Help</a>.</p>

<!-- main ends --></div>

<div id="sidebar">

<h3>Content</h3>
<ul class="sidemenu">
<li><a href="#about">About GoobiContentServer - version 1</a></li>
</ul>

<!-- sidebar ends --></div>

<jsp:include page="inc/footer.jsp" />
59 changes: 59 additions & 0 deletions WebContent/echo.jsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<%@ page language="java" contentType="text/html; charset=UTF8"
pageEncoding="UTF8"%>
<%@ page import="java.util.Enumeration"%>

<%
request.setAttribute("page", "echo");
%>


<%@page import="java.util.Collection"%><jsp:include page="inc/header.jsp" />

<div id="main">
<%
Enumeration<String> errors = request.getAttributeNames();
while (errors.hasMoreElements()) {
String label = (String) errors.nextElement();
Object value = request.getAttribute(label);
if (label.equals("error")) {
out.print("<p style=\"color:red;font-weight:bold\">" + value + "</p>");
}
}
%>

<h2 id="echo">Action: Echo</h2>

<p>At this place are all parameters listed which were given via GET or POST request.</p>

<h2 id="table">Parameter</h2>

<table>
<tr>
<th>type</th>
<th>content</th>
</tr>

<%
Enumeration<String> params = request.getParameterNames();
while (params.hasMoreElements()) {
String label = (String) params.nextElement();
Object value = request.getParameter(label);
out.print("<tr class=\"row-b\"><td>" + label + "</td><td>" + value + "</td></tr>");
}
%>

</table>

<!-- main ends --></div>

<div id="sidebar">

<h3>Content</h3>
<ul class="sidemenu">
<li><a href="#echo">Action: Echo</a></li>
<li><a href="#table">Parameter</a></li>
</ul>

<!-- sidebar ends --></div>

<jsp:include page="inc/footer.jsp" />
Loading

0 comments on commit f5d7d34

Please sign in to comment.