org.apache.directory.server.protocol.shared
Class ServiceConfiguration

java.lang.Object
  extended byorg.apache.directory.server.core.configuration.Configuration
      extended byorg.apache.directory.server.protocol.shared.ServiceConfiguration
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable
Direct Known Subclasses:
ChangePasswordConfiguration, DnsConfiguration, KdcConfiguration, NtpConfiguration

public abstract class ServiceConfiguration
extends Configuration

Base class shared by all protocol providers for configuration.

Version:
$Rev: 434432 $, $Date: 2006-08-24 18:52:26 +0200 (Thu, 24 Aug 2006) $
Author:
Apache Directory Project
See Also:
Serialized Form

Field Summary
static java.lang.String APACHE_FACTORY_PID_KEY
           
static java.lang.String APACHE_SERVICE_CONFIGURATION
           
static java.lang.String APACHE_SERVICE_PID_KEY
           
static java.lang.String BUFFER_SIZE_KEY
          the prop key const for buffer.size
static java.lang.String CATALOG_BASEDN_KEY
          the prop key const for the catalog's base DN
protected  java.util.Map configuration
          the map of configuration
static int DEFAULT_BUFFER_SIZE
          the default buffer size
static java.lang.String DEFAULT_ENTRY_BASEDN
           
static java.lang.String DEFAULT_INITIAL_CONTEXT_FACTORY
           
static java.lang.String ENTRY_BASEDN_KEY
          The key of the property specifying the single location where entries are stored.
static java.lang.String INITIAL_CONTEXT_FACTORY_KEY
           
static java.lang.String IP_ADDRESS_KEY
          the prop key const for the port
static java.lang.String IP_PORT_KEY
          the prop key const for the port
static int MINUTE
          the number of milliseconds in a minute
static java.lang.String SERVICE_FACTORYPID
           
static java.lang.String SERVICE_PID
           
 
Fields inherited from class org.apache.directory.server.core.configuration.Configuration
DEFAULT_INSTANCE_ID, JNDI_KEY
 
Constructor Summary
ServiceConfiguration()
           
 
Method Summary
protected  java.lang.String get(java.lang.String key)
           
 java.lang.String getCatalogBaseDn()
           
 java.lang.String getEntryBaseDn()
           
 java.lang.String getInitialContextFactory()
           
protected  void loadProperties(java.lang.String prefix, java.util.Map properties, int strategy)
           
 java.util.Hashtable toJndiEnvironment()
          Converts this configuration to JNDI environment Hashtable.
 
Methods inherited from class org.apache.directory.server.core.configuration.Configuration
clone, getInstanceId, setInstanceId, toConfiguration, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IP_PORT_KEY

public static final java.lang.String IP_PORT_KEY
the prop key const for the port

See Also:
Constant Field Values

IP_ADDRESS_KEY

public static final java.lang.String IP_ADDRESS_KEY
the prop key const for the port

See Also:
Constant Field Values

CATALOG_BASEDN_KEY

public static final java.lang.String CATALOG_BASEDN_KEY
the prop key const for the catalog's base DN

See Also:
Constant Field Values

ENTRY_BASEDN_KEY

public static final java.lang.String ENTRY_BASEDN_KEY
The key of the property specifying the single location where entries are stored. If this property is not set the store will search the system partition configuration for catalog entries.

See Also:
Constant Field Values

INITIAL_CONTEXT_FACTORY_KEY

public static final java.lang.String INITIAL_CONTEXT_FACTORY_KEY
See Also:
Constant Field Values

APACHE_SERVICE_PID_KEY

public static final java.lang.String APACHE_SERVICE_PID_KEY
See Also:
Constant Field Values

APACHE_FACTORY_PID_KEY

public static final java.lang.String APACHE_FACTORY_PID_KEY
See Also:
Constant Field Values

BUFFER_SIZE_KEY

public static final java.lang.String BUFFER_SIZE_KEY
the prop key const for buffer.size

See Also:
Constant Field Values

DEFAULT_ENTRY_BASEDN

public static final java.lang.String DEFAULT_ENTRY_BASEDN
See Also:
Constant Field Values

DEFAULT_INITIAL_CONTEXT_FACTORY

public static final java.lang.String DEFAULT_INITIAL_CONTEXT_FACTORY
See Also:
Constant Field Values

APACHE_SERVICE_CONFIGURATION

public static final java.lang.String APACHE_SERVICE_CONFIGURATION
See Also:
Constant Field Values

SERVICE_PID

public static final java.lang.String SERVICE_PID
See Also:
Constant Field Values

SERVICE_FACTORYPID

public static final java.lang.String SERVICE_FACTORYPID
See Also:
Constant Field Values

DEFAULT_BUFFER_SIZE

public static final int DEFAULT_BUFFER_SIZE
the default buffer size

See Also:
Constant Field Values

MINUTE

public static final int MINUTE
the number of milliseconds in a minute

See Also:
Constant Field Values

configuration

protected java.util.Map configuration
the map of configuration

Constructor Detail

ServiceConfiguration

public ServiceConfiguration()
Method Detail

getCatalogBaseDn

public java.lang.String getCatalogBaseDn()

getEntryBaseDn

public java.lang.String getEntryBaseDn()

getInitialContextFactory

public java.lang.String getInitialContextFactory()

toJndiEnvironment

public java.util.Hashtable toJndiEnvironment()
Description copied from class: Configuration
Converts this configuration to JNDI environment Hashtable. This method simple returns a Hashtable that contains an entry whose key is Configuration.JNDI_KEY and whose value is this.

Overrides:
toJndiEnvironment in class Configuration

loadProperties

protected void loadProperties(java.lang.String prefix,
                              java.util.Map properties,
                              int strategy)

get

protected java.lang.String get(java.lang.String key)