author | chegar |
Sat, 04 Feb 2012 07:29:11 +0000 | |
changeset 11823 | ee83ae88512d |
parent 5506 | jdk/src/windows/classes/sun/nio/ch/SctpServerChannelImpl.java@202f599c92aa |
child 14342 | 8435a30053c1 |
permissions | -rw-r--r-- |
2542 | 1 |
/* |
5506 | 2 |
* Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved. |
2542 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
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 |
|
5506 | 7 |
* published by the Free Software Foundation. Oracle designates this |
2542 | 8 |
* particular file as subject to the "Classpath" exception as provided |
5506 | 9 |
* by Oracle in the LICENSE file that accompanied this code. |
2542 | 10 |
* |
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
* accompanied this code). |
|
16 |
* |
|
17 |
* You should have received a copy of the GNU General Public License version |
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
* |
|
5506 | 21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
22 |
* or visit www.oracle.com if you need additional information or have any |
|
23 |
* questions. |
|
2542 | 24 |
*/ |
11823
ee83ae88512d
7041778: Move SCTP implementation out of sun.nio.ch and into its own package
chegar
parents:
5506
diff
changeset
|
25 |
package sun.nio.ch.sctp; |
2542 | 26 |
|
27 |
import java.net.SocketAddress; |
|
28 |
import java.net.InetAddress; |
|
29 |
import java.io.IOException; |
|
30 |
import java.util.Set; |
|
31 |
import java.nio.channels.spi.SelectorProvider; |
|
32 |
import com.sun.nio.sctp.SctpChannel; |
|
33 |
import com.sun.nio.sctp.SctpServerChannel; |
|
34 |
import com.sun.nio.sctp.SctpSocketOption; |
|
35 |
||
36 |
/** |
|
37 |
* Unimplemented. |
|
38 |
*/ |
|
39 |
public class SctpServerChannelImpl extends SctpServerChannel |
|
40 |
{ |
|
41 |
private static final String message = "SCTP not supported on this platform"; |
|
42 |
||
43 |
public SctpServerChannelImpl(SelectorProvider provider) { |
|
44 |
super(provider); |
|
45 |
throw new UnsupportedOperationException(message); |
|
46 |
} |
|
47 |
||
48 |
@Override |
|
49 |
public SctpChannel accept() throws IOException { |
|
50 |
throw new UnsupportedOperationException(message); |
|
51 |
} |
|
52 |
||
53 |
@Override |
|
54 |
public SctpServerChannel bind(SocketAddress local, |
|
55 |
int backlog) throws IOException { |
|
56 |
throw new UnsupportedOperationException(message); |
|
57 |
} |
|
58 |
||
59 |
@Override |
|
60 |
public SctpServerChannel bindAddress(InetAddress address) |
|
61 |
throws IOException { |
|
62 |
throw new UnsupportedOperationException(message); |
|
63 |
} |
|
64 |
||
65 |
@Override |
|
66 |
public SctpServerChannel unbindAddress(InetAddress address) |
|
67 |
throws IOException { |
|
68 |
throw new UnsupportedOperationException(message); |
|
69 |
} |
|
70 |
||
71 |
@Override |
|
72 |
public Set<SocketAddress> getAllLocalAddresses() |
|
73 |
throws IOException { |
|
74 |
throw new UnsupportedOperationException(message); |
|
75 |
} |
|
76 |
||
77 |
@Override |
|
78 |
public <T> T getOption(SctpSocketOption<T> name) throws IOException { |
|
79 |
throw new UnsupportedOperationException(message); |
|
80 |
} |
|
81 |
||
82 |
@Override |
|
83 |
public <T> SctpServerChannel setOption(SctpSocketOption<T> name, |
|
84 |
T value) throws IOException { |
|
85 |
throw new UnsupportedOperationException(message); |
|
86 |
} |
|
87 |
||
88 |
@Override |
|
89 |
public Set<SctpSocketOption<?>> supportedOptions() { |
|
90 |
throw new UnsupportedOperationException(message); |
|
91 |
} |
|
92 |
||
93 |
@Override |
|
94 |
protected void implConfigureBlocking(boolean block) throws IOException { |
|
95 |
throw new UnsupportedOperationException(message); |
|
96 |
} |
|
97 |
||
98 |
@Override |
|
99 |
public void implCloseSelectableChannel() throws IOException { |
|
100 |
throw new UnsupportedOperationException(message); |
|
101 |
} |
|
102 |
} |