Path: blob/master/test/jdk/java/rmi/transport/checkFQDN/CheckFQDN_Stub.java
41154 views
/*1* Copyright (c) 1998, 2008, 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.7*8* This code is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11* version 2 for more details (a copy is included in the LICENSE file that12* accompanied this code).13*14* You should have received a copy of the GNU General Public License version15* 2 along with this work; if not, write to the Free Software Foundation,16* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*/2223// Stub class generated by rmic, do not edit.24// Contents subject to change without notice.2526public final class CheckFQDN_Stub27extends java.rmi.server.RemoteStub28implements TellServerName, java.rmi.Remote29{30private static java.rmi.server.Operation[] operations = {31new java.rmi.server.Operation("void tellServerName(java.lang.String)")32};3334private static final long interfaceHash = 4509625981775855367L;3536private static final long serialVersionUID = 2;3738private static boolean useNewInvoke;39private static java.lang.reflect.Method $method_tellServerName_0;4041static {42try {43java.rmi.server.RemoteRef.class.getMethod("invoke",44new java.lang.Class[] {45java.rmi.Remote.class,46java.lang.reflect.Method.class,47java.lang.Object[].class,48long.class49});50useNewInvoke = true;51$method_tellServerName_0 = TellServerName.class.getMethod("tellServerName", new java.lang.Class[] {java.lang.String.class});52} catch (java.lang.NoSuchMethodException e) {53useNewInvoke = false;54}55}5657// constructors58public CheckFQDN_Stub() {59super();60}61public CheckFQDN_Stub(java.rmi.server.RemoteRef ref) {62super(ref);63}6465// methods from remote interfaces6667// implementation of tellServerName(String)68public void tellServerName(java.lang.String $param_String_1)69throws java.rmi.RemoteException70{71try {72if (useNewInvoke) {73ref.invoke(this, $method_tellServerName_0, new java.lang.Object[] {$param_String_1}, -5180633734615762942L);74} else {75java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject) this, operations, 0, interfaceHash);76try {77java.io.ObjectOutput out = call.getOutputStream();78out.writeObject($param_String_1);79} catch (java.io.IOException e) {80throw new java.rmi.MarshalException("error marshalling arguments", e);81}82ref.invoke(call);83ref.done(call);84}85} catch (java.lang.RuntimeException e) {86throw e;87} catch (java.rmi.RemoteException e) {88throw e;89} catch (java.lang.Exception e) {90throw new java.rmi.UnexpectedException("undeclared checked exception", e);91}92}93}949596