< prev index next >

jdk/src/java.base/share/classes/java/net/Socket.java

Print this page

        

*** 1754,1764 **** * option requires a security permission and if the caller does * not have the required permission. * {@link java.net.StandardSocketOptions StandardSocketOptions} * do not require any security permission. * ! * @since 1.9 */ public <T> Socket setOption(SocketOption<T> name, T value) throws IOException { getImpl().setOption(name, value); return this; } --- 1754,1764 ---- * option requires a security permission and if the caller does * not have the required permission. * {@link java.net.StandardSocketOptions StandardSocketOptions} * do not require any security permission. * ! * @since 9 */ public <T> Socket setOption(SocketOption<T> name, T value) throws IOException { getImpl().setOption(name, value); return this; }
*** 1782,1792 **** * option requires a security permission and if the caller does * not have the required permission. * {@link java.net.StandardSocketOptions StandardSocketOptions} * do not require any security permission. * ! * @since 1.9 */ @SuppressWarnings("unchecked") public <T> T getOption(SocketOption<T> name) throws IOException { return getImpl().getOption(name); } --- 1782,1792 ---- * option requires a security permission and if the caller does * not have the required permission. * {@link java.net.StandardSocketOptions StandardSocketOptions} * do not require any security permission. * ! * @since 9 */ @SuppressWarnings("unchecked") public <T> T getOption(SocketOption<T> name) throws IOException { return getImpl().getOption(name); }
*** 1801,1811 **** * the socket has been closed. * * @return A set of the socket options supported by this socket. This set * may be empty if the socket's SocketImpl cannot be created. * ! * @since 1.9 */ public Set<SocketOption<?>> supportedOptions() { synchronized (Socket.class) { if (optionsSet) { return options; --- 1801,1811 ---- * the socket has been closed. * * @return A set of the socket options supported by this socket. This set * may be empty if the socket's SocketImpl cannot be created. * ! * @since 9 */ public Set<SocketOption<?>> supportedOptions() { synchronized (Socket.class) { if (optionsSet) { return options;
< prev index next >