From: <bra...@us...> - 2007-10-02 03:32:57
|
Revision: 2030 http://archive-access.svn.sourceforge.net/archive-access/?rev=2030&view=rev Author: bradtofel Date: 2007-10-01 20:33:00 -0700 (Mon, 01 Oct 2007) Log Message: ----------- INITIAL REV: some useful templates and examples for wayback Spring configuration. Added Paths: ----------- trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/WEB-INF/wayback-templates.xml Added: trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/WEB-INF/wayback-templates.xml =================================================================== --- trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/WEB-INF/wayback-templates.xml (rev 0) +++ trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/WEB-INF/wayback-templates.xml 2007-10-02 03:33:00 UTC (rev 2030) @@ -0,0 +1,143 @@ + +<!-- SearchResultSource templates --> + <bean id="bdbsearchresultsource" + class="org.archive.wayback.resourceindex.bdb.BDBIndex" + init-method="init"> + <property name="bdbName" value="DB1" /> + <property name="bdbPath" value="/tmp/wayback/index/" /> + </bean> + + <bean id="cdxsearchresultsource" class="org.archive.wayback.resourceindex.cdx.CDXIndex"> + <property name="path" value="/tmp/wayback/cdx-index/index.cdx" /> + </bean> + + <bean id="compositecdxresultsource" class="org.archive.wayback.resourceindex.CompositeSearchResultSource"> + <property name="CDXSources"> + <list> + <value>/tmp/wayback/cdx-index/index.cdx.1</value> + <value>/tmp/wayback/cdx-index/index.cdx.2</value> + </list> + </property> + </bean> + +<!-- ResourceIndex templates --> + + <bean id="remoteindex" class="org.archive.wayback.resourceindex.RemoteResourceIndex" init-method="init"> + <property name="searchUrlBase" value="http://webdata010.us.archive.org:8080/wayback/xmlquery" /> + </bean> + + <bean id="localbdbindex" class="org.archive.wayback.resourceindex.LocalResourceIndex"> + <property name="source" ref="bdbsearchresultsource" /> + <property name="maxRecords" value="10000" /> + </bean> + <bean id="localcdxindex" class="org.archive.wayback.resourceindex.LocalResourceIndex"> + <property name="source" ref="cdxsearchresultsource" /> + <property name="maxRecords" value="10000" /> + </bean> + + <property name="remotenutchindex"> + <bean class="org.archive.wayback.resourceindex.NutchResourceIndex" init-method="init"> + <property name="searchUrlBase" value="http://webteam-ws.us.archive.org:8080/katrina/opensearch" /> + <property name="maxRecords" value="100" /> + </bean> + </property> + +<!-- ResourceStore templates --> + + <bean id="localstore" class="org.archive.wayback.resourcestore.LocalARCResourceStore"> + <property name="arcDir" value="/tmp/wayback/arcs/" /> + </bean> + + <bean id="remotestore" class="org.archive.wayback.resourcestore.HttpARCResourceStore"> + <property name="urlPrefix" value="http://localhost:8080/arcproxy/" /> + </bean> + +<!-- WaybackCollection templates --> + + <bean id="localcollection" class="org.archive.wayback.webapp.WaybackCollection"> + <property name="index" ref="localbdbindex" /> + <property name="store" ref="localstore" /> + </bean> + +<!-- QueryUI templates --> + <bean id="standardquery" class="org.archive.wayback.query.Renderer"> + <property name="captureJsp" value="/jsp/HTMLResults.jsp" /> + </bean> + <bean id="calendarquery" class="org.archive.wayback.query.Renderer"> + <property name="captureJsp" value="/jsp/CalendarResults.jsp" /> + </bean> + +<!-- ArchivalURL ReplayUI templates --> + <bean id="archivalurlreplay" class="org.archive.wayback.archivalurl.ArchivalUrlReplayDispatcher"> + <property name="jsInserts"> + <list> + <value>http://localhost:8080/wm.js</value> + </list> + </property> + </bean> + <bean id="archivalurluriconverter" + class="org.archive.wayback.archivalurl.ArchivalUrlResultURIConverter"> + <property name="replayURIPrefix" value="http://localhost:8080/wayback/" /> + </bean> + <bean id="archivalurlparser" class="org.archive.wayback.archivalurl.ArchivalUrlRequestParser" init-method="init"> + <property name="maxRecords" value="1000" /> + </bean> + +<!-- Proxy ReplayUI templates --> + <bean id="proxyreplay" class="org.archive.wayback.proxy.ProxyReplayDispatcher"> + </bean> + <bean id="proxyuriconverter" class="org.archive.wayback.proxy.RedirectResultURIConverter"> + <property name="redirectURI" value="http://localhost:8090/jsp/Redirect.jsp" /> + </bean> + <bean id="proxyparser" class="org.archive.wayback.proxy.ProxyRequestParser" init-method="init"> + <property name="localhostNames"> + <list> + <value>foo.archive.org</value> + </list> + </property> + <property name="maxRecords" value="1000" /> + </bean> + +<!--IP-base authentication template --> + + <bean class="org.archive.wayback.authenticationcontrol.IPMatchesBooleanOperator"> + <property name="allowedRanges"> + <list> + <value>192.168.1.16/24</value> + </list> + </property> + </bean> + + +<!-- AccessPoint templates --> + + <bean name="8080:wayback" class="org.archive.wayback.webapp.AccessPoint"> + <property name="collection" ref="localcollection" /> + <property name="query" ref="standardquery" /> + <property name="replay" ref="archivalurlreplay" /> + <property name="parser" ref="archivalurlparser" /> + <property name="uriConverter" ref="archivalurluriconverter" /> + </bean> + + <bean name="8081" parent="8080:wayback"> + <property name="useServerName" value="true" /> + <property name="replay"> + <bean class="org.archive.wayback.domainprefix.DomainPrefixReplayDispatcher" /> + </property> + + <property name="parser"> + <bean class="org.archive.wayback.domainprefix.DomainPrefixCompositeRequestParser" + init-method="init"> + <property name="hostPort" value="localhost.archive.org:8081" /> + <property name="maxRecords" value="1000" /> + <property name="earliestTimestamp" value="1996" /> + </bean> + </property> + + <property name="uriConverter"> + <bean class="org.archive.wayback.domainprefix.DomainPrefixResultURIConverter"> + <property name="hostPort" value="localhost.archive.org:8081" /> + </bean> + </property> + </bean> + \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bra...@us...> - 2008-04-16 00:01:58
|
Revision: 2241 http://archive-access.svn.sourceforge.net/archive-access/?rev=2241&view=rev Author: bradtofel Date: 2008-04-15 16:58:06 -0700 (Tue, 15 Apr 2008) Log Message: ----------- TWEAK: made format more palletable to the validators, but this file is not intended for actual production use, just as a set of configuration examples. Also updated ResourceStore implementation classnames, hopefully to clear up any more confusion with the old classnames. Modified Paths: -------------- trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/WEB-INF/wayback-templates.xml Modified: trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/WEB-INF/wayback-templates.xml =================================================================== --- trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/WEB-INF/wayback-templates.xml 2008-04-15 00:03:57 UTC (rev 2240) +++ trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/WEB-INF/wayback-templates.xml 2008-04-15 23:58:06 UTC (rev 2241) @@ -1,3 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> +<beans> <!-- SearchResultSource templates --> <bean id="bdbsearchresultsource" @@ -35,20 +38,18 @@ <property name="maxRecords" value="10000" /> </bean> - <property name="remotenutchindex"> - <bean class="org.archive.wayback.resourceindex.NutchResourceIndex" init-method="init"> - <property name="searchUrlBase" value="http://webteam-ws.us.archive.org:8080/katrina/opensearch" /> - <property name="maxRecords" value="100" /> - </bean> - </property> + <bean id="remotenutchindex" class="org.archive.wayback.resourceindex.NutchResourceIndex" init-method="init"> + <property name="searchUrlBase" value="http://webteam-ws.us.archive.org:8080/katrina/opensearch" /> + <property name="maxRecords" value="100" /> + </bean> <!-- ResourceStore templates --> - <bean id="localstore" class="org.archive.wayback.resourcestore.LocalARCResourceStore"> - <property name="arcDir" value="/tmp/wayback/arcs/" /> + <bean id="localstore" class="org.archive.wayback.resourcestore.LocalesourceStore"> + <property name="dataDir" value="/tmp/wayback/arcs/" /> </bean> - <bean id="remotestore" class="org.archive.wayback.resourcestore.HttpARCResourceStore"> + <bean id="remotestore" class="org.archive.wayback.resourcestore.Http11ResourceStore"> <property name="urlPrefix" value="http://localhost:8080/arcproxy/" /> </bean> @@ -140,4 +141,4 @@ </bean> </property> </bean> - \ No newline at end of file +</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. |