|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.rmi.server.RMISocketFactory
org.objectweb.carol.jndi.registry.RMIFixedPortFirewallSocketFactory
Socket factory allowing to use a fixed port instead of a random port (when it's 0). This is useful for firewall issues.
| Method Summary | |
java.net.ServerSocket |
createServerSocket(int port)
Create a server socket on the specified port (port 0 indicates an anonymous port). |
java.net.Socket |
createSocket(java.lang.String host,
int port)
Creates a client socket connected to the specified host and port. |
static java.rmi.server.RMISocketFactory |
register(int port)
Register the factory |
| Methods inherited from class java.rmi.server.RMISocketFactory |
getDefaultSocketFactory, getFailureHandler, getSocketFactory, setFailureHandler, setSocketFactory |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public java.net.ServerSocket createServerSocket(int port)
throws java.io.IOException
port - the port number
java.io.IOException - if an I/O error occurs during server socket
creationRMISocketFactory.createServerSocket(int)
public java.net.Socket createSocket(java.lang.String host,
int port)
throws java.io.IOException
host - the host nameport - the port number
java.io.IOException - if an I/O error occurs during socket creationRMISocketFactory.createSocket(java.lang.String, int)
public static java.rmi.server.RMISocketFactory register(int port)
throws java.rmi.RemoteException
port - given port number for exporting objects
java.rmi.RemoteException - if the registration is not possible
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||