org.apache.directory.shared.ldap.codec
Class LdapProvider
java.lang.Object
org.apache.directory.shared.ldap.message.spi.Provider
org.apache.directory.shared.ldap.codec.LdapProvider
public class LdapProvider
- extends Provider
The specific BER provider for LDAP.
- Author:
- Apache Directory Project
$Rev: 903719 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 binarymaxPDUSize - the maximum size a PDU can be
- Returns:
- the provider's decoder.
- Throws:
ProviderException - if the provider or its decoder cannot be found
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.