00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 package cast.examples.autogen;
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 public final class _WordServerDelD extends Ice._ObjectDelD implements _WordServerDel
00024 {
00025 public String
00026 getNewWord(java.util.Map<String, String> __ctx)
00027 throws IceInternal.LocalExceptionWrapper
00028 {
00029 final Ice.Current __current = new Ice.Current();
00030 __initCurrent(__current, "getNewWord", Ice.OperationMode.Normal, __ctx);
00031 final Ice.StringHolder __result = new Ice.StringHolder();
00032 IceInternal.Direct __direct = null;
00033 try
00034 {
00035 __direct = new IceInternal.Direct(__current)
00036 {
00037 public Ice.DispatchStatus run(Ice.Object __obj)
00038 {
00039 WordServer __servant = null;
00040 try
00041 {
00042 __servant = (WordServer)__obj;
00043 }
00044 catch(ClassCastException __ex)
00045 {
00046 throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
00047 }
00048 __result.value = __servant.getNewWord(__current);
00049 return Ice.DispatchStatus.DispatchOK;
00050 }
00051 };
00052 try
00053 {
00054 Ice.DispatchStatus __status = __direct.servant().__collocDispatch(__direct);
00055 if(__status == Ice.DispatchStatus.DispatchUserException)
00056 {
00057 __direct.throwUserException();
00058 }
00059 assert __status == Ice.DispatchStatus.DispatchOK;
00060 return __result.value;
00061 }
00062 finally
00063 {
00064 __direct.destroy();
00065 }
00066 }
00067 catch(Ice.SystemException __ex)
00068 {
00069 throw __ex;
00070 }
00071 catch(java.lang.Throwable __ex)
00072 {
00073 IceInternal.LocalExceptionWrapper.throwWrapper(__ex);
00074 }
00075 return __result.value;
00076 }
00077 }