org.apache.directory.shared.ldap.codec
Class LdapProvider

java.lang.Object
  extended by org.apache.directory.shared.ldap.message.spi.Provider
      extended by org.apache.directory.shared.ldap.codec.LdapProvider

public class LdapProvider
extends Provider

The specific BER provider for LDAP.

Author:
Apache Directory Project $Rev: 903719 $

Field Summary
 
Fields inherited from class org.apache.directory.shared.ldap.message.spi.Provider
BERLIB_PROPFILE, BERLIB_PROVIDER, DEFAULT_PROVIDER, PROVIDER_MONITOR_KEY, USING_DEFAULTS_MSG
 
Method Summary
 ProviderDecoder getDecoder(BinaryAttributeDetector binaryAttributeDetector, int maxPDUSize)
          Gets the decoder associated with this provider.
 ProviderEncoder getEncoder()
          Gets the encoder associated with this provider.
static Provider getProvider()
          Gets a handle on the singleton LdapProvider.
 
Methods inherited from class org.apache.directory.shared.ldap.message.spi.Provider
getEnvironment, getName, getProvider, getVendor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getProvider

public static Provider getProvider()
Gets a handle on the singleton LdapProvider. Only one instance should have to be instantiated for the entire jvm.

Returns:
the singleton SnaccProvider instance

getEncoder

public ProviderEncoder getEncoder()
                           throws ProviderException
Gets the encoder associated with this provider.

Specified by:
getEncoder in class Provider
Returns:
the provider's encoder.
Throws:
ProviderException - if the provider or its encoder cannot be found

getDecoder

public ProviderDecoder getDecoder(BinaryAttributeDetector binaryAttributeDetector,
                                  int maxPDUSize)
                           throws ProviderException
Gets the decoder associated with this provider.

Specified by:
getDecoder in class Provider
Parameters:
binaryAttributeDetector - detects whether or not attributes are binary
maxPDUSize - the maximum size a PDU can be
Returns:
the provider's decoder.
Throws:
ProviderException - if the provider or its decoder cannot be found


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.