Package org.ldaptive
Class DefaultConnectionStrategy
- java.lang.Object
-
- org.ldaptive.DefaultConnectionStrategy
-
- All Implemented Interfaces:
ConnectionStrategy
public class DefaultConnectionStrategy extends Object implements ConnectionStrategy
Connection strategy that returns the exact URL that is returned fromConnectionFactoryMetadata.getLdapUrl()
.
-
-
Constructor Summary
Constructors Constructor Description DefaultConnectionStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]
getLdapUrls(ConnectionFactoryMetadata metadata)
Returns an array containing a single entry URL obtained fromConnectionFactoryMetadata.getLdapUrl()
.
-
-
-
Method Detail
-
getLdapUrls
public String[] getLdapUrls(ConnectionFactoryMetadata metadata)
Returns an array containing a single entry URL obtained fromConnectionFactoryMetadata.getLdapUrl()
.- Specified by:
getLdapUrls
in interfaceConnectionStrategy
- Parameters:
metadata
- which can be used to produce the URL list- Returns:
- list of URLs to attempt connections to
-
-