📄 _corbaproviderstub.java
字号:
package net.sourceforge.gjtapi.raw.remote.corba;
/**
* com/uforce/jtapi/generic/raw/remote/corba/_CorbaProviderStub.java
* Generated by the IDL-to-Java compiler (portable), version "3.0"
* from CorbaProvider.idl
* Thursday, November 16, 2000 1:45:33 o'clock PM EST
*/
public class _CorbaProviderStub extends org.omg.CORBA.portable.ObjectImpl implements CorbaProvider {
// Type-specific CORBA::Object operations
private static String[] __ids = {
"IDL:com/uforce/jtapi/generic/raw/remote/corba/CorbaProvider:1.0"};
// Constructors
// NOTE: If the default constructor is used, the
// object is useless until _set_delegate (...)
// is called.
public _CorbaProviderStub ()
{
super ();
}
public _CorbaProviderStub (org.omg.CORBA.portable.Delegate delegate)
{
super ();
_set_delegate (delegate);
}
public String[] _ids ()
{
return (String[])__ids.clone ();
}
public void addListener (net.sourceforge.gjtapi.raw.remote.corba.CorbaListener cl)
{
org.omg.CORBA.portable.InputStream _in = null;
try {
org.omg.CORBA.portable.OutputStream _out = _request ("addListener", false);
net.sourceforge.gjtapi.raw.remote.corba.CorbaListenerHelper.write (_out, cl);
_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) {
addListener (cl);
} finally {
_releaseReply (_in);
}
} // addListener
public boolean allocateMedia (String term, int type, net.sourceforge.gjtapi.raw.remote.corba.LongEntry[] parameters)
{
org.omg.CORBA.portable.InputStream _in = null;
try {
org.omg.CORBA.portable.OutputStream _out = _request ("allocateMedia", true);
_out.write_string (term);
_out.write_long (type);
net.sourceforge.gjtapi.raw.remote.corba.LongDictionaryHelper.write (_out, parameters);
_in = _invoke (_out);
boolean __result = _in.read_boolean ();
return __result;
} 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) {
return allocateMedia (term, type, parameters);
} finally {
_releaseReply (_in);
}
} // allocateMedia
public void answerCall (int callId, String address, String terminal) throws net.sourceforge.gjtapi.raw.remote.corba.PrivilegeViolationEx, net.sourceforge.gjtapi.raw.remote.corba.ResourceUnavailableEx, net.sourceforge.gjtapi.raw.remote.corba.MethodNotSupportedEx, net.sourceforge.gjtapi.raw.remote.corba.RawStateEx
{
org.omg.CORBA.portable.InputStream _in = null;
try {
org.omg.CORBA.portable.OutputStream _out = _request ("answerCall", true);
_out.write_long (callId);
_out.write_string (address);
_out.write_string (terminal);
_in = _invoke (_out);
} catch (org.omg.CORBA.portable.ApplicationException _ex) {
_in = _ex.getInputStream ();
String _id = _ex.getId ();
if (_id.equals ("IDL:com/uforce/jtapi/generic/raw/remote/corba/PrivilegeViolationEx:1.0"))
throw net.sourceforge.gjtapi.raw.remote.corba.PrivilegeViolationExHelper.read (_in);
else if (_id.equals ("IDL:com/uforce/jtapi/generic/raw/remote/corba/ResourceUnavailableEx:1.0"))
throw net.sourceforge.gjtapi.raw.remote.corba.ResourceUnavailableExHelper.read (_in);
else if (_id.equals ("IDL:com/uforce/jtapi/generic/raw/remote/corba/MethodNotSupportedEx:1.0"))
throw net.sourceforge.gjtapi.raw.remote.corba.MethodNotSupportedExHelper.read (_in);
else if (_id.equals ("IDL:com/uforce/jtapi/generic/raw/remote/corba/RawStateEx:1.0"))
throw net.sourceforge.gjtapi.raw.remote.corba.RawStateExHelper.read (_in);
else
throw new org.omg.CORBA.MARSHAL (_id);
} catch (org.omg.CORBA.portable.RemarshalException _rm) {
answerCall (callId, address, terminal);
} finally {
_releaseReply (_in);
}
} // answerCall
public boolean attachMedia (int call, String address, boolean onFlag)
{
org.omg.CORBA.portable.InputStream _in = null;
try {
org.omg.CORBA.portable.OutputStream _out = _request ("attachMedia", true);
_out.write_long (call);
_out.write_string (address);
_out.write_boolean (onFlag);
_in = _invoke (_out);
boolean __result = _in.read_boolean ();
return __result;
} 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) {
return attachMedia (call, address, onFlag);
} finally {
_releaseReply (_in);
}
} // attachMedia
public void beep (int call)
{
org.omg.CORBA.portable.InputStream _in = null;
try {
org.omg.CORBA.portable.OutputStream _out = _request ("beep", false);
_out.write_long (call);
_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) {
beep (call);
} finally {
_releaseReply (_in);
}
} // beep
public int createCall (int callId, String address, String terminal, String destination) throws net.sourceforge.gjtapi.raw.remote.corba.PrivilegeViolationEx, net.sourceforge.gjtapi.raw.remote.corba.ResourceUnavailableEx, net.sourceforge.gjtapi.raw.remote.corba.MethodNotSupportedEx, net.sourceforge.gjtapi.raw.remote.corba.RawStateEx, net.sourceforge.gjtapi.raw.remote.corba.InvalidPartyEx, net.sourceforge.gjtapi.raw.remote.corba.InvalidArgumentEx
{
org.omg.CORBA.portable.InputStream _in = null;
try {
org.omg.CORBA.portable.OutputStream _out = _request ("createCall", true);
_out.write_long (callId);
_out.write_string (address);
_out.write_string (terminal);
_out.write_string (destination);
_in = _invoke (_out);
int __result = _in.read_long ();
return __result;
} catch (org.omg.CORBA.portable.ApplicationException _ex) {
_in = _ex.getInputStream ();
String _id = _ex.getId ();
if (_id.equals ("IDL:com/uforce/jtapi/generic/raw/remote/corba/PrivilegeViolationEx:1.0"))
throw net.sourceforge.gjtapi.raw.remote.corba.PrivilegeViolationExHelper.read (_in);
else if (_id.equals ("IDL:com/uforce/jtapi/generic/raw/remote/corba/ResourceUnavailableEx:1.0"))
throw net.sourceforge.gjtapi.raw.remote.corba.ResourceUnavailableExHelper.read (_in);
else if (_id.equals ("IDL:com/uforce/jtapi/generic/raw/remote/corba/MethodNotSupportedEx:1.0"))
throw net.sourceforge.gjtapi.raw.remote.corba.MethodNotSupportedExHelper.read (_in);
else if (_id.equals ("IDL:com/uforce/jtapi/generic/raw/remote/corba/RawStateEx:1.0"))
throw net.sourceforge.gjtapi.raw.remote.corba.RawStateExHelper.read (_in);
else if (_id.equals ("IDL:com/uforce/jtapi/generic/raw/remote/corba/InvalidPartyEx:1.0"))
throw net.sourceforge.gjtapi.raw.remote.corba.InvalidPartyExHelper.read (_in);
else if (_id.equals ("IDL:com/uforce/jtapi/generic/raw/remote/corba/InvalidArgumentEx:1.0"))
throw net.sourceforge.gjtapi.raw.remote.corba.InvalidArgumentExHelper.read (_in);
else
throw new org.omg.CORBA.MARSHAL (_id);
} catch (org.omg.CORBA.portable.RemarshalException _rm) {
return createCall (callId, address, terminal, destination);
} finally {
_releaseReply (_in);
}
} // createCall
public boolean freeMedia (String terminal, int type)
{
org.omg.CORBA.portable.InputStream _in = null;
try {
org.omg.CORBA.portable.OutputStream _out = _request ("freeMedia", true);
_out.write_string (terminal);
_out.write_long (type);
_in = _invoke (_out);
boolean __result = _in.read_boolean ();
return __result;
} 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) {
return freeMedia (terminal, type);
} finally {
_releaseReply (_in);
}
} // freeMedia
public String[] getAddresses () throws net.sourceforge.gjtapi.raw.remote.corba.ResourceUnavailableEx
{
org.omg.CORBA.portable.InputStream _in = null;
try {
org.omg.CORBA.portable.OutputStream _out = _request ("getAddresses", true);
_in = _invoke (_out);
String __result[] = net.sourceforge.gjtapi.raw.remote.corba.StringArrayHelper.read (_in);
return __result;
} catch (org.omg.CORBA.portable.ApplicationException _ex) {
_in = _ex.getInputStream ();
String _id = _ex.getId ();
if (_id.equals ("IDL:com/uforce/jtapi/generic/raw/remote/corba/ResourceUnavailableEx:1.0"))
throw net.sourceforge.gjtapi.raw.remote.corba.ResourceUnavailableExHelper.read (_in);
else
throw new org.omg.CORBA.MARSHAL (_id);
} catch (org.omg.CORBA.portable.RemarshalException _rm) {
return getAddresses ();
} finally {
_releaseReply (_in);
}
} // getAddresses
public String[] getAddressesForTerm (String terminal) throws net.sourceforge.gjtapi.raw.remote.corba.InvalidArgumentEx
{
org.omg.CORBA.portable.InputStream _in = null;
try {
org.omg.CORBA.portable.OutputStream _out = _request ("getAddressesForTerm", true);
_out.write_string (terminal);
_in = _invoke (_out);
String __result[] = net.sourceforge.gjtapi.raw.remote.corba.StringArrayHelper.read (_in);
return __result;
} catch (org.omg.CORBA.portable.ApplicationException _ex) {
_in = _ex.getInputStream ();
String _id = _ex.getId ();
if (_id.equals ("IDL:com/uforce/jtapi/generic/raw/remote/corba/InvalidArgumentEx:1.0"))
throw net.sourceforge.gjtapi.raw.remote.corba.InvalidArgumentExHelper.read (_in);
else
throw new org.omg.CORBA.MARSHAL (_id);
} catch (org.omg.CORBA.portable.RemarshalException _rm) {
return getAddressesForTerm (terminal);
} finally {
_releaseReply (_in);
}
} // getAddressesForTerm
public int getAddressType (String name)
{
org.omg.CORBA.portable.InputStream _in = null;
try {
org.omg.CORBA.portable.OutputStream _out = _request ("getAddressType", true);
_out.write_string (name);
_in = _invoke (_out);
int __result = _in.read_long();
return __result;
} 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) {
return getAddressType (name);
} finally {
_releaseReply (_in);
}
} // getAddressType
public net.sourceforge.gjtapi.raw.remote.corba.CallData getCall (int callId)
{
org.omg.CORBA.portable.InputStream _in = null;
try {
org.omg.CORBA.portable.OutputStream _out = _request ("getCall", true);
_out.write_long (callId);
_in = _invoke (_out);
net.sourceforge.gjtapi.raw.remote.corba.CallData __result = net.sourceforge.gjtapi.raw.remote.corba.CallDataHelper.read (_in);
return __result;
} 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) {
return getCall (callId);
} finally {
_releaseReply (_in);
}
} // getCall
public net.sourceforge.gjtapi.raw.remote.corba.CallData[] getCallsOnAddress (String address)
{
org.omg.CORBA.portable.InputStream _in = null;
try {
org.omg.CORBA.portable.OutputStream _out = _request ("getCallsOnAddress", true);
_out.write_string (address);
_in = _invoke (_out);
net.sourceforge.gjtapi.raw.remote.corba.CallData __result[] = net.sourceforge.gjtapi.raw.remote.corba.CallArrayHelper.read (_in);
return __result;
} 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) {
return getCallsOnAddress (address);
} finally {
_releaseReply (_in);
}
} // getCallsOnAddress
public net.sourceforge.gjtapi.raw.remote.corba.CallData[] getCallsOnTerminal (String terminal)
{
org.omg.CORBA.portable.InputStream _in = null;
try {
org.omg.CORBA.portable.OutputStream _out = _request ("getCallsOnTerminal", true);
_out.write_string (terminal);
_in = _invoke (_out);
net.sourceforge.gjtapi.raw.remote.corba.CallData __result[] = net.sourceforge.gjtapi.raw.remote.corba.CallArrayHelper.read (_in);
return __result;
} 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) {
return getCallsOnTerminal (terminal);
} finally {
_releaseReply (_in);
}
} // getCallsOnTerminal
public net.sourceforge.gjtapi.raw.remote.corba.StringEntry[] getCapabilities ()
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -