Path: blob/master/src/java.management.rmi/share/classes/javax/management/remote/rmi/RMIIIOPServerImpl.java
41162 views
/*1* Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425package javax.management.remote.rmi;2627import java.io.IOException;28import java.rmi.Remote;29import java.util.Map;30import javax.security.auth.Subject;3132/**33* <p>An {@link RMIServerImpl} that is exported through IIOP and that34* creates client connections as RMI objects exported through IIOP.35* User code does not usually reference this class directly.</p>36*37* @see RMIServerImpl38*39* @since 1.540* @deprecated This transport is no longer supported.41*/42@Deprecated43public class RMIIIOPServerImpl extends RMIServerImpl {44/**45* Throws {@linkplain UnsupportedOperationException}46*47* @param env the environment containing attributes for the new48* <code>RMIServerImpl</code>. Can be null, which is equivalent49* to an empty Map.50*51* @throws IOException if the RMI object cannot be created.52*/53public RMIIIOPServerImpl(Map<String,?> env)54throws IOException {55super(env);5657throw new UnsupportedOperationException();58}5960@Override61protected void export() throws IOException {62throw new UnsupportedOperationException("Method not supported. JMX RMI-IIOP is deprecated");63}6465@Override66protected String getProtocol() {67return "iiop";68}6970@Override71public Remote toStub() throws IOException {72throw new UnsupportedOperationException();73}7475@Override76protected RMIConnection makeClient(String connectionId, Subject subject)77throws IOException {78throw new UnsupportedOperationException();79}8081@Override82protected void closeClient(RMIConnection client) throws IOException {83throw new UnsupportedOperationException();84}8586@Override87protected void closeServer() throws IOException {88throw new UnsupportedOperationException();89}9091@Override92RMIConnection doNewClient(final Object credentials) throws IOException {93throw new UnsupportedOperationException();94}95}969798