public class

RMIHttpToPortSocketFactory

extends RMISocketFactory
java.lang.Object
   ↳ java.rmi.server.RMISocketFactory
     ↳ sun.rmi.transport.proxy.RMIHttpToPortSocketFactory

Class Overview

RMIHttpToPortSocketFactory creates a socket connection to the specified host that is communicated within an HTTP request, forwarded through the default firewall proxy, directly to the specified port.

Summary

Public Constructors
RMIHttpToPortSocketFactory()
Public Methods
ServerSocket createServerSocket(int port)
Create a server socket on the specified port (port 0 indicates an anonymous port).
Socket createSocket(String host, int port)
Creates a client socket connected to the specified host and port.
[Expand]
Inherited Methods
From class java.rmi.server.RMISocketFactory
From class java.lang.Object
From interface java.rmi.server.RMIClientSocketFactory
From interface java.rmi.server.RMIServerSocketFactory

Public Constructors

public RMIHttpToPortSocketFactory ()

Public Methods

public ServerSocket createServerSocket (int port)

Create a server socket on the specified port (port 0 indicates an anonymous port).

Parameters
port the port number
Returns
  • the server socket on the specified port
Throws
IOException

public Socket createSocket (String host, int port)

Creates a client socket connected to the specified host and port.

Parameters
host the host name
port the port number
Returns
  • a socket connected to the specified host and port.
Throws
IOException