@PublicAPI(stability=UNCOMMITTED, mayInstantiate=true, mayExtend=false, mayInvoke=true) public final class InternalLDAPSocketFactory extends SocketFactory
javax.net.SocketFactory
object that can be used to create
internal LDAP sockets. This socket factory can be used with some
common LDAP SDKs (e.g., JNDI) in order to allow that SDK to be used
to perform internal operations within OpenDS with minimal changes
needed from what is required to perform external LDAP
communication.Constructor and Description |
---|
InternalLDAPSocketFactory()
Creates a new instance of this internal LDAP socket factory.
|
Modifier and Type | Method and Description |
---|---|
Socket |
createSocket(InetAddress host,
int port)
Creates a new internal LDAP socket.
|
Socket |
createSocket(InetAddress host,
int port,
InetAddress clientHost,
int clientPort)
Creates a new internal LDAP socket.
|
Socket |
createSocket(String host,
int port)
Creates a new internal LDAP socket.
|
Socket |
createSocket(String host,
int port,
InetAddress clientHost,
int clientPort)
Creates a new internal LDAP socket.
|
static SocketFactory |
getDefault()
Retrieves the default socket factory that should be used.
|
String |
toString()
Retrieves a string representation of this internal LDAP socket
factory.
|
createSocket
public InternalLDAPSocketFactory()
public static SocketFactory getDefault()
public Socket createSocket(InetAddress host, int port)
createSocket
in class SocketFactory
host
- The remote address to which the socket should be
connected.port
- The remote port to which the socket should be
connected.public Socket createSocket(String host, int port)
createSocket
in class SocketFactory
host
- The remote address to which the socket should be
connected.port
- The remote port to which the socket should be
connected.public Socket createSocket(InetAddress host, int port, InetAddress clientHost, int clientPort)
createSocket
in class SocketFactory
host
- The remote address to which the socket should
be connected.port
- The remote port to which the socket should be
connected.clientHost
- The local address to which the socket should
be bound.clientPort
- The local port to which the socket should be
bound.public Socket createSocket(String host, int port, InetAddress clientHost, int clientPort)
createSocket
in class SocketFactory
host
- The remote address to which the socket should
be connected.port
- The remote port to which the socket should be
connected.clientHost
- The local address to which the socket should
be bound.clientPort
- The local port to which the socket should be
bound.Copyright © 2010-2016 ForgeRock AS. All Rights Reserved.