|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.net.SocketFactory
org.opends.server.protocols.internal.InternalLDAPSocketFactory
@PublicAPI(stability=UNCOMMITTED, mayInstantiate=true, mayExtend=false, mayInvoke=true) public final class InternalLDAPSocketFactory
This class provides an implementation of a
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 Summary | |
---|---|
InternalLDAPSocketFactory()
Creates a new instance of this internal LDAP socket factory. |
Method Summary | |
---|---|
java.net.Socket |
createSocket(java.net.InetAddress host,
int port)
Creates a new internal LDAP socket. |
java.net.Socket |
createSocket(java.net.InetAddress host,
int port,
java.net.InetAddress clientHost,
int clientPort)
Creates a new internal LDAP socket. |
java.net.Socket |
createSocket(java.lang.String host,
int port)
Creates a new internal LDAP socket. |
java.net.Socket |
createSocket(java.lang.String host,
int port,
java.net.InetAddress clientHost,
int clientPort)
Creates a new internal LDAP socket. |
static javax.net.SocketFactory |
getDefault()
Retrieves the default socket factory that should be used. |
java.lang.String |
toString()
Retrieves a string representation of this internal LDAP socket factory. |
Methods inherited from class javax.net.SocketFactory |
---|
createSocket |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public InternalLDAPSocketFactory()
Method Detail |
---|
public static javax.net.SocketFactory getDefault()
public java.net.Socket createSocket(java.net.InetAddress host, int port)
createSocket
in class javax.net.SocketFactory
host
- The remote address to which the socket should be
connected.port
- The remote port to which the socket should be
connected.
public java.net.Socket createSocket(java.lang.String host, int port)
createSocket
in class javax.net.SocketFactory
host
- The remote address to which the socket should be
connected.port
- The remote port to which the socket should be
connected.
public java.net.Socket createSocket(java.net.InetAddress host, int port, java.net.InetAddress clientHost, int clientPort)
createSocket
in class javax.net.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 java.net.Socket createSocket(java.lang.String host, int port, java.net.InetAddress clientHost, int clientPort)
createSocket
in class javax.net.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 java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |