From: <bra...@us...> - 2010-08-17 00:55:15
|
Revision: 3237 http://archive-access.svn.sourceforge.net/archive-access/?rev=3237&view=rev Author: bradtofel Date: 2010-08-17 00:55:09 +0000 (Tue, 17 Aug 2010) Log Message: ----------- INITIAL-REV: likely temporary top level Spring Config file, until we've confirmed memento functionality. Added Paths: ----------- trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/WEB-INF/memento.xml Added: trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/WEB-INF/memento.xml =================================================================== --- trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/WEB-INF/memento.xml (rev 0) +++ trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/WEB-INF/memento.xml 2010-08-17 00:55:09 UTC (rev 3237) @@ -0,0 +1,163 @@ +<?xml version="1.0" encoding="UTF-8"?> +<beans xmlns="http://www.springframework.org/schema/beans" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.springframework.org/schema/beans + http://www.springframework.org/schema/beans/spring-beans-2.5.xsd" + default-init-method="init"> + +<!-- + Macro-like substitutions for the overall file: + wayback.basedir: default top level directory for all index, state, + locationdb storage. +--> + + <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> + <property name="properties"> + <value> + wayback.basedir=/tmp/wayback + </value> + </property> + </bean> + + + <bean id="waybackCanonicalizer" class="org.archive.wayback.util.url.AggressiveUrlCanonicalizer" /> + +<!-- + The ResourceFileLocationDB implementation to use for mapping ARC/WARC names + to absolute paths/URLs via a BDBJE database. +--> + + <bean id="resourcefilelocationdb" class="org.archive.wayback.resourcestore.locationdb.BDBResourceFileLocationDB"> + <property name="bdbPath" value="${wayback.basedir}/file-db/db/" /> + <property name="bdbName" value="DB1" /> + <property name="logPath" value="${wayback.basedir}/file-db/db.log" /> + </bean> + +<!-- + To enable manual management of, or remote access to the above locationDB, + uncomment the following bean. +--> +<!-- + <bean name="8080:locationdb" class="org.archive.wayback.resourcestore.locationdb.ResourceFileLocationDBServlet"> + <property name="locationDB" ref="resourcefilelocationdb" /> + </bean> +--> + +<!-- + The FileProxyServlet uses a ResourceFileLocationDB to make all ARC/WARC + files appear to reside within a single HTTP 1.1 exported directory. + Required when using the SimpleResourceStore to access distributed ARC/WARC + files over HTTP through a single reverse proxy. +--> +<!-- + <bean name="8080:fileproxy" class="org.archive.wayback.resourcestore.locationdb.FileProxyServlet"> + <property name="locationDB" ref="resourcefilelocationdb" /> + </bean> +--> + + +<!-- + The XML files indicated in the following import tags contain alternate + example implementations of WaybackCollections. To specify where your + ARC/WARC files are located, see the file BDBCollection.xml. +--> + <import resource="BDBCollection.xml"/> +<!-- + <import resource="NutchCollection.xml"/> + <import resource="CDXCollection.xml"/> + <import resource="RemoteCollection.xml"/> +--> + + +<!-- + This is the only AccessPoint defined by default within this wayback.xml + Spring configuration file, providing an ArchivalURL Replay UI to the + "localbdbcollection", defined in "BDBCollection.xml" by providing + ArchivalURL-specific implementations of the replay, parser, and + uriConverter. + + This AccessPoint currently will provide access only from the machine + running Tomcat. To provide external access, replace "localhost.archive.org" + with your fully qualified hostname of the computer running Tomcat. +--> + <import resource="ArchivalUrlReplay.xml"/> + <bean name="8080:wayback" class="org.archive.wayback.webapp.AccessPoint"> + <property name="staticPrefix" value="http://localhost.archive.org:8080/wayback/" /> + + <property name="collection" ref="localbdbcollection" /> + <property name="replay" ref="archivalurlreplay" /> + <property name="query"> + <bean class="org.archive.wayback.query.Renderer"> + <property name="captureJsp" value="/WEB-INF/query/CalendarResults.jsp" /> + </bean> + </property> + <property name="uriConverter"> + <bean class="org.archive.wayback.archivalurl.ArchivalUrlResultURIConverter"> + <property name="replayURIPrefix" value="http://localhost.archive.org:8080/wayback/"/> + </bean> + </property> + + <property name="parser"> + <bean class="org.archive.wayback.archivalurl.ArchivalUrlRequestParser"> + <property name="maxRecords" value="1000" /> + <property name="earliestTimestamp" value="1996" /> + </bean> + </property> + + </bean> + + <import resource="MementoReplay.xml"/> + <bean name="8080:memento" parent="8080:wayback"> + <property name="staticPrefix" value="http://localhost.archive.org:8080/memento/" /> + <property name="configs"> + <props> + <prop key="aggregationPrefix">http://localhost.archive.org:8080/ore/</prop> + </props> + </property> + + <property name="replay" ref="mementoreplay" /> + <property name="query"> + <bean class="org.archive.wayback.query.Renderer"> + <property name="captureJsp" value="/WEB-INF/query/Memento.jsp" /> + </bean> + </property> + + <property name="uriConverter"> + <bean class="org.archive.wayback.archivalurl.ArchivalUrlResultURIConverter"> + <property name="replayURIPrefix" value="http://localhost.archive.org:8080/memento/"/> + </bean> + </property> + <property name="parser"> + <bean class="org.archive.wayback.memento.MementoRequestParser"> + <property name="maxRecords" value="1000" /> + <property name="earliestTimestamp" value="1996" /> + </bean> + </property> + + </bean> + + + <bean name="8080:ore" parent="8080:memento"> + <property name="staticPrefix" value="http://localhost.archive.org:8080/ore/" /> + <property name="configs"> + <props> + <prop key="Prefix">http://localhost.archive.org:8080/memento/</prop> + </props> + </property> + + <property name="replay" ref="archivalurlreplay" /> + <property name="query"> + <bean class="org.archive.wayback.query.Renderer"> + <property name="captureJsp" value="/WEB-INF/query/ORE.jsp" /> + </bean> + </property> + + <property name="uriConverter"> + <bean class="org.archive.wayback.archivalurl.ArchivalUrlResultURIConverter"> + <property name="replayURIPrefix" value="http://localhost.archive.org:8080/ore/"/> + </bean> + </property> + + </bean> + +</beans> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |