The Defaults element allows for the definition of Properties that are made available for reference by other Properties using the "%{property_name}" syntax. Properties are NOT automatically copied into the other Properties defined in the configuration file. Example of the use of a Property: <Defaults>
<Properties>
<Property name= "cookie.name" value= " OPENPTKSESSIONID " />
</Properties>
</Defaults> Defines the property cookie.name, which when referenced in the following Property to Clients <Clients>
<Properties>
<Property name="openptk.cookie.name" value="%{cookie.name}"/>
</Properties> ... </Clients>
sets the openptk.cookie.name to OPENPTKSESSIONID. Essentially, turns this 2nd example into: <Clients>
<Properties>
<Property name="openptk.cookie.name" value="OPENPTKSESSIONID"/>
</Properties>
...
</Clients>
Syntax
<Defaults>
<Properties>
<Property name= "debug.level" value= "4" />
<Property name= "..." value= "..." />
</Properties>
</Defaults>
Arguments
None
Properties
Name |
Required |
Description |
Example Value |
debug.level |
No |
Specifies what level of debugging data should be sent to the Logger. A value of "0" turns off all debugging output (only INFO and ERRORS are sent to the Logger. To turn on the debug out, set the value between "1" and "4". The higher the number, the more details. |
4 |
timeout.read | No | Variable primarily used by a Context when the TimeContext class is being used. It sets the number of milliseconds the Context READ operation will wait before it will "time out" and return an error | 20000 | timeout.write | No | Variable primarily used by a Context when the TimeContext class is being used. It sets the number of milliseconds the Context WRITE operation will wait before it will "time out" and return an error | 20000 |
Parent Element
<OpenPTK>
Child Element(s)
|