1/* 2 * Copyright (c) 2009, 2012, Oracle and/or its affiliates. All rights reserved. 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 7 * published by the Free Software Foundation. Oracle designates this 8 * particular file as subject to the "Classpath" exception as provided 9 * by Oracle in the LICENSE file that accompanied this code. 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 * 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. 24 */ 25package sun.nio.ch.sctp; 26 27import java.net.SocketAddress; 28import java.net.InetAddress; 29import java.io.IOException; 30import java.util.Set; 31import java.nio.channels.spi.SelectorProvider; 32import com.sun.nio.sctp.SctpChannel; 33import com.sun.nio.sctp.SctpServerChannel; 34import com.sun.nio.sctp.SctpSocketOption; 35 36/** 37 * Unimplemented. 38 */ 39public 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} 103