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

📄 _authserverstub.java

📁 java开源的企业总线.xmlBlaster
💻 JAVA
字号:
package org.xmlBlaster.protocol.corba.authenticateIdl;/** *	Generated from IDL interface "AuthServer" *	@author JacORB IDL compiler V 2.1, 16-Feb-2004 */public class _AuthServerStub	extends org.omg.CORBA.portable.ObjectImpl	implements org.xmlBlaster.protocol.corba.authenticateIdl.AuthServer{	private String[] ids = {"IDL:org.xmlBlaster.protocol.corba/authenticateIdl/AuthServer:1.0"};	public String[] _ids()	{		return ids;	}	public final static java.lang.Class _opsClass = org.xmlBlaster.protocol.corba.authenticateIdl.AuthServerOperations.class;	public java.lang.String ping(java.lang.String qos)	{		while(true)		{		if(! this._is_local())		{			org.omg.CORBA.portable.InputStream _is = null;			try			{				org.omg.CORBA.portable.OutputStream _os = _request( "ping", true);				_os.write_string(qos);				_is = _invoke(_os);				java.lang.String _result = _is.read_string();				return _result;			}			catch( org.omg.CORBA.portable.RemarshalException _rx ){}			catch( org.omg.CORBA.portable.ApplicationException _ax )			{				String _id = _ax.getId();				throw new RuntimeException("Unexpected exception " + _id );			}			finally			{				this._releaseReply(_is);			}		}		else		{			org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "ping", _opsClass );			if( _so == null )				throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");			AuthServerOperations _localServant = (AuthServerOperations)_so.servant;			java.lang.String _result;			try			{			_result = _localServant.ping(qos);			}			finally			{				_servant_postinvoke(_so);			}			return _result;		}		}	}	public java.lang.String connect(java.lang.String qos) throws org.xmlBlaster.protocol.corba.serverIdl.XmlBlasterException	{		while(true)		{		if(! this._is_local())		{			org.omg.CORBA.portable.InputStream _is = null;			try			{				org.omg.CORBA.portable.OutputStream _os = _request( "connect", true);				_os.write_string(qos);				_is = _invoke(_os);				java.lang.String _result = _is.read_string();				return _result;			}			catch( org.omg.CORBA.portable.RemarshalException _rx ){}			catch( org.omg.CORBA.portable.ApplicationException _ax )			{				String _id = _ax.getId();				if( _id.equals("IDL:org.xmlBlaster.protocol.corba/serverIdl/XmlBlasterException:1.0"))				{					throw org.xmlBlaster.protocol.corba.serverIdl.XmlBlasterExceptionHelper.read(_ax.getInputStream());				}				else 					throw new RuntimeException("Unexpected exception " + _id );			}			finally			{				this._releaseReply(_is);			}		}		else		{			org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "connect", _opsClass );			if( _so == null )				throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");			AuthServerOperations _localServant = (AuthServerOperations)_so.servant;			java.lang.String _result;			try			{			_result = _localServant.connect(qos);			}			finally			{				_servant_postinvoke(_so);			}			return _result;		}		}	}	public void disconnect(java.lang.String sessionId, java.lang.String qos) throws org.xmlBlaster.protocol.corba.serverIdl.XmlBlasterException	{		while(true)		{		if(! this._is_local())		{			org.omg.CORBA.portable.InputStream _is = null;			try			{				org.omg.CORBA.portable.OutputStream _os = _request( "disconnect", true);				_os.write_string(sessionId);				_os.write_string(qos);				_is = _invoke(_os);				return;			}			catch( org.omg.CORBA.portable.RemarshalException _rx ){}			catch( org.omg.CORBA.portable.ApplicationException _ax )			{				String _id = _ax.getId();				if( _id.equals("IDL:org.xmlBlaster.protocol.corba/serverIdl/XmlBlasterException:1.0"))				{					throw org.xmlBlaster.protocol.corba.serverIdl.XmlBlasterExceptionHelper.read(_ax.getInputStream());				}				else 					throw new RuntimeException("Unexpected exception " + _id );			}			finally			{				this._releaseReply(_is);			}		}		else		{			org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "disconnect", _opsClass );			if( _so == null )				throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");			AuthServerOperations _localServant = (AuthServerOperations)_so.servant;			try			{			_localServant.disconnect(sessionId,qos);			}			finally			{				_servant_postinvoke(_so);			}			return;		}		}	}	public void logout(org.xmlBlaster.protocol.corba.serverIdl.Server xmlBlaster) throws org.xmlBlaster.protocol.corba.serverIdl.XmlBlasterException	{		while(true)		{		if(! this._is_local())		{			org.omg.CORBA.portable.InputStream _is = null;			try			{				org.omg.CORBA.portable.OutputStream _os = _request( "logout", true);				org.xmlBlaster.protocol.corba.serverIdl.ServerHelper.write(_os,xmlBlaster);				_is = _invoke(_os);				return;			}			catch( org.omg.CORBA.portable.RemarshalException _rx ){}			catch( org.omg.CORBA.portable.ApplicationException _ax )			{				String _id = _ax.getId();				if( _id.equals("IDL:org.xmlBlaster.protocol.corba/serverIdl/XmlBlasterException:1.0"))				{					throw org.xmlBlaster.protocol.corba.serverIdl.XmlBlasterExceptionHelper.read(_ax.getInputStream());				}				else 					throw new RuntimeException("Unexpected exception " + _id );			}			finally			{				this._releaseReply(_is);			}		}		else		{			org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "logout", _opsClass );			if( _so == null )				throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");			AuthServerOperations _localServant = (AuthServerOperations)_so.servant;			try			{			_localServant.logout(xmlBlaster);			}			finally			{				_servant_postinvoke(_so);			}			return;		}		}	}	public org.xmlBlaster.protocol.corba.serverIdl.Server login(java.lang.String loginName, java.lang.String passwd, java.lang.String qosClient) throws org.xmlBlaster.protocol.corba.serverIdl.XmlBlasterException	{		while(true)		{		if(! this._is_local())		{			org.omg.CORBA.portable.InputStream _is = null;			try			{				org.omg.CORBA.portable.OutputStream _os = _request( "login", true);				_os.write_string(loginName);				_os.write_string(passwd);				_os.write_string(qosClient);				_is = _invoke(_os);				org.xmlBlaster.protocol.corba.serverIdl.Server _result = org.xmlBlaster.protocol.corba.serverIdl.ServerHelper.read(_is);				return _result;			}			catch( org.omg.CORBA.portable.RemarshalException _rx ){}			catch( org.omg.CORBA.portable.ApplicationException _ax )			{				String _id = _ax.getId();				if( _id.equals("IDL:org.xmlBlaster.protocol.corba/serverIdl/XmlBlasterException:1.0"))				{					throw org.xmlBlaster.protocol.corba.serverIdl.XmlBlasterExceptionHelper.read(_ax.getInputStream());				}				else 					throw new RuntimeException("Unexpected exception " + _id );			}			finally			{				this._releaseReply(_is);			}		}		else		{			org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "login", _opsClass );			if( _so == null )				throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");			AuthServerOperations _localServant = (AuthServerOperations)_so.servant;			org.xmlBlaster.protocol.corba.serverIdl.Server _result;			try			{			_result = _localServant.login(loginName,passwd,qosClient);			}			finally			{				_servant_postinvoke(_so);			}			return _result;		}		}	}}

⌨️ 快捷键说明

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