Support
Help Save Reptile!
Navigation

Essentials

Installation

Developers

P2P (content distribution)

Search Infrastructure

Services

Proposals

Resources

Overview

Reptile needs settings information so that users can specify runtime information about their peer and configure it to suit their needs.


Properties

All settings are be similar to Java system properties. For example the property reptile.setting.href-target would specify the name of a target when creating HTML anchors.

Every property has an associated type. For example it could be a boolean (true|false) a string, an integer, etc. We use ExtendedProperties to handle data typing.


Database

Each property is stored within the SETTING table in the database. This table only contains NAME and VALUE columns so we can pull properties out by name.


Extension

We have use a Xalan extenion named SettingsExtension so that we can access user settings from XSLT.

We also to support a test() method which takes a boolean property name. This should allow us to perform conditional execution on user defined settings within XSLT.


XML/XSL user input.

We use a user-settings.xml file to define user input information about each property we need. We then render a control which allows the user to input data and save it to the database with a SaveSettings action.



<settings xmlns="http://schemas.openprivacy.org/reptile/settings"
          title="Reptile user settings">

    <group name="General">

        <setting property="reptile.setting.href-target" type="string" multi="true">

            <question>How should Reptile link to external documents?</question>
            
            <option value="_top">Current frame</option>
            <option value="_new">New frame</option>
            
        </setting>
        
    </group>

</settings>
    

        


Currently defined settings

reptile.setting.href-target
Defines the browser window we should use when linking to external sites. For example _top is the current window and _new would create a new window.
reptile.settings.peer.jxta.title
Text for the title of the current JXTA peer.
reptile.settings.peer.jxta.description
Description for the title of the current JXTA peer.



Copyright © 2001-2003, OpenPrivacy.org