<?xml version="1.0" encoding="UTF-8"?>
<MetamergeConfig created="Sun Apr 02 17:38:47 CEST 2006" createdBy="NO010196" modified="Sun Apr 02 18:07:46 CEST 2006" modifiedBy="NO010196" version="1.1">
<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="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></Script>
<Simple>*</Simple>
</AttributeMapItem>
</AttributeMap>
<AttributeMap name="Output">
<InheritFrom>[parent]</InheritFrom>
<AttributeMapItem>
<Name>*</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Script></Script>
<Simple>*</Simple>
</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>
<parameter name="autoreconnect">true</parameter>
<parameter name="numberOfRetries">1</parameter>
<parameter name="retryDelay">10</parameter>
</Reconnect>
</Connector>
</ContainerEF>
<ContainerDF name="DataFlowContainer">
<Branch name="IF TDI detected">
<ALMap name="Return special webpage">
<AttributeMap name="Input">
<AttributeMapItem>
<Name>http.body</Name>
<Type>advanced</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>
</AttributeMapItem>
<AttributeMapItem>
<Name>http.content-type</Name>
<Type>advanced</Type>
<Enabled>false</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Script>ret.value = "text/html";</Script>
<Simple>http.content-type</Simple>
</AttributeMapItem>
</AttributeMap>
<Enabled>true</Enabled>
</ALMap>
<Connector name="LogAndExitFlow">
<ConnectorMode>Script</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration/>
<ConnectorScript><![CDATA[task.logmsg(" *** Detected \"TDI\" ");

// Have to exit the "hidden" Loop: the Feeds Connector
// driving the Flow section one loop for each entry
// read/received. 
//
// Using .exitBranch() without params means leave the
// innermost Loop/Branch. By specifying to exit the
// Loop called "Flow", I am telling the AL to pass
// control to the Response-behavior of the Server Mode
// Connector (which sends back the web page or GIF image).
//
system.exitBranch( "Flow" );
]]></ConnectorScript>
<ComputeChanges>true</ComputeChanges>
<DeltaBehavior>0</DeltaBehavior>
<DeltaStrict>true</DeltaStrict>
<Parser/>
<AttributeMap name="Input"/>
<AttributeMap name="Output"/>
<DeltaSettings/>
<Schema name="Input"/>
<Schema name="Output"/>
<LinkCriteria/>
<Hooks/>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect/>
</Connector>
<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>
</Branch>
<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/rdpll/html/";

// ---------- 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
    work.setAttribute( "http.content-type", "text/html" );

// ---------- Check for null/root requests, if so return main page.
//            Could also check for ".." (hacking)
if ( base == "/" )
    base = "/" + "index.html";

// ---------- Try to open requested file
var file = new java.io.File( path + base );

// ---------- Log it
task.logmsg ( "File request: " + file );

// ---------- 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" );
]]></ConnectorScript>
<ComputeChanges>true</ComputeChanges>
<DeltaBehavior>0</DeltaBehavior>
<DeltaStrict>true</DeltaStrict>
<Parser/>
<AttributeMap name="Input"/>
<AttributeMap name="Output"/>
<DeltaSettings/>
<Schema name="Input"/>
<Schema name="Output"/>
<LinkCriteria/>
<Hooks/>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect/>
</Connector>
</ContainerDF>
<ThreadOptions>
<parameter name="assemblyline.ehc.maxInstance">10</parameter>
<parameter name="assemblyline.ehc.minPrepare">5</parameter>
</ThreadOptions>
<CallReturn>
<Schema name="Input"/>
<Schema name="Output"/>
<AttributeMap name="Output"/>
<AttributeMap name="Input"/>
</CallReturn>
</AssemblyLine>
</Folder>
<Folder name="Connectors"/>
<Folder name="Parsers"/>
<Folder name="EventHandlers"/>
<Folder name="Scripts"/>
<JavaLibraries/>
<JavaProperties/>
<Folder name="Includes"/>
<Folder name="ExternalProperties">
<ExternalProperties name=" Default">
<Encrypted>false</Encrypted>
</ExternalProperties>
</Folder>
<Folder name="Config">
<LogConfig name="Logging"/>
<InstanceProperties name="AutoStart">
<AutoStart>
<ParameterList>
<parameter name="Name">AssemblyLines/TINA_WebSrv</parameter>
</ParameterList>
</AutoStart>
</InstanceProperties>
</Folder>
<Folder name="Functions"/>
<Folder name="AttributeMaps"/>
</MetamergeConfig>
