From 210ffe56980c489e966f222a5a4f053fbb7c6741 Mon Sep 17 00:00:00 2001 From: smarks Date: Thu, 24 Oct 2013 10:13:39 -0700 Subject: [PATCH] 8023862: deprecate HTTP proxying from RMI Reviewed-by: mchung --- .../java/rmi/server/RMISocketFactory.java | 10 ++- .../classes/java/rmi/server/package.html | 6 +- .../proxy/RMIMasterSocketFactory.java | 16 ++--- .../proxy/DisableHttpDefaultValue.java | 68 +++++++++++++++++++ 4 files changed, 90 insertions(+), 10 deletions(-) create mode 100644 test/sun/rmi/transport/proxy/DisableHttpDefaultValue.java diff --git a/src/share/classes/java/rmi/server/RMISocketFactory.java b/src/share/classes/java/rmi/server/RMISocketFactory.java index ec9ade2f5..c9b8a4786 100644 --- a/src/share/classes/java/rmi/server/RMISocketFactory.java +++ b/src/share/classes/java/rmi/server/RMISocketFactory.java @@ -41,7 +41,15 @@ import java.net.*; * (due to a firewall), the runtime uses HTTP with the explicit port * number of the server. If the firewall does not allow this type of * communication, then HTTP to a cgi-bin script on the server is used - * to POST the RMI call. + * to POST the RMI call. The HTTP tunneling mechanisms are disabled by + * default. This behavior is controlled by the {@code java.rmi.server.disableHttp} + * property, whose default value is {@code true}. Setting this property's + * value to {@code false} will enable the HTTP tunneling mechanisms. + * + *

Deprecated: HTTP Tunneling. The HTTP tunneling mechanisms + * described above, specifically HTTP with an explicit port and HTTP to a + * cgi-bin script, are deprecated. These HTTP tunneling mechanisms are + * subject to removal in a future release of the platform. * *

The default socket factory implementation creates server sockets that * are bound to the wildcard address, which accepts requests from all network diff --git a/src/share/classes/java/rmi/server/package.html b/src/share/classes/java/rmi/server/package.html index 290ca9a4b..98b76699f 100644 --- a/src/share/classes/java/rmi/server/package.html +++ b/src/share/classes/java/rmi/server/package.html @@ -1,5 +1,5 @@