【Java开源代码栏目提醒】:网学会员鉴于大家对Java开源代码十分关注,论文会员在此为大家搜集整理了“_SessionWatcherStub.java”一文,供大家参考学习
package Sessions;
/**
* Sessions/_SessionWatcherStub.java
* Generated by the IDL-to-Java compiler (portable), version "3.0"
* from sessions.idl
* Sunday, March 4, 2001 8:07:11 PM PST
*/
public class _SessionWatcherStub extends org.omg.CORBA.portable.ObjectImpl implements Sessions.SessionWatcher
{
// Constructors
// NOTE: If the default constructor is used, the
// object is useless until _set_delegate (...)
// is called.
public _SessionWatcherStub ()
{
super ();
}
public _SessionWatcherStub (org.omg.CORBA.portable.Delegate delegate)
{
super ();
_set_delegate (delegate);
}
public void sessionChanged (String sessionName, String key)
{
org.omg.CORBA.portable.InputStream _in = null;
try {
org.omg.CORBA.portable.OutputStream _out = _request ("sessionChanged", true);
_out.write_string (sessionName);
_out.write_string (key);
_in = _invoke (_out);
} catch (org.omg.CORBA.portable.ApplicationException _ex) {
_in = _ex.getInputStream ();
String _id = _ex.getId ();
throw new org.omg.CORBA.MARSHAL (_id);
} catch (org.omg.CORBA.portable.RemarshalException _rm) {
sessionChanged (sessionName, key);
} finally {
_releaseReply (_in);
}
} // sessionChanged
// Type-specific CORBA::Object operations
private static String[] __ids = {
"IDL:Sessions/SessionWatcher:1.0"};
public String[] _ids ()
{
return (String[])__ids.clone ();
}
private void readObject (java.io.ObjectInputStream s)
{
try
{
String str = s.readUTF ();
org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init ().string_to_object (str);
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
_set_delegate (delegate);
} catch (java.io.IOException e) {}
}
private void writeObject (java.io.ObjectOutputStream s)
{
try
{
String str = org.omg.CORBA.ORB.init ().object_to_string (this);
s.writeUTF (str);
} catch (java.io.IOException e) {}
}
} // class _SessionWatcherStub