⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 _corbaproviderstub.java

📁 jtapi for telephone
💻 JAVA
📖 第 1 页 / 共 3 页
字号:
  {
	org.omg.CORBA.portable.InputStream _in = null;
	try {
	   org.omg.CORBA.portable.OutputStream _out = _request ("getCapabilities", true);
	   _in = _invoke (_out);
	   net.sourceforge.gjtapi.raw.remote.corba.StringEntry __result[] = net.sourceforge.gjtapi.raw.remote.corba.StringDictionaryHelper.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 getCapabilities ();
	} finally {
		_releaseReply (_in);
	}
  } // getCapabilities        
  public String getDialledDigits (int id, String address)
  {
	org.omg.CORBA.portable.InputStream _in = null;
	try {
	   org.omg.CORBA.portable.OutputStream _out = _request ("getDialledDigits", true);
	   _out.write_long (id);
	   _out.write_string (address);
	   _in = _invoke (_out);
	   String __result = _in.read_string ();
	   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 getDialledDigits (id, address);
	} finally {
		_releaseReply (_in);
	}
  } // getDialledDigits      
  public org.omg.CORBA.Any getPrivateData (int callId, String address, String terminal) throws net.sourceforge.gjtapi.raw.remote.corba.NotSerializableEx
  {
	org.omg.CORBA.portable.InputStream _in = null;
	try {
	   org.omg.CORBA.portable.OutputStream _out = _request ("getPrivateData", true);
	   _out.write_long (callId);
	   _out.write_string (address);
	   _out.write_string (terminal);
	   _in = _invoke (_out);
	   org.omg.CORBA.Any __result = _in.read_any ();
	   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/NotSerializableEx:1.0"))
		  throw net.sourceforge.gjtapi.raw.remote.corba.NotSerializableExHelper.read (_in);
	   else
			throw new org.omg.CORBA.MARSHAL (_id);
	} catch (org.omg.CORBA.portable.RemarshalException _rm) {
	   return getPrivateData (callId, address, terminal);
	} finally {
		_releaseReply (_in);
	}
  } // getPrivateData        
  public net.sourceforge.gjtapi.raw.remote.corba.TermData[] getTerminals () throws net.sourceforge.gjtapi.raw.remote.corba.ResourceUnavailableEx
  {
	org.omg.CORBA.portable.InputStream _in = null;
	try {
	   org.omg.CORBA.portable.OutputStream _out = _request ("getTerminals", true);
	   _in = _invoke (_out);
	   net.sourceforge.gjtapi.raw.remote.corba.TermData __result[] = net.sourceforge.gjtapi.raw.remote.corba.TermArrayHelper.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 getTerminals ();
	} finally {
		_releaseReply (_in);
	}
  } // getTerminals        
  public net.sourceforge.gjtapi.raw.remote.corba.TermData[] getTerminalsForAddr (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 ("getTerminalsForAddr", true);
	   _out.write_string (terminal);
	   _in = _invoke (_out);
	   net.sourceforge.gjtapi.raw.remote.corba.TermData __result[] = net.sourceforge.gjtapi.raw.remote.corba.TermArrayHelper.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 getTerminalsForAddr (terminal);
	} finally {
		_releaseReply (_in);
	}
  } // getTerminalsForAddr        
  public void hold (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 ("hold", 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) {
	   hold (callId, address, terminal);
	} finally {
		_releaseReply (_in);
	}
  } // hold        
  public void initialize (net.sourceforge.gjtapi.raw.remote.corba.StringEntry[] props) throws net.sourceforge.gjtapi.raw.remote.corba.ProviderUnavailableEx
  {
	org.omg.CORBA.portable.InputStream _in = null;
	try {
	   org.omg.CORBA.portable.OutputStream _out = _request ("initialize", true);
	   net.sourceforge.gjtapi.raw.remote.corba.StringDictionaryHelper.write (_out, props);
	   _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/ProviderUnavailableEx:1.0"))
		  throw net.sourceforge.gjtapi.raw.remote.corba.ProviderUnavailableExHelper.read (_in);
	   else
			throw new org.omg.CORBA.MARSHAL (_id);
	} catch (org.omg.CORBA.portable.RemarshalException _rm) {
	   initialize (props);
	} finally {
		_releaseReply (_in);
	}
  } // initialize        
  public boolean isMediaTerminal (String terminal)
  {
	org.omg.CORBA.portable.InputStream _in = null;
	try {
	   org.omg.CORBA.portable.OutputStream _out = _request ("isMediaTerminal", true);
	   _out.write_string (terminal);
	   _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 isMediaTerminal (terminal);
	} finally {
		_releaseReply (_in);
	}
  } // isMediaTerminal      
  public int join (int callId1, int callId2, String address, String terminal) throws net.sourceforge.gjtapi.raw.remote.corba.RawStateEx, net.sourceforge.gjtapi.raw.remote.corba.InvalidArgumentEx, net.sourceforge.gjtapi.raw.remote.corba.MethodNotSupportedEx, net.sourceforge.gjtapi.raw.remote.corba.PrivilegeViolationEx, net.sourceforge.gjtapi.raw.remote.corba.ResourceUnavailableEx
  {
	org.omg.CORBA.portable.InputStream _in = null;
	try {
	   org.omg.CORBA.portable.OutputStream _out = _request ("join", true);
	   _out.write_long (callId1);
	   _out.write_long (callId2);
	   _out.write_string (address);
	   _out.write_string (terminal);
	   _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/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/InvalidArgumentEx:1.0"))
		  throw net.sourceforge.gjtapi.raw.remote.corba.InvalidArgumentExHelper.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/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
			throw new org.omg.CORBA.MARSHAL (_id);
	} catch (org.omg.CORBA.portable.RemarshalException _rm) {
	   return join (callId1, callId2, address, terminal);
	} finally {
		_releaseReply (_in);
	}
  } // join        
  public void play (String terminal, String[] streamIds, int offset, net.sourceforge.gjtapi.raw.remote.corba.LongEntry[] rtcs, net.sourceforge.gjtapi.raw.remote.corba.LongEntry[] optArgs) throws net.sourceforge.gjtapi.raw.remote.corba.MediaResourceEx
  {
	org.omg.CORBA.portable.InputStream _in = null;
	try {
	   org.omg.CORBA.portable.OutputStream _out = _request ("play", true);
	   _out.write_string (terminal);
	   net.sourceforge.gjtapi.raw.remote.corba.StringArrayHelper.write (_out, streamIds);
	   _out.write_long (offset);
	   net.sourceforge.gjtapi.raw.remote.corba.LongDictionaryHelper.write (_out, rtcs);
	   net.sourceforge.gjtapi.raw.remote.corba.LongDictionaryHelper.write (_out, optArgs);
	   _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/MediaResourceEx:1.0"))
		  throw net.sourceforge.gjtapi.raw.remote.corba.MediaResourceExHelper.read (_in);
	   else
			throw new org.omg.CORBA.MARSHAL (_id);
	} catch (org.omg.CORBA.portable.RemarshalException _rm) {
	   play (terminal, streamIds, offset, rtcs, optArgs);
	} finally {
		_releaseReply (_in);
	}
  } // play        
  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) {}
  }      
  public void record (String terminal, String streamId, net.sourceforge.gjtapi.raw.remote.corba.LongEntry[] rtcs, net.sourceforge.gjtapi.raw.remote.corba.LongEntry[] optArgs) throws net.sourceforge.gjtapi.raw.remote.corba.MediaResourceEx
  {
	org.omg.CORBA.portable.InputStream _in = null;
	try {
	   org.omg.CORBA.portable.OutputStream _out = _request ("record", true);
	   _out.write_string (terminal);
	   _out.write_string (streamId);
	   net.sourceforge.gjtapi.raw.remote.corba.LongDictionaryHelper.write (_out, rtcs);
	   net.sourceforge.gjtapi.raw.remote.corba.LongDictionaryHelper.write (_out, optArgs);
	   _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/MediaResourceEx:1.0"))
		  throw net.sourceforge.gjtapi.raw.remote.corba.MediaResourceExHelper.read (_in);
	   else
			throw new org.omg.CORBA.MARSHAL (_id);
	} catch (org.omg.CORBA.portable.RemarshalException _rm) {
	   record (terminal, streamId, rtcs, optArgs);
	} finally {
		_releaseReply (_in);
	}
  } // record        
  public void release (String address, int callId) throws net.sourceforge.gjtapi.raw.remote.corba.RawStateEx, net.sourceforge.gjtapi.raw.remote.corba.MethodNotSupportedEx, net.sourceforge.gjtapi.raw.remote.corba.PrivilegeViolationEx, net.sourceforge.gjtapi.raw.remote.corba.ResourceUnavailableEx
  {
	org.omg.CORBA.portable.InputStream _in = null;
	try {
	   org.omg.CORBA.portable.OutputStream _out = _request ("release", true);
	   _out.write_string (address);
	   _out.write_long (callId);
	   _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/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/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/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
			throw new org.omg.CORBA.MARSHAL (_id);
	} catch (org.omg.CORBA.portable.RemarshalException _rm) {
	   release (address, callId);
	} finally {
		_releaseReply (_in);
	}
  } // release        
  public void releaseCallId (int callId)
  {
	org.omg.CORBA.portable.InputStream _in = null;
	try {
	   org.omg.CORBA.portable.OutputStream _out = _request ("releaseCallId", true);
	   _out.write_long (callId);
	   _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) {
	   releaseCallId (callId);
	} finally {
		_releaseReply (_in);
	}
  } // releaseCallId      
  public void removeListener (net.sourceforge.gjtapi.raw.remote.corba.CorbaListener cl)
  {
	org.omg.CORBA.portable.InputStream _in = null;
	try {

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -