Exemplo n.º 1
0
 public boolean release(org.smpte.st2071._2014.identity.URI session)
     throws org.smpte.st2071._2014.session.NotAcquired, org.smpte.st2071._2014.session.Locked,
         org.smpte.st2071._2014.session.SessionNotFound,
         org.smpte.st2071._2014.security.SecurityException {
   org.omg.CORBA.portable.InputStream $in = null;
   try {
     org.omg.CORBA.portable.OutputStream $out = _request("release", true);
     org.smpte.st2071._2014.identity.URIHelper.write($out, session);
     $in = _invoke($out);
     boolean $result = $in.read_boolean();
     return $result;
   } catch (org.omg.CORBA.portable.ApplicationException $ex) {
     $in = $ex.getInputStream();
     String _id = $ex.getId();
     if (_id.equals("IDL:org/smpte/st2071/_2014/session/NotAcquired:1.0"))
       throw org.smpte.st2071._2014.session.NotAcquiredHelper.read($in);
     else if (_id.equals("IDL:org/smpte/st2071/_2014/session/Locked:1.0"))
       throw org.smpte.st2071._2014.session.LockedHelper.read($in);
     else if (_id.equals("IDL:org/smpte/st2071/_2014/session/SessionNotFound:1.0"))
       throw org.smpte.st2071._2014.session.SessionNotFoundHelper.read($in);
     else if (_id.equals("IDL:org/smpte/st2071/_2014/security/SecurityException:1.0"))
       throw org.smpte.st2071._2014.security.SecurityExceptionHelper.read($in);
     else throw new org.omg.CORBA.MARSHAL(_id);
   } catch (org.omg.CORBA.portable.RemarshalException $rm) {
     return release(session);
   } finally {
     _releaseReply($in);
   }
 } // release
Exemplo n.º 2
0
 // raises (org::smpte::st2071::_2014::security::SecurityException);
 public org.smpte.st2071._2014.identity.URI acquire(String name)
     throws org.smpte.st2071._2014.session.NotAcquired, org.smpte.st2071._2014.session.Locked,
         org.smpte.st2071._2014.session.TooManySessions, org.smpte.st2071._2014.session.NameInUse,
         org.smpte.st2071._2014.security.SecurityException {
   org.omg.CORBA.portable.InputStream $in = null;
   try {
     org.omg.CORBA.portable.OutputStream $out = _request("acquire", true);
     $out.write_wstring(name);
     $in = _invoke($out);
     org.smpte.st2071._2014.identity.URI $result =
         org.smpte.st2071._2014.identity.URIHelper.read($in);
     return $result;
   } catch (org.omg.CORBA.portable.ApplicationException $ex) {
     $in = $ex.getInputStream();
     String _id = $ex.getId();
     if (_id.equals("IDL:org/smpte/st2071/_2014/session/NotAcquired:1.0"))
       throw org.smpte.st2071._2014.session.NotAcquiredHelper.read($in);
     else if (_id.equals("IDL:org/smpte/st2071/_2014/session/Locked:1.0"))
       throw org.smpte.st2071._2014.session.LockedHelper.read($in);
     else if (_id.equals("IDL:org/smpte/st2071/_2014/session/TooManySessions:1.0"))
       throw org.smpte.st2071._2014.session.TooManySessionsHelper.read($in);
     else if (_id.equals("IDL:org/smpte/st2071/_2014/session/NameInUse:1.0"))
       throw org.smpte.st2071._2014.session.NameInUseHelper.read($in);
     else if (_id.equals("IDL:org/smpte/st2071/_2014/security/SecurityException:1.0"))
       throw org.smpte.st2071._2014.security.SecurityExceptionHelper.read($in);
     else throw new org.omg.CORBA.MARSHAL(_id);
   } catch (org.omg.CORBA.portable.RemarshalException $rm) {
     return acquire(name);
   } finally {
     _releaseReply($in);
   }
 } // acquire