<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE components PUBLIC "-//SEASAR//DTD S2Container 2.4//EN"
	"http://www.seasar.org/dtd/components24.dtd">
<components>
    <include path="s2robot_transformer.dicon"/>
    
	<component name="ruleManager" class="org.seasar.robot.rule.impl.RuleManagerImpl" instance="prototype">
		<initMethod name="addRule">
			<arg>sitemapsRule</arg>
		</initMethod>
		<initMethod name="addRule">
			<arg>webHtmlRule</arg>
		</initMethod>
		<initMethod name="addRule">
			<arg>webFileRule</arg>
		</initMethod>
		<initMethod name="addRule">
			<arg>fsFileRule</arg>
		</initMethod>
		<initMethod name="addRule">
			<arg>defaultRule</arg>
		</initMethod>
	</component>

	<component name="sitemapsRule" class="org.seasar.robot.rule.impl.RegexRule" >
		<property name="ruleId">"sitemapsRule"</property>
		<property name="responseProcessor">
			<component class="org.seasar.robot.processor.impl.SitemapsResponseProcessor">
			</component>
		</property>
		<initMethod name="addRule">
			<arg>"url"</arg>
			<arg>".*sitemap[^/]*.xml$|.*sitemap[^/]*.gz$|.*sitemap[^/]*.txt$"</arg>
		</initMethod>
	</component>
	
	<component name="webHtmlRule" class="org.seasar.robot.rule.impl.RegexRule" >
		<property name="ruleId">"webHtmlRule"</property>
		<property name="responseProcessor">
			<component class="org.seasar.robot.processor.impl.DefaultResponseProcessor">
				<property name="transformer">fessXpathTransformer</property>
			</component>
		</property>
		<property name="allRequired">true</property>
		<initMethod name="addRule">
			<arg>"url"</arg>
			<arg>"http[s]?:.*"</arg>
		</initMethod>
		<initMethod name="addRule">
			<arg>"mimeType"</arg>
			<!-- Supported MIME type -->
			<arg>"text/html"</arg>
		</initMethod>
	</component>

	<component name="webFileRule" class="org.seasar.robot.rule.impl.RegexRule" >
		<property name="ruleId">"webFileRule"</property>
		<property name="responseProcessor">
			<component class="org.seasar.robot.processor.impl.DefaultResponseProcessor">
				<property name="transformer">fessFileTransformer</property>
			</component>
		</property>
		<property name="allRequired">true</property>
		<initMethod name="addRule">
			<arg>"url"</arg>
			<arg>"http[s]?:.*"</arg>
		</initMethod>
		<initMethod name="addRule">
			<arg>"mimeType"</arg>
			<!-- Supported MIME type -->
			<arg>
"(application/xml"
+ "|image/svg+xml"
+ "|application/x-tika-msoffice"
+ "|application/vnd.visio"
+ "|application/vnd.ms-powerpoint"
+ "|application/vnd.ms-excel"
+ "|application/vnd.ms-excel.sheet.binary.macroenabled.12"
+ "|application/msword"
+ "|application/vnd.ms-outlook"
+ "|application/x-tika-ooxml"
+ "|application/vnd.openxmlformats-officedocument.presentationml.presentation"
+ "|application/vnd.ms-powerpoint.presentation.macroenabled.12"
+ "|application/vnd.openxmlformats-officedocument.presentationml.template"
+ "|application/vnd.openxmlformats-officedocument.presentationml.slideshow"
+ "|application/vnd.ms-powerpoint.slideshow.macroenabled.12"
+ "|application/vnd.ms-powerpoint.addin.macroenabled.12"
+ "|application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
+ "|application/vnd.ms-excel.sheet.macroenabled.12"
+ "|application/vnd.openxmlformats-officedocument.spreadsheetml.template"
+ "|application/vnd.ms-excel.template.macroenabled.12"
+ "|application/vnd.ms-excel.addin.macroenabled.12"
+ "|application/vnd.openxmlformats-officedocument.wordprocessingml.document"
+ "|application/vnd.ms-word.document.macroenabled.12"
+ "|application/vnd.openxmlformats-officedocument.wordprocessingml.template"
+ "|application/vnd.ms-word.template.macroenabled.12"
+ "|application/xhtml+xml"
+ "|application/x-asp"
+ "|application/rtf"
+ "|application/pdf"
+ "|text/plain"
+ "|application/vnd.sun.xml.writer"
+ "|application/vnd.oasis.opendocument.text"
+ "|application/vnd.oasis.opendocument.graphics"
+ "|application/vnd.oasis.opendocument.presentation"
+ "|application/vnd.oasis.opendocument.spreadsheet"
+ "|application/vnd.oasis.opendocument.chart"
+ "|application/vnd.oasis.opendocument.image"
+ "|application/vnd.oasis.opendocument.formula"
+ "|application/vnd.oasis.opendocument.text-master"
+ "|application/vnd.oasis.opendocument.text-web"
+ "|application/vnd.oasis.opendocument.text-template"
+ "|application/vnd.oasis.opendocument.graphics-template"
+ "|application/vnd.oasis.opendocument.presentation-template"
+ "|application/vnd.oasis.opendocument.spreadsheet-template"
+ "|application/vnd.oasis.opendocument.chart-template"
+ "|application/vnd.oasis.opendocument.image-template"
+ "|application/vnd.oasis.opendocument.formula-template"
+ "|application/x-vnd.oasis.opendocument.text"
+ "|application/x-vnd.oasis.opendocument.graphics"
+ "|application/x-vnd.oasis.opendocument.presentation"
+ "|application/x-vnd.oasis.opendocument.spreadsheet"
+ "|application/x-vnd.oasis.opendocument.chart"
+ "|application/x-vnd.oasis.opendocument.image"
+ "|application/x-vnd.oasis.opendocument.formula"
+ "|application/x-vnd.oasis.opendocument.text-master"
+ "|application/x-vnd.oasis.opendocument.text-web"
+ "|application/x-vnd.oasis.opendocument.text-template"
+ "|application/x-vnd.oasis.opendocument.graphics-template"
+ "|application/x-vnd.oasis.opendocument.presentation-template"
+ "|application/x-vnd.oasis.opendocument.spreadsheet-template"
+ "|application/x-vnd.oasis.opendocument.chart-template"
+ "|application/x-vnd.oasis.opendocument.image-template"
+ "|application/x-vnd.oasis.opendocument.formula-template"
+ "|image/bmp"
+ "|image/gif"
+ "|image/jpeg"
+ "|image/png"
+ "|image/tiff"
+ "|image/vnd.wap.wbmp"
+ "|image/x-icon"
+ "|image/x-psd"
+ "|image/x-xcf"
+ "|application/zip"
+ "|application/x-tar"
+ "|application/x-gtar"
+ "|application/x-gzip"
+ "|application/x-bzip"
+ "|application/x-bzip2"
+ "|application/java-vm"
+ "|audio/mpeg"
+ "|application/x-midi"
+ "|audio/midi"
+ "|audio/basic"
+ "|audio/x-wav"
+ "|audio/x-aiff"
+ "|application/mbox"
+ "|text/calendar"
+ "|text/css"
+ "|text/csv"
+ "|text/directory"
+ "|text/dns"
+ "|text/ecmascript"
+ "|text/enriched"
+ "|text/example"
+ "|text/javascript"
+ "|text/parityfec"
+ "|text/prs.fallenstein.rst"
+ "|text/prs.lines.tag"
+ "|text/red"
+ "|text/rfc822-headers"
+ "|text/richtext"
+ "|text/rtf"
+ "|text/rtp-enc-aescm128"
+ "|text/rtx"
+ "|text/sgml"
+ "|text/t140"
+ "|text/tab-separated-values"
+ "|text/troff"
+ "|text/ulpfec"
+ "|text/uri-list"
+ "|text/vnd.abc"
+ "|text/vnd.curl"
+ "|text/vnd.curl.dcurl"
+ "|text/vnd.curl.mcurl"
+ "|text/vnd.curl.scurl"
+ "|text/vnd.dmclientscript"
+ "|text/vnd.esmertec.theme-descriptor"
+ "|text/vnd.fly"
+ "|text/vnd.fmi.flexstor"
+ "|text/vnd.graphviz"
+ "|text/vnd.in3d.3dml"
+ "|text/vnd.in3d.spot"
+ "|text/vnd.iptc.newsml"
+ "|text/vnd.iptc.nitf"
+ "|text/vnd.latex-z"
+ "|text/vnd.motorola.reflex"
+ "|text/vnd.ms-mediapackage"
+ "|text/vnd.net2phone.commcenter.command"
+ "|text/vnd.si.uricatalogue"
+ "|text/vnd.sun.j2me.app-descriptor"
+ "|text/vnd.trolltech.linguist"
+ "|text/vnd.wap.si"
+ "|text/vnd.wap.sl"
+ "|text/vnd.wap.wml"
+ "|text/vnd.wap.wmlscript"
+ "|text/x-asm"
+ "|text/x-c"
+ "|text/x-diff"
+ "|text/x-fortran"
+ "|text/x-java-source"
+ "|text/x-pascal"
+ "|text/x-setext"
+ "|text/x-uuencode"
+ "|text/x-vcalendar"
+ "|text/x-vcard"
+ "|text/xml"
+ "|text/xml-external-parsed-entity)"
			</arg>
		</initMethod>
	</component>

	<component name="fsFileRule" class="org.seasar.robot.rule.impl.RegexRule" >
		<property name="ruleId">"fsFileRule"</property>
		<property name="responseProcessor">
			<component class="org.seasar.robot.processor.impl.DefaultResponseProcessor">
				<property name="transformer">fessFileTransformer</property>
			</component>
		</property>
		<property name="allRequired">true</property>
		<initMethod name="addRule">
			<arg>"url"</arg>
			<arg>"file:.*"</arg>
		</initMethod>
		<initMethod name="addRule">
			<arg>"mimeType"</arg>
			<!-- Supported MIME type -->
			<arg>
"(application/xml"
+ "|image/svg+xml"
+ "|application/x-tika-msoffice"
+ "|application/vnd.visio"
+ "|application/vnd.ms-powerpoint"
+ "|application/vnd.ms-excel"
+ "|application/vnd.ms-excel.sheet.binary.macroenabled.12"
+ "|application/msword"
+ "|application/vnd.ms-outlook"
+ "|application/x-tika-ooxml"
+ "|application/vnd.openxmlformats-officedocument.presentationml.presentation"
+ "|application/vnd.ms-powerpoint.presentation.macroenabled.12"
+ "|application/vnd.openxmlformats-officedocument.presentationml.template"
+ "|application/vnd.openxmlformats-officedocument.presentationml.slideshow"
+ "|application/vnd.ms-powerpoint.slideshow.macroenabled.12"
+ "|application/vnd.ms-powerpoint.addin.macroenabled.12"
+ "|application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
+ "|application/vnd.ms-excel.sheet.macroenabled.12"
+ "|application/vnd.openxmlformats-officedocument.spreadsheetml.template"
+ "|application/vnd.ms-excel.template.macroenabled.12"
+ "|application/vnd.ms-excel.addin.macroenabled.12"
+ "|application/vnd.openxmlformats-officedocument.wordprocessingml.document"
+ "|application/vnd.ms-word.document.macroenabled.12"
+ "|application/vnd.openxmlformats-officedocument.wordprocessingml.template"
+ "|application/vnd.ms-word.template.macroenabled.12"
+ "|text/html"
+ "|application/xhtml+xml"
+ "|application/x-asp"
+ "|application/rtf"
+ "|application/pdf"
+ "|text/plain"
+ "|application/vnd.sun.xml.writer"
+ "|application/vnd.oasis.opendocument.text"
+ "|application/vnd.oasis.opendocument.graphics"
+ "|application/vnd.oasis.opendocument.presentation"
+ "|application/vnd.oasis.opendocument.spreadsheet"
+ "|application/vnd.oasis.opendocument.chart"
+ "|application/vnd.oasis.opendocument.image"
+ "|application/vnd.oasis.opendocument.formula"
+ "|application/vnd.oasis.opendocument.text-master"
+ "|application/vnd.oasis.opendocument.text-web"
+ "|application/vnd.oasis.opendocument.text-template"
+ "|application/vnd.oasis.opendocument.graphics-template"
+ "|application/vnd.oasis.opendocument.presentation-template"
+ "|application/vnd.oasis.opendocument.spreadsheet-template"
+ "|application/vnd.oasis.opendocument.chart-template"
+ "|application/vnd.oasis.opendocument.image-template"
+ "|application/vnd.oasis.opendocument.formula-template"
+ "|application/x-vnd.oasis.opendocument.text"
+ "|application/x-vnd.oasis.opendocument.graphics"
+ "|application/x-vnd.oasis.opendocument.presentation"
+ "|application/x-vnd.oasis.opendocument.spreadsheet"
+ "|application/x-vnd.oasis.opendocument.chart"
+ "|application/x-vnd.oasis.opendocument.image"
+ "|application/x-vnd.oasis.opendocument.formula"
+ "|application/x-vnd.oasis.opendocument.text-master"
+ "|application/x-vnd.oasis.opendocument.text-web"
+ "|application/x-vnd.oasis.opendocument.text-template"
+ "|application/x-vnd.oasis.opendocument.graphics-template"
+ "|application/x-vnd.oasis.opendocument.presentation-template"
+ "|application/x-vnd.oasis.opendocument.spreadsheet-template"
+ "|application/x-vnd.oasis.opendocument.chart-template"
+ "|application/x-vnd.oasis.opendocument.image-template"
+ "|application/x-vnd.oasis.opendocument.formula-template"
+ "|image/bmp"
+ "|image/gif"
+ "|image/jpeg"
+ "|image/png"
+ "|image/tiff"
+ "|image/vnd.wap.wbmp"
+ "|image/x-icon"
+ "|image/x-psd"
+ "|image/x-xcf"
+ "|application/zip"
+ "|application/x-tar"
+ "|application/x-gtar"
+ "|application/x-gzip"
+ "|application/x-bzip"
+ "|application/x-bzip2"
+ "|application/java-vm"
+ "|audio/mpeg"
+ "|application/x-midi"
+ "|audio/midi"
+ "|audio/basic"
+ "|audio/x-wav"
+ "|audio/x-aiff"
+ "|application/mbox"
+ "|text/calendar"
+ "|text/css"
+ "|text/csv"
+ "|text/directory"
+ "|text/dns"
+ "|text/ecmascript"
+ "|text/enriched"
+ "|text/example"
+ "|text/javascript"
+ "|text/parityfec"
+ "|text/prs.fallenstein.rst"
+ "|text/prs.lines.tag"
+ "|text/red"
+ "|text/rfc822-headers"
+ "|text/richtext"
+ "|text/rtf"
+ "|text/rtp-enc-aescm128"
+ "|text/rtx"
+ "|text/sgml"
+ "|text/t140"
+ "|text/tab-separated-values"
+ "|text/troff"
+ "|text/ulpfec"
+ "|text/uri-list"
+ "|text/vnd.abc"
+ "|text/vnd.curl"
+ "|text/vnd.curl.dcurl"
+ "|text/vnd.curl.mcurl"
+ "|text/vnd.curl.scurl"
+ "|text/vnd.dmclientscript"
+ "|text/vnd.esmertec.theme-descriptor"
+ "|text/vnd.fly"
+ "|text/vnd.fmi.flexstor"
+ "|text/vnd.graphviz"
+ "|text/vnd.in3d.3dml"
+ "|text/vnd.in3d.spot"
+ "|text/vnd.iptc.newsml"
+ "|text/vnd.iptc.nitf"
+ "|text/vnd.latex-z"
+ "|text/vnd.motorola.reflex"
+ "|text/vnd.ms-mediapackage"
+ "|text/vnd.net2phone.commcenter.command"
+ "|text/vnd.si.uricatalogue"
+ "|text/vnd.sun.j2me.app-descriptor"
+ "|text/vnd.trolltech.linguist"
+ "|text/vnd.wap.si"
+ "|text/vnd.wap.sl"
+ "|text/vnd.wap.wml"
+ "|text/vnd.wap.wmlscript"
+ "|text/x-asm"
+ "|text/x-c"
+ "|text/x-diff"
+ "|text/x-fortran"
+ "|text/x-java-source"
+ "|text/x-pascal"
+ "|text/x-setext"
+ "|text/x-uuencode"
+ "|text/x-vcalendar"
+ "|text/x-vcard"
+ "|text/xml"
+ "|text/xml-external-parsed-entity)"
			</arg>
		</initMethod>
	</component>


	<component name="defaultRule" class="org.seasar.robot.rule.impl.RegexRule" >
		<property name="ruleId">"defaultRule"</property>
		<property name="responseProcessor">
			<component class="org.seasar.robot.processor.impl.DefaultResponseProcessor">
				<property name="transformer">fessTikaTransformer</property>
			</component>
		</property>
		<property name="allRequired">true</property>
		<initMethod name="addRule">
			<arg>"url"</arg>
			<arg>".*"</arg>
		</initMethod>
	</component>

</components>
