<?xml version="1.0" encoding="UTF-8"?><MetamergeConfig Cycle="4" UUID="f9b5a651-2be7-4654-a654-e600b6ab185f" created="Wed Apr 07 09:58:43 CEST 2010" createdBy="Administrator" main="TINA_WebServer" modified="Mon Apr 04 12:54:00 CEST 2011" modifiedBy="Administrator" project="RedPill" version="7.1">
    


<AssemblyLine name="TINA_WebServer">
        <LogEnabled>true</LogEnabled>
        <Settings>
            <parameter name="ALPoolSettingsDialog">false</parameter>
            <parameter name="automapattributes">false</parameter>
            <parameter name="createTombstones">false</parameter>
            <parameter name="debug">false</parameter>
            <parameter name="includeGlobalPrologs">true</parameter>
            <parameter name="maxread"/>
            <parameter name="nullBehaviorDialog">showNullBehavior</parameter>
            <parameter name="verbose"/>
        </Settings>
        <Hooks/>
        <CheckpointConfig/>
        <SandboxConfig/>
        <SimulationConfig>
            <SimulationStates>
                <Component name="If base -&gt; &quot;TDI&quot;?" state="Enabled"/>
                <Component name="TDI rockz" state="Enabled"/>
                <Component name="favicon" state="Enabled"/>
                <Component name="Return icon" state="Enabled"/>
                <Component name="Else service request" state="Enabled"/>
                <Component name="Return page" state="Enabled"/>
                <Component name="WebServer" state="Enabled"/>
            </SimulationStates>
            <ProxySettings/>
        </SimulationConfig>
        <LogConfig/>
        <ContainerEF name="EntryFeedContainer">
            <Connector name="WebServer">
                <InheritFrom>system:/Connectors/ibmdi.HTTPServer</InheritFrom>
                <ConnectorMode>Server</ConnectorMode>
                <ConnectorState>Enabled</ConnectorState>
                <Configuration>
                    <UserComment/>
                    <InheritFrom>[parent]</InheritFrom>
                    <parameter name="authConnector">(none)</parameter>
                    <parameter name="authRealm">IBM Tivoli Directory Integrator</parameter>
                    <parameter name="contentType">text/html</parameter>
                    <parameter name="debug">false</parameter>
                    <parameter name="headersAsProperties">false</parameter>
                    <parameter name="httpAuth">false</parameter>
                    <parameter name="msgChunked">false</parameter>
                    <parameter name="needClientAuth">false</parameter>
                    <parameter name="tcpDataAsProperties">true</parameter>
                    <parameter name="tcpPort">81</parameter>
                    <parameter name="useSSL">false</parameter>
                    <parameter name="userComment"/>
                </Configuration>
                <Parser>
                    <InheritFrom>[parent]</InheritFrom>
                    <Schema name="Input">
                        <InheritFrom>[parent]</InheritFrom>
                    </Schema>
                    <Schema name="Output">
                        <InheritFrom>[parent]</InheritFrom>
                    </Schema>
                </Parser>
                <AttributeMap name="Input">
                    <InheritFrom>[parent]</InheritFrom>
                    <AttributeMapItem>
                        <Name>*</Name>
                        <Type>simple</Type>
                        <Simple>*</Simple>
                    </AttributeMapItem>
                </AttributeMap>
                <AttributeMap name="Output">
                    <InheritFrom>[parent]</InheritFrom>
                    <AttributeMapItem>
                        <Name>*</Name>
                        <Type>simple</Type>
                        <Simple>*</Simple>
                    </AttributeMapItem>
                </AttributeMap>
                <DeltaSettings>
                    <WhenToCommit>After every database operation</WhenToCommit>
                    <Driver>CloudScape</Driver>
                </DeltaSettings>
                <Schema name="Input">
                    <InheritFrom>[parent]</InheritFrom>
                    <SchemaItem>
                        <Name>http.*</Name>
                        <Syntax>String</Syntax>
                        <Presence>Always</Presence>
                    </SchemaItem>
                    <SchemaItem>
                        <Name>http.Authorization</Name>
                        <Syntax>String</Syntax>
                    </SchemaItem>
                    <SchemaItem>
                        <Name>http.base</Name>
                        <Syntax>String</Syntax>
                        <Presence>Always</Presence>
                    </SchemaItem>
                    <SchemaItem>
                        <Name>http.body</Name>
                        <Syntax>String</Syntax>
                        <Presence>Always</Presence>
                    </SchemaItem>
                    <SchemaItem>
                        <Name>http.content-length</Name>
                        <Syntax>String</Syntax>
                        <Presence>Always</Presence>
                    </SchemaItem>
                    <SchemaItem>
                        <Name>http.content-type</Name>
                        <Syntax>String</Syntax>
                        <Presence>Always</Presence>
                    </SchemaItem>
                    <SchemaItem>
                        <Name>http.method</Name>
                        <Syntax>String</Syntax>
                        <Presence>Always</Presence>
                    </SchemaItem>
                    <SchemaItem>
                        <Name>http.qs.*</Name>
                        <Syntax>String</Syntax>
                    </SchemaItem>
                    <SchemaItem>
                        <Name>http.remote_pass</Name>
                        <Syntax>String</Syntax>
                    </SchemaItem>
                    <SchemaItem>
                        <Name>http.remote_user</Name>
                        <Syntax>String</Syntax>
                    </SchemaItem>
                    <SchemaItem>
                        <Name>http.url</Name>
                        <Syntax>String</Syntax>
                        <Presence>Always</Presence>
                    </SchemaItem>
                    <SchemaItem>
                        <Name>tcp.inputstream</Name>
                        <Syntax>InputStream</Syntax>
                    </SchemaItem>
                    <SchemaItem>
                        <Name>tcp.localHost</Name>
                        <Syntax>String</Syntax>
                    </SchemaItem>
                    <SchemaItem>
                        <Name>tcp.localIP</Name>
                        <Syntax>String</Syntax>
                    </SchemaItem>
                    <SchemaItem>
                        <Name>tcp.localPort</Name>
                        <Syntax>String</Syntax>
                    </SchemaItem>
                    <SchemaItem>
                        <Name>tcp.outputstream</Name>
                        <Syntax>OutputStream</Syntax>
                    </SchemaItem>
                    <SchemaItem>
                        <Name>tcp.remoteHost</Name>
                        <Syntax>String</Syntax>
                    </SchemaItem>
                    <SchemaItem>
                        <Name>tcp.remoteIP</Name>
                        <Syntax>String</Syntax>
                    </SchemaItem>
                    <SchemaItem>
                        <Name>tcp.remotePort</Name>
                        <Syntax>String</Syntax>
                    </SchemaItem>
                    <SchemaItem>
                        <Name>tcp.socket</Name>
                        <Syntax>Socket</Syntax>
                    </SchemaItem>
                </Schema>
                <Schema name="Output">
                    <InheritFrom>[parent]</InheritFrom>
                    <SchemaItem>
                        <Name>http.body</Name>
                        <Syntax>String|File|InputStream</Syntax>
                        <Presence>Always</Presence>
                    </SchemaItem>
                    <SchemaItem>
                        <Name>http.content-type</Name>
                        <Syntax>String</Syntax>
                        <Presence>Always</Presence>
                    </SchemaItem>
                    <SchemaItem>
                        <Name>http.redirect</Name>
                        <Syntax>String</Syntax>
                        <Presence>Optional</Presence>
                    </SchemaItem>
                    <SchemaItem>
                        <Name>http.status</Name>
                        <Syntax>String</Syntax>
                        <Presence>Always</Presence>
                    </SchemaItem>
                </Schema>
                <LinkCriteria>
                    <InheritFrom>[parent]</InheritFrom>
                </LinkCriteria>
                <Hooks>
                    <InheritFrom>[parent]</InheritFrom>
                </Hooks>
                <CheckpointConfig/>
                <SandboxConfig/>
                <Reconnect>
                    <InheritFrom>[parent]</InheritFrom>
                    <ReconnectRules/>
                </Reconnect>
                <Operations/>
                <PoolDefinition>
                    <InheritFrom>[parent]</InheritFrom>
                </PoolDefinition>
                <PoolInstance>
                    <Enabled>false</Enabled>
                    <ExhaustedPoolBehavior>Wait</ExhaustedPoolBehavior>
                </PoolInstance>
                <InitializeOption>0</InitializeOption>
            </Connector>
        </ContainerEF>
        <ContainerDF name="DataFlowContainer">
            <Branch name="If base -&gt; &quot;TDI&quot;?">
                <ALMap name="TDI rockz">
                    <AttributeMap name="Input">
                        <AttributeMapItem>
                            <Name>http.body</Name>
                            <Type>substitution</Type>
                            <Enabled>true</Enabled>
                            <Add>true</Add>
                            <Modify>true</Modify>
                            <Simple>http.body</Simple>
                            <SubstitutionTemplate><![CDATA[<html>
	<head>
		<title>TDI Rockz</title>
	</head>
	<body>
		<p>
			<center>
				<img border="0" src="NeoTheBunny.gif"/>
				<h1>TDI rockz</h1>
			</center>
		</p>
	</body>
</html>]]></SubstitutionTemplate>
                        </AttributeMapItem>
                    </AttributeMap>
                    <State>Enabled</State>
                </ALMap>
                <Conditions>
                    <BranchCondition>
                        <LeftHand>http.base</LeftHand>
                        <Operator>contains</Operator>
                        <RightHand>TDI</RightHand>
                        <Negate>false</Negate>
                        <CaseSensitive>false</CaseSensitive>
                        <MatchAny>false</MatchAny>
                    </BranchCondition>
                </Conditions>
                <MatchAny>false</MatchAny>
                <Enabled>true</Enabled>
                <Type>0</Type>
            </Branch>
            <Branch name="favicon">
                <ALMap name="Return icon">
                    <InheritFrom>[no inheritance]</InheritFrom>
                    <AttributeMap name="Input">
                        <InheritFrom>[parent]</InheritFrom>
                        <AttributeMapItem>
                            <Name>http.body</Name>
                            <Type>advanced</Type>
                            <Enabled>true</Enabled>
                            <Add>true</Add>
                            <Modify>true</Modify>
                            <Script><![CDATA[str = "AAABAAEAICAAAAEACACoCAAAFgAAACgAAAAgAAAAQAAAAAEACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8AsHZPAEmhxwDr9PkA8P//ADyXwQDEmHsAAHSsAMj3/gB/udUAzaiKADuZwwCze1UAYa3PAODPvQDw5d4A17qnANOynADq/P0A+/XsAOH6/gDr3dMAz+XvAMujhADBP2kAtX9aAMWUcQBAl8EAvj9uADWWwQDn0r8A0aOCABeEuAC5hWIAte78ADaWwQDClnYAvO/6ANvBqwDaxbIApun7AMX3/gCX4/gAyJ59AIrQ5gCo4vEAIIW2AL4/bADXuaAAGoK0AJfl+wDh1sYA7P7/AM2liAC5P1sA3Pj+AGrA4wCc5foA1bieANj5/gCt6/wA17ijAFWtzwCU4PUA+vfyAOT+/wDs6eAAv4tmAIK71gDSr5IA6tnKAN/r4QDfyrcAMqTUAD/c8wDjy7YA2e/oAMebewDNpYUA2LujAFyqzQA5lsEAzqs/AEa45AC/3OoA4tLCAJ/L4ADSsZQA0K0/ANu/pwCweVQAjOH6ALF4UgDS9v4AEH2xAM6vlQDdybUA3MSvAL8/cACzflsAvoxqAO/2+gCFzekAP83mAMQ/fQBoudcAY8jrAN3GsAB20O4Ar3dSANS0mQCF3/kAk+P6AF7L8gDy9fAA5/z/ANq+pQDr7+gAz/r1AOLOuwC6h2UA0a6SAHC/3gDH8v0AyaCAAObUyADQqz8AL5/PAOnUwgDGmHcAcrLRAJXT6gDe2csAe7nWANGxlwBaut0AFH+yAOHZywDe5t0AzKOFAPby6gAGeK8A8PLtAFu12AC+8P0Atj9cALmGYgDz6N0A6vv6AMGScgBYp8sA28KsALZ6UQBPt9wAsnpUANa2oADt6t8AidfxAMOZegDWtT8A6P//AOfl2gDz//8AsHBHAE3B6gDx4tQA5tPBAN/MuQByxOQAwpRzAPLm2gAFerEA3MOyAPH9/ADA8P0A5tXEAG7I5gCZ5vsAw5JvACWMvQD2/fwA797OAMaZeADIo4UAy6aKAM33/gDH3dAAwD9qAF+33QC/t6EAoej7AK92UAC68/4AyqODAM2mjADl+/4A7+PWACU/wADj8uwAuolnANvKtwDTtp8AyaKCAA19sQCZ1+4AP9TuAO7t5gALea8AvIZhAIPX8gArjrwA6PbxAOHLvQDPsZYAf8nlADSk0wDQrD8A8vr3AOPd0AAYhLYAMI68AABzqwDfw6sA7drHAOvczQDn4tcA3+71ANH4/gB+x+AAx7GZAHzb+QDt8esA3cOsALuFYACJ2fIAP8LbANOylgDAP2kAQJ/GANm8pQDu5NoAP5/LAN7JtQDRspsAP9DmAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fWsGQEBAQYP9fX19fX19fX19fX19fX19fX19fX19fX1EQFaY2Ntvwb19fX19fX19fX19fX19fX19fX19fX19Q9clSSp0KNcAfX19fUJGxsbVvX19fX19fX19fX19fX1EU5OfLZDmFoB9fX19cuHU3+r6/X19fX19fX19fX1EGIB3sEXTUM2GQH19fX1HcDRSUkuCRb19fX19fX19RBkHAweCjUrsrvHAfX1AwMdKUqZpMWzP1b19fX19fX1Bt8cnktSChdNPxwB9Q0CAh0pP7Bq19bxXvX19fX19UCStSu4S1jYCosXJAH1CxIEIwgqzWxTIrwH9fX1ISEhkSQeyoZ0RVdFeVhoAfULEgQjCDJK6nEIOAeIMTEYGBg2mx4KYVlXbjBPMLcB9Q0CAiMIMio/5gg4z2ksLB8fH+09RjpI6OxPJmGXUgH19QMDUbmxOTlv46gg9CUlGhoa6T3wyFWmOibyp2BfAfX1AwNROzwovls7ZiDkLS0MDAyawoyEDkZZYA5VDl8B9Q0CAgUUriIoWxTMIO4+PhUVFX0vQEcn4GsOM4kz1QH1CxIEBXNdeyJwQYPdgkRE9fX19Qal0yeTSLrhodrlAfULEgQFNDddPz9BZwf19fX19fX1EC+vfhN3isbnTL0B9Q0CAgUEwzcleqBQLvX19fX19fX1EGIBqsRC2bR1yQH19QMDBQQ0FDzb0l4W9fX19fX19fX19RGfE0KUrc7zAfX19fUFogQUP9xUZfX19fX19fX19fX1DxmcdnKOTO8B9fX19QdQhZYHVPX19fX19fX19fX19fX1EWSAExNHNQb19fX1FgkJCeL19fX19fX19fX19fX19fX11HgBAQEGD/X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f//////////////////////gP///wD///4A8H/+APA/+ADwD/AAwAfwAIAH4ACABwAAgAAAAIAAAADAAAAAwAAAAIAAAACAAPAAgAfwAIAH+ADAB/4A8A/+APA//wDwf/+A////////////////////////////////////////"

return system.base64Decode(str)]]></Script>
                            <Simple/>
                        </AttributeMapItem>
                    </AttributeMap>
                    <State>Enabled</State>
                </ALMap>
                <Conditions>
                    <BranchCondition>
                        <LeftHand>http.base</LeftHand>
                        <Operator>startsWith</Operator>
                        <RightHand>/favicon</RightHand>
                        <MatchAny>false</MatchAny>
                    </BranchCondition>
                </Conditions>
                <MatchAny>false</MatchAny>
                <Enabled>true</Enabled>
                <Type>1</Type>
            </Branch>
            <Branch name="Else service request">
                <Connector name="Return page">
                    <ConnectorMode>Script</ConnectorMode>
                    <ConnectorState>Enabled</ConnectorState>
                    <Configuration/>
                    <ConnectorScript><![CDATA[// At this point, we are servicing file requests like a web server.
//
// ---------- Get URL base
var base = work.getString( "http.base" );
var path = "Configz/redpill/html/";

if (base == null)
	base = new java.lang.String("");

// ---------- Set return content-type
if ( base.endsWith(".gif") )
	work.setAttribute( "http.content-type", "image/gif" )
else
if ( base.endsWith(".jpg") || base.endsWith(".jpeg") )
    work.setAttribute( "http.content-type", "image/jpeg" )
else
if ( base.endsWith(".css") )
    work.setAttribute( "http.content-type", "text/css" )
else
    work.setAttribute( "http.content-type", "text/html" );

// ---------- Check for null/root requests and hackers
if ((base == "/") || (base == "") || (base.indexOf("..") >= 0))
    base = "/index.html";

// ---------- Try to open requested file
var file = new java.io.File( path + base );

// ---------- If it exists, return it, else 404 FILE NOT FOUND
if ( file.exists() ) 
    work.setAttribute( "http.body", file );
else 
    work.setAttribute( "http.status", "NOT FOUND" );

// ---------- Log it
task.logmsg ( "File request: " + file );

]]></ConnectorScript>
                    <ComputeChanges>true</ComputeChanges>
                    <DeltaBehavior>0</DeltaBehavior>
                    <DeltaStrict>true</DeltaStrict>
                    <Parser>
                        <Schema name="Input">
                            <InheritFrom>[parent]</InheritFrom>
                        </Schema>
                        <Schema name="Output">
                            <InheritFrom>[parent]</InheritFrom>
                        </Schema>
                    </Parser>
                    <AttributeMap name="Input"/>
                    <AttributeMap name="Output"/>
                    <DeltaSettings>
                        <Driver>BTree</Driver>
                    </DeltaSettings>
                    <Schema name="Input">
                        <InheritFrom>[parent]</InheritFrom>
                    </Schema>
                    <Schema name="Output">
                        <InheritFrom>[parent]</InheritFrom>
                    </Schema>
                    <LinkCriteria/>
                    <Hooks/>
                    <CheckpointConfig/>
                    <SandboxConfig/>
                    <Reconnect>
                        <InheritFrom>[parent]</InheritFrom>
                        <ReconnectRules/>
                    </Reconnect>
                    <Operations/>
                    <OperationCarrierIsProperty>false</OperationCarrierIsProperty>
                    <PoolDefinition>
                        <InheritFrom>[parent]</InheritFrom>
                    </PoolDefinition>
                    <PoolInstance/>
                    <InitializeOption>0</InitializeOption>
                </Connector>
                <Conditions/>
                <MatchAny>false</MatchAny>
                <Enabled>true</Enabled>
                <Type>2</Type>
            </Branch>
        </ContainerDF>
        <ThreadOptions>
            <parameter name="assemblyline.ehc.executeProlog">false</parameter>
            <parameter name="assemblyline.ehc.maxInstance">10</parameter>
            <parameter name="assemblyline.ehc.minPrepare">5</parameter>
        </ThreadOptions>
        <Operations/>
        <InitParams>
            <Schema name="AssemblyLineInitParams"/>
        </InitParams>
    </AssemblyLine>
</MetamergeConfig>