CONTENTS | PREV | NEXT | Java Remote Method Invocation |
The RMI transport extends the java.rmi.server.RMISocketFactory class to provide a default implementation of a socket factory which is the resource-provider for client and server sockets. This default socket factory creates sockets that transparently provide the firewall tunnelling mechanism as follows:
- Client sockets automatically attempt HTTP connections to hosts that cannot be contacted with a direct socket.
- Server sockets automatically detect if a newly-accepted connection is an HTTP POST request, and if so, return a socket that will expose only the body of the request to the transport and format its output as an HTTP response.
Client-side sockets, with this default behavior, are provided by the factory'sjava.rmi.server.RMISocketFactory.createSocket
method. Server-side sockets with this default behavior are provided by the factory'sjava.rmi.server.RMISocketFactory.createServerSocket
method.