All Downloads are FREE. Search and download functionalities are using the official Maven repository.

s2robot.rule.xml Maven / Gradle / Ivy

The newest version!
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE components PUBLIC "-//DBFLUTE//DTD LastaDi 1.0//EN"
	"http://dbflute.org/meta/lastadi10.dtd">
<components namespace="s2robot">
	<include path="s2robot/container.xml" />
	<include path="s2robot/transformer.xml" />

	<component name="ruleManager"
		class="org.codelibs.robot.rule.impl.RuleManagerImpl" instance="prototype">
		<postConstruct name="addRule">
			<arg>sitemapsRule</arg>
		</postConstruct>
		<postConstruct name="addRule">
			<arg>fileRule</arg>
		</postConstruct>
	</component>

	<component name="sitemapsRule" class="org.codelibs.robot.rule.impl.SitemapsRule">
		<property name="ruleId">"sitemapsRule"</property>
		<property name="responseProcessor">
			<component
				class="org.codelibs.robot.processor.impl.SitemapsResponseProcessor">
			</component>
		</property>
		<postConstruct name="addRule">
			<arg>"url"</arg>
			<arg>".*sitemap.*"</arg>
		</postConstruct>
	</component>

	<component name="fileRule" class="org.codelibs.robot.rule.impl.RegexRule">
		<property name="ruleId">"fileRule"</property>
		<property name="defaultRule">true</property>
		<property name="responseProcessor">
			<component
				class="org.codelibs.robot.processor.impl.DefaultResponseProcessor">
				<property name="transformer">fileTransformer</property>
				<property name="successfulHttpCodes">(int[])[200]</property>
				<property name="notModifiedHttpCodes">(int[])[304]</property>
			</component>
		</property>
	</component>
</components>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy