<?xml version="1.0" encoding="UTF-8"?>
<MetamergeConfig created="Wed Sep 20 11:49:09 CEST 2006" createdBy="NO010196" modified="Wed Sep 20 11:49:09 CEST 2006" modifiedBy="NO010196" version="1.2">
<Folder name="AssemblyLines">
<AssemblyLine name="TINA_WebSrv">
<LogEnabled>true</LogEnabled>
<Settings>
<parameter name="ALPoolSettingsDialog">showALPoolSettings</parameter>
<parameter name="ScriptEngine">JavaScript</parameter>
<parameter name="automapattributes">false</parameter>
<parameter name="createTombstones">false</parameter>
<parameter name="debug">false</parameter>
<parameter name="includeGlobalPrologs">true</parameter>
<parameter name="nullBehaviorDialog">showNullBehavior</parameter>
</Settings>
<Hooks/>
<CheckpointConfig/>
<SandboxConfig/>
<LogConfig/>
<ContainerEF name="EntryFeedContainer">
<Connector name="WebServer">
<InheritFrom>system:/Connectors/ibmdi.HTTPServer</InheritFrom>
<ConnectorMode>Server</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration>
<InheritFrom>[parent]</InheritFrom>
<parameter name="debug">false</parameter>
<parameter name="tcpPort">81</parameter>
<parameter name="useSSL">false</parameter>
</Configuration>
<ComputeChanges>true</ComputeChanges>
<DeltaBehavior>0</DeltaBehavior>
<DeltaStrict>true</DeltaStrict>
<Parser>
<InheritFrom>[parent]</InheritFrom>
</Parser>
<AttributeMap name="Input">
<InheritFrom>[parent]</InheritFrom>
<AttributeMapItem>
<Name>*</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Script/>
<Simple>*</Simple>
<SubstitutionTemplate>null</SubstitutionTemplate>
</AttributeMapItem>
</AttributeMap>
<AttributeMap name="Output">
<InheritFrom>[parent]</InheritFrom>
<AttributeMapItem>
<Name>*</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Script/>
<Simple>*</Simple>
<SubstitutionTemplate>null</SubstitutionTemplate>
</AttributeMapItem>
</AttributeMap>
<DeltaSettings>
<Driver>CloudScape</Driver>
</DeltaSettings>
<Schema name="Input">
<InheritFrom>[parent]</InheritFrom>
</Schema>
<Schema name="Output">
<InheritFrom>[parent]</InheritFrom>
</Schema>
<LinkCriteria>
<InheritFrom>[parent]</InheritFrom>
</LinkCriteria>
<Hooks>
<InheritFrom>[parent]</InheritFrom>
<Hook>
<Name>before_reply</Name>
<Script>task.dumpEntry(conn);</Script>
<Enabled>true</Enabled>
<DebugBreak>false</DebugBreak>
</Hook>
</Hooks>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
<parameter name="autoreconnect">true</parameter>
<parameter name="numberOfRetries">1</parameter>
<parameter name="retryDelay">10</parameter>
</Reconnect>
<Operations/>
<OperationCarrierIsProperty>false</OperationCarrierIsProperty>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance/>
<InitializeOption>0</InitializeOption>
</Connector>
</ContainerEF>
<ContainerDF name="DataFlowContainer">
<Branch name="IF TDI detected">
<ALMap name="TDI Rockz">
<AttributeMap name="Input">
<AttributeMapItem>
<Name>http.body</Name>
<Type>substitution</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Script><![CDATA[ret.value = "<html>" +
			   "<head>" +
			      "<meta http-equiv='Content-Language' content='no-bok'>" +
   			      "<meta http-equiv='Content-Type' content='text/html; charset=windows-1252'>" +
			      "<title>Detected TDI</title>" +
			   "</head>" +
               "<body>" +
			      "<p><br><br><br><h2>Xtreme Integration Zone</h2></p>" +
			   "</body>" +
 			"</html>";
]]></Script>
<Simple>http.base</Simple>
<SubstitutionTemplate><![CDATA[<html>
	<head>
		<title>Tivoli Directory Integrator</title>
	</head>
	<body>
		<p>
			<center>
				<img border="0" src="NeoTheBunny.gif"/>
				<h1>TDI rockz</h1>
			</center>
		</p>
	</body>
</html>]]></SubstitutionTemplate>
</AttributeMapItem>
</AttributeMap>
<Enabled>true</Enabled>
</ALMap>
<Conditions>
<BranchCondition>
<LeftHand>http.base</LeftHand>
<Operator>contains</Operator>
<RightHand>tdi</RightHand>
<Negate>false</Negate>
<CaseSensitive>false</CaseSensitive>
</BranchCondition>
</Conditions>
<MatchAny>false</MatchAny>
<Enabled>true</Enabled>
<Type>0</Type>
</Branch>
<Branch name="ELSE get file">
<Connector name="ReturnWebPage">
<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 = "configs/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/>
<AttributeMap name="Input"/>
<AttributeMap name="Output"/>
<DeltaSettings>
<Driver>BTree</Driver>
</DeltaSettings>
<Schema name="Input"/>
<Schema name="Output"/>
<LinkCriteria/>
<Hooks/>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
</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.maxInstance">10</parameter>
<parameter name="assemblyline.ehc.minPrepare">5</parameter>
</ThreadOptions>
<Operations>
<Operation name="Default">
<Schema name="Input"/>
<Schema name="Output"/>
<AttributeMap name="Input"/>
<AttributeMap name="Output"/>
<Public>true</Public>
</Operation>
</Operations>
</AssemblyLine>
</Folder>
<Folder name="Connectors"/>
<Folder name="Parsers"/>
<Folder name="EventHandlers"/>
<Folder name="Scripts"/>
<JavaLibraries/>
<JavaProperties/>
<Folder name="Includes"/>
<Folder name="Config">
<LogConfig name="Logging"/>
<InstanceProperties name="AutoStart">
<AutoStart>
<ParameterList>
<parameter name="Name">AssemblyLines/TINA_WebSrv</parameter>
</ParameterList>
</AutoStart>
</InstanceProperties>
<TombstonesConfig name="Tombstones"/>
</Folder>
<Folder name="Functions"/>
<Folder name="AttributeMaps"/>
<Properties name="Properties">
<Stores>
<PropertyStore name="Solution-Properties">
<Parser/>
<RawConnector>
<InheritFrom>system:/Connectors/ibmdi.Properties</InheritFrom>
<parameter name="collectionType">Solution-Properties</parameter>
</RawConnector>
<Key>key</Key>
<Value>value</Value>
<ReadOnly>false</ReadOnly>
<InitialLoad>true</InitialLoad>
<CacheTimeout>0</CacheTimeout>
</PropertyStore>
<PropertyStore name="Global-Properties">
<Parser/>
<RawConnector>
<InheritFrom>system:/Connectors/ibmdi.Properties</InheritFrom>
<parameter name="collectionType">Global-Properties</parameter>
</RawConnector>
<Key>key</Key>
<Value>value</Value>
<ReadOnly>false</ReadOnly>
<InitialLoad>true</InitialLoad>
<CacheTimeout>0</CacheTimeout>
</PropertyStore>
<PropertyStore name="Java-Properties">
<Parser/>
<RawConnector>
<InheritFrom>system:/Connectors/ibmdi.Properties</InheritFrom>
<parameter name="collectionType">Java-Properties</parameter>
</RawConnector>
<Key>key</Key>
<Value>value</Value>
<ReadOnly>false</ReadOnly>
<InitialLoad>true</InitialLoad>
<CacheTimeout>0</CacheTimeout>
</PropertyStore>
<PropertyStore name="System-Properties">
<Parser/>
<RawConnector>
<InheritFrom>system:/Connectors/ibmdi.Properties</InheritFrom>
<parameter name="collectionType">System-Properties</parameter>
</RawConnector>
<Key>key</Key>
<Value>value</Value>
<ReadOnly>false</ReadOnly>
<InitialLoad>true</InitialLoad>
<CacheTimeout>0</CacheTimeout>
</PropertyStore>
</Stores>
</Properties>
</MetamergeConfig>
