org.weborganic.bastille.pageseeder
Class PSConfiguration

java.lang.Object
  extended by org.weborganic.bastille.pageseeder.PSConfiguration

public final class PSConfiguration
extends Object

Configuration of the PageSeeder server that Bastille should use to connect.

Bastille can be configured to connect to a PageSeeder service using the properties are defined in the config-[mode].xml for the key "bastille.pageseeder".

To retrieve the PageSeeder server properties, use the getProperties().

The properties can contain the following keys:

For example:

   Properties pageseeder = PSConfiguration.getProperties();
   String host = pageseeder.getProperty("host");
   String port = pageseeder.getProperty("port", 8080);
   ...
 

The Bastille-PageSeeder properties can also be accessed directly using the Berlioz global settings.

For example: GlobalSettings.get("bastille.pageseeder.host")

Since:
0.6.5

Field Summary
static String BASTILLE_PAGESEEDER
          The key for the location of the PageSeeder properties in the configuration.
 
Method Summary
static Properties getProperties()
          Returns the configuration of the PageSeeder as a Properties instance.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BASTILLE_PAGESEEDER

public static final String BASTILLE_PAGESEEDER
The key for the location of the PageSeeder properties in the configuration.

See Also:
Constant Field Values
Method Detail

getProperties

public static Properties getProperties()
Returns the configuration of the PageSeeder as a Properties instance.

The properties are defined in the config-[mode].xml using the key "bastille.pageseeder".

Returns:
the properties of the PageSeeder server to connect to.