|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.geronimo.yoko.SocketFactory
public class SocketFactory
Socket factory instance used to interface openejb2 with the Yoko ORB. Also enables the ORB for SSL-type connections.
Constructor Summary | |
---|---|
SocketFactory()
|
Method Summary | |
---|---|
Socket |
createSelfConnection(InetAddress address,
int port)
Create a loopback connection to the hosting ORB. |
ServerSocket |
createServerSocket(int port,
int backlog)
Create a server socket listening on the given port. |
ServerSocket |
createServerSocket(int port,
int backlog,
InetAddress address)
Create a server socket for this connection. |
Socket |
createSocket(IOR ior,
Policy[] policies,
InetAddress address,
int port)
Create a client socket of the appropriate type using the provided IOR and Policy information. |
void |
init(ORB orb,
String configName)
Initialize the socket factory instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SocketFactory()
Method Detail |
---|
public void init(ORB orb, String configName)
init
in interface org.apache.yoko.orb.OCI.IIOP.ConnectionHelper
orb
- The hosting ORB.configName
- The initialization parameter passed to the socket factor.
This contains the abstract name of our configurator,
which we retrieve from a registry.public Socket createSocket(IOR ior, Policy[] policies, InetAddress address, int port) throws IOException
createSocket
in interface org.apache.yoko.orb.OCI.IIOP.ConnectionHelper
ior
- The target IOR of the connection.policies
- Policies in effect for this ORB.address
- The target address of the connection.port
- The connection port.
IOException
ConnectException
public Socket createSelfConnection(InetAddress address, int port) throws IOException
createSelfConnection
in interface org.apache.yoko.orb.OCI.IIOP.ConnectionHelper
address
- The address information for the server.port
- The target port.
IOException
ConnectException
public ServerSocket createServerSocket(int port, int backlog) throws IOException
createServerSocket
in interface org.apache.yoko.orb.OCI.IIOP.ConnectionHelper
port
- The target listening port.backlog
- The desired backlog value.
IOException
ConnectException
public ServerSocket createServerSocket(int port, int backlog, InetAddress address) throws IOException
createServerSocket
in interface org.apache.yoko.orb.OCI.IIOP.ConnectionHelper
port
- The target listener port.backlog
- The requested backlog value for the connection.address
- The host address information we're publishing under.
IOException
ConnectException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |