jdk/src/java.base/share/classes/java/net/ServerSocket.java
changeset 28852 a581c7868768
parent 25859 3317bb8137f4
child 35302 e4d2275861c3
equal deleted inserted replaced
28851:e4c16ed7bffa 28852:a581c7868768
     1 /*
     1 /*
     2  * Copyright (c) 1995, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1995, 2015, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   922     }
   922     }
   923 
   923 
   924     /**
   924     /**
   925      * Sets the value of a socket option.
   925      * Sets the value of a socket option.
   926      *
   926      *
       
   927      * @param <T> The type of the socket option value
   927      * @param name The socket option
   928      * @param name The socket option
   928      * @param value The value of the socket option. A value of {@code null}
   929      * @param value The value of the socket option. A value of {@code null}
   929      *              may be valid for some options.
   930      *              may be valid for some options.
   930      * @return this ServerSocket
   931      * @return this ServerSocket
   931      *
   932      *
   955     }
   956     }
   956 
   957 
   957     /**
   958     /**
   958      * Returns the value of a socket option.
   959      * Returns the value of a socket option.
   959      *
   960      *
       
   961      * @param <T> The type of the socket option value
   960      * @param name The socket option
   962      * @param name The socket option
   961      *
   963      *
   962      * @return The value of the socket option.
   964      * @return The value of the socket option.
   963      *
   965      *
   964      * @throws UnsupportedOperationException if the server socket does not
   966      * @throws UnsupportedOperationException if the server socket does not