J. Duke | 319a3b9 | 2007-12-01 00:00:00 +0000 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright 1998 Sun Microsystems, Inc. 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. |
| 8 | * |
| 9 | * This code is distributed in the hope that it will be useful, but WITHOUT |
| 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
| 12 | * version 2 for more details (a copy is included in the LICENSE file that |
| 13 | * accompanied this code). |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License version |
| 16 | * 2 along with this work; if not, write to the Free Software Foundation, |
| 17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
| 18 | * |
| 19 | * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
| 20 | * CA 95054 USA or visit www.sun.com if you need additional information or |
| 21 | * have any questions. |
| 22 | */ |
| 23 | |
| 24 | // Stub class generated by rmic, do not edit. |
| 25 | // Contents subject to change without notice. |
| 26 | |
| 27 | public final class CheckFQDN_Stub |
| 28 | extends java.rmi.server.RemoteStub |
| 29 | implements TellServerName, java.rmi.Remote |
| 30 | { |
| 31 | private static java.rmi.server.Operation[] operations = { |
| 32 | new java.rmi.server.Operation("void tellServerName(java.lang.String)") |
| 33 | }; |
| 34 | |
| 35 | private static final long interfaceHash = 4509625981775855367L; |
| 36 | |
| 37 | private static final long serialVersionUID = 2; |
| 38 | |
| 39 | private static boolean useNewInvoke; |
| 40 | private static java.lang.reflect.Method $method_tellServerName_0; |
| 41 | |
| 42 | static { |
| 43 | try { |
| 44 | java.rmi.server.RemoteRef.class.getMethod("invoke", |
| 45 | new java.lang.Class[] { |
| 46 | java.rmi.Remote.class, |
| 47 | java.lang.reflect.Method.class, |
| 48 | java.lang.Object[].class, |
| 49 | long.class |
| 50 | }); |
| 51 | useNewInvoke = true; |
| 52 | $method_tellServerName_0 = TellServerName.class.getMethod("tellServerName", new java.lang.Class[] {java.lang.String.class}); |
| 53 | } catch (java.lang.NoSuchMethodException e) { |
| 54 | useNewInvoke = false; |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | // constructors |
| 59 | public CheckFQDN_Stub() { |
| 60 | super(); |
| 61 | } |
| 62 | public CheckFQDN_Stub(java.rmi.server.RemoteRef ref) { |
| 63 | super(ref); |
| 64 | } |
| 65 | |
| 66 | // methods from remote interfaces |
| 67 | |
| 68 | // implementation of tellServerName(String) |
| 69 | public void tellServerName(java.lang.String $param_String_1) |
| 70 | throws java.rmi.RemoteException |
| 71 | { |
| 72 | try { |
| 73 | if (useNewInvoke) { |
| 74 | ref.invoke(this, $method_tellServerName_0, new java.lang.Object[] {$param_String_1}, -5180633734615762942L); |
| 75 | } else { |
| 76 | java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject) this, operations, 0, interfaceHash); |
| 77 | try { |
| 78 | java.io.ObjectOutput out = call.getOutputStream(); |
| 79 | out.writeObject($param_String_1); |
| 80 | } catch (java.io.IOException e) { |
| 81 | throw new java.rmi.MarshalException("error marshalling arguments", e); |
| 82 | } |
| 83 | ref.invoke(call); |
| 84 | ref.done(call); |
| 85 | } |
| 86 | } catch (java.lang.RuntimeException e) { |
| 87 | throw e; |
| 88 | } catch (java.rmi.RemoteException e) { |
| 89 | throw e; |
| 90 | } catch (java.lang.Exception e) { |
| 91 | throw new java.rmi.UnexpectedException("undeclared checked exception", e); |
| 92 | } |
| 93 | } |
| 94 | } |