src/share/classes/java/rmi/server/RMISocketFactory.java
Print this page
rev 10048 : 8044740: Convert all JDK versions used in @since tag to 1.n[.n] in jdk repo
Reviewed-by:
@@ -83,11 +83,11 @@
* to {@code 127.0.0.1} to ensure that the generated stubs connect to the right
* network interface.
*
* @author Ann Wollrath
* @author Peter Jones
- * @since JDK1.1
+ * @since 1.1
*/
public abstract class RMISocketFactory
implements RMIClientSocketFactory, RMIServerSocketFactory
{
@@ -98,11 +98,11 @@
/** Handler for socket creation failure */
private static RMIFailureHandler handler = null;
/**
* Constructs an <code>RMISocketFactory</code>.
- * @since JDK1.1
+ * @since 1.1
*/
public RMISocketFactory() {
super();
}
@@ -110,11 +110,11 @@
* Creates a client socket connected to the specified host and port.
* @param host the host name
* @param port the port number
* @return a socket connected to the specified host and port.
* @exception IOException if an I/O error occurs during socket creation
- * @since JDK1.1
+ * @since 1.1
*/
public abstract Socket createSocket(String host, int port)
throws IOException;
/**
@@ -122,11 +122,11 @@
* an anonymous port).
* @param port the port number
* @return the server socket on the specified port
* @exception IOException if an I/O error occurs during server socket
* creation
- * @since JDK1.1
+ * @since 1.1
*/
public abstract ServerSocket createServerSocket(int port)
throws IOException;
/**
@@ -140,11 +140,11 @@
* @exception IOException if the RMI socket factory is already set
* @exception SecurityException if a security manager exists and its
* <code>checkSetFactory</code> method doesn't allow the operation.
* @see #getSocketFactory
* @see java.lang.SecurityManager#checkSetFactory()
- * @since JDK1.1
+ * @since 1.1
*/
public synchronized static void setSocketFactory(RMISocketFactory fac)
throws IOException
{
if (factory != null) {
@@ -161,11 +161,11 @@
* Returns the socket factory set by the <code>setSocketFactory</code>
* method. Returns <code>null</code> if no socket factory has been
* set.
* @return the socket factory
* @see #setSocketFactory(RMISocketFactory)
- * @since JDK1.1
+ * @since 1.1
*/
public synchronized static RMISocketFactory getSocketFactory()
{
return factory;
}
@@ -174,11 +174,11 @@
* Returns a reference to the default socket factory used
* by this RMI implementation. This will be the factory used
* by the RMI runtime when <code>getSocketFactory</code>
* returns <code>null</code>.
* @return the default RMI socket factory
- * @since JDK1.1
+ * @since 1.1
*/
public synchronized static RMISocketFactory getDefaultSocketFactory() {
if (defaultSocketFactory == null) {
defaultSocketFactory =
new sun.rmi.transport.proxy.RMIMasterSocketFactory();
@@ -201,11 +201,11 @@
* @throws SecurityException if a security manager exists and its
* <code>checkSetFactory</code> method doesn't allow the
* operation.
* @see #getFailureHandler
* @see java.rmi.server.RMIFailureHandler#failure(Exception)
- * @since JDK1.1
+ * @since 1.1
*/
public synchronized static void setFailureHandler(RMIFailureHandler fh)
{
SecurityManager security = System.getSecurityManager();
if (security != null) {
@@ -217,11 +217,11 @@
/**
* Returns the handler for socket creation failure set by the
* <code>setFailureHandler</code> method.
* @return the failure handler
* @see #setFailureHandler(RMIFailureHandler)
- * @since JDK1.1
+ * @since 1.1
*/
public synchronized static RMIFailureHandler getFailureHandler()
{
return handler;
}