org.ldaptive.provider
Class ProviderConfig<C>

java.lang.Object
  extended by org.ldaptive.AbstractConfig
      extended by org.ldaptive.provider.ProviderConfig<C>
Type Parameters:
C - type of control produced by the control processor
Direct Known Subclasses:
JndiProviderConfig

public class ProviderConfig<C>
extends AbstractConfig

Contains configuration data common to providers.

Version:
$Revision: 2990 $ $Date: 2014-06-02 16:52:22 -0400 (Mon, 02 Jun 2014) $
Author:
Middleware Services

Field Summary
protected  org.slf4j.Logger logger
          Logger for this class.
 
Constructor Summary
ProviderConfig()
           
 
Method Summary
 ConnectionStrategy getConnectionStrategy()
          Returns the connection strategy.
 ControlProcessor<C> getControlProcessor()
          Returns the control processor.
 ResultCode[] getOperationExceptionResultCodes()
          Returns the result codes that trigger an operation exception.
 Map<String,Object> getProperties()
          Returns provider specific properties.
 void setConnectionStrategy(ConnectionStrategy strategy)
          Sets the connection strategy.
 void setControlProcessor(ControlProcessor<C> processor)
          Sets the control processor.
 void setOperationExceptionResultCodes(ResultCode... codes)
          Sets the result codes that trigger an operation exception.
 void setProperties(Map<String,Object> props)
          Sets provider specific properties.
 String toString()
          
 
Methods inherited from class org.ldaptive.AbstractConfig
checkImmutable, checkStringInput, makeImmutable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

logger

protected final org.slf4j.Logger logger
Logger for this class.

Constructor Detail

ProviderConfig

public ProviderConfig()
Method Detail

getOperationExceptionResultCodes

public ResultCode[] getOperationExceptionResultCodes()
Returns the result codes that trigger an operation exception.

Returns:
ldap result codes

setOperationExceptionResultCodes

public void setOperationExceptionResultCodes(ResultCode... codes)
Sets the result codes that trigger an operation exception.

Parameters:
codes - ldap result codes

getProperties

public Map<String,Object> getProperties()
Returns provider specific properties.

Returns:
map of additional provider properties

setProperties

public void setProperties(Map<String,Object> props)
Sets provider specific properties.

Parameters:
props - map of additional provider properties

getConnectionStrategy

public ConnectionStrategy getConnectionStrategy()
Returns the connection strategy.

Returns:
strategy for making connections

setConnectionStrategy

public void setConnectionStrategy(ConnectionStrategy strategy)
Sets the connection strategy.

Parameters:
strategy - for making connections

getControlProcessor

public ControlProcessor<C> getControlProcessor()
Returns the control processor.

Returns:
control processor

setControlProcessor

public void setControlProcessor(ControlProcessor<C> processor)
Sets the control processor.

Parameters:
processor - control processor

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2003-2017 Virginia Tech. All Rights Reserved.