From 2e342ed96814315cd0650e839f682a38a64f7fae Mon Sep 17 00:00:00 2001 From: Stuart Marks 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 jdk/test/sun/rmi/transport/proxy/DisableHttpDefaultValue.java diff --git a/jdk/src/share/classes/java/rmi/server/RMISocketFactory.java b/jdk/src/share/classes/java/rmi/server/RMISocketFactory.java index ec9ade2f54c..c9b8a4786a4 100644 --- a/jdk/src/share/classes/java/rmi/server/RMISocketFactory.java +++ b/jdk/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/jdk/src/share/classes/java/rmi/server/package.html b/jdk/src/share/classes/java/rmi/server/package.html index 290ca9a4ba2..98b76699fa5 100644 --- a/jdk/src/share/classes/java/rmi/server/package.html +++ b/jdk/src/share/classes/java/rmi/server/package.html @@ -1,5 +1,5 @@