本文整理汇总了Java中org.omg.CORBA.portable.ApplicationException.getId方法的典型用法代码示例。如果您正苦于以下问题:Java ApplicationException.getId方法的具体用法?Java ApplicationException.getId怎么用?Java ApplicationException.getId使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.omg.CORBA.portable.ApplicationException
的用法示例。
在下文中一共展示了ApplicationException.getId方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: readException
import org.omg.CORBA.portable.ApplicationException; //导入方法依赖的package包/类
public Exception readException( ApplicationException ae )
{
// Note that the exception ID is present in both ae
// and in the input stream from ae. The exception
// reader must actually read the exception ID from
// the stream.
InputStream is = (InputStream)ae.getInputStream() ;
String excName = ae.getId() ;
int index = findDeclaredException( excName ) ;
if (index < 0) {
excName = is.read_string() ;
Exception res = new UnexpectedException( excName ) ;
res.initCause( ae ) ;
return res ;
}
return rws[index].read( is ) ;
}
示例2: destroy
import org.omg.CORBA.portable.ApplicationException; //导入方法依赖的package包/类
/** {@inheritDoc} */
public void destroy()
{
InputStream input = null;
try
{
OutputStream output = _request("destroy", true);
input = _invoke(output);
}
catch (ApplicationException ex)
{
input = ex.getInputStream();
String id = ex.getId();
throw new MARSHAL(id);
}
catch (RemarshalException remarsh)
{
destroy();
}
finally
{
_releaseReply(input);
}
}
示例3: components_established
import org.omg.CORBA.portable.ApplicationException; //导入方法依赖的package包/类
/** {@inheritDoc} */
public void components_established(IORInfo info)
{
InputStream input = null;
try
{
OutputStream output = _request("components_established", true);
output.write_Object(info);
input = _invoke(output);
}
catch (ApplicationException ex)
{
input = ex.getInputStream();
String id = ex.getId();
throw new MARSHAL(id);
}
catch (RemarshalException remarsh)
{
components_established(info);
}
finally
{
_releaseReply(input);
}
}
示例4: sayHello
import org.omg.CORBA.portable.ApplicationException; //导入方法依赖的package包/类
/**
* One way call of the remote method.
*/
public void sayHello()
{
InputStream in = null;
try
{
// As we do not expect any response, the second
// parameter is 'false'.
OutputStream out = _request("sayHello", false);
in = _invoke(out);
}
catch (ApplicationException ex)
{
in = ex.getInputStream();
throw new MARSHAL(ex.getId());
}
catch (RemarshalException _rm)
{
sayHello();
}
finally
{
_releaseReply(in);
}
}
示例5: theField
import org.omg.CORBA.portable.ApplicationException; //导入方法依赖的package包/类
/**
* Set the field value.
*/
public void theField(int newTheField)
{
InputStream in = null;
try
{
// The special name of operation instructs just to set
// the field value rather than calling the method.
OutputStream out = _request("_set_theField", true);
out.write_long(newTheField);
in = _invoke(out);
}
catch (ApplicationException ex)
{
in = ex.getInputStream();
throw new MARSHAL(ex.getId());
}
catch (RemarshalException _rm)
{
theField(newTheField);
}
finally
{
_releaseReply(in);
}
}
示例6: destroy
import org.omg.CORBA.portable.ApplicationException; //导入方法依赖的package包/类
/** {@inheritDoc} */
public void destroy()
{
InputStream input = null;
try
{
OutputStream output = _request("destroy", true);
input = _invoke(output);
}
catch (ApplicationException ex)
{
input = ex.getInputStream();
String id = ex.getId();
throw new MARSHAL(id);
}
catch (RemarshalException remarsh)
{
destroy();
}
finally
{
_releaseReply(input);
}
}
示例7: copy
import org.omg.CORBA.portable.ApplicationException; //导入方法依赖的package包/类
/** {@inheritDoc} */
public Policy copy()
{
InputStream input = null;
try
{
OutputStream output = _request("copy", true);
input = _invoke(output);
return PolicyHelper.read(input);
}
catch (ApplicationException ex)
{
input = ex.getInputStream();
String id = ex.getId();
throw new MARSHAL(id);
}
catch (RemarshalException remarsh)
{
return copy();
}
finally
{
_releaseReply(input);
}
}
示例8: establish_components
import org.omg.CORBA.portable.ApplicationException; //导入方法依赖的package包/类
/** {@inheritDoc} */
public void establish_components(IORInfo info)
{
InputStream input = null;
try
{
OutputStream output = _request("establish_components", true);
output.write_Object(info);
input = _invoke(output);
}
catch (ApplicationException ex)
{
input = ex.getInputStream();
String id = ex.getId();
throw new MARSHAL(id);
}
catch (RemarshalException remarsh)
{
establish_components(info);
}
finally
{
_releaseReply(input);
}
}
示例9: def_kind
import org.omg.CORBA.portable.ApplicationException; //导入方法依赖的package包/类
/**
* Get the definition kind of the remote IDL type object. The method is
* written following OMG specification, treating the typecode
* as a read only attribute rather than a method. This means,
* the operation name is "_get_def_kind".
*
* @return a definition kind, returned by remote IDL type object.
*/
public DefinitionKind def_kind()
{
InputStream in = null;
try
{
OutputStream out = _request("_get_def_kind", true);
in = _invoke(out);
return DefinitionKindHelper.read(in);
}
catch (ApplicationException ex)
{
in = ex.getInputStream();
throw new org.omg.CORBA.MARSHAL(ex.getId());
}
catch (RemarshalException rex)
{
return def_kind();
}
finally
{
_releaseReply(in);
}
}
示例10: destroy
import org.omg.CORBA.portable.ApplicationException; //导入方法依赖的package包/类
/**
* Destroy the remote IDL type object.
*/
public void destroy()
{
InputStream in = null;
try
{
OutputStream out = _request("destroy", true);
in = _invoke(out);
}
catch (ApplicationException ex)
{
in = ex.getInputStream();
throw new org.omg.CORBA.MARSHAL(ex.getId());
}
catch (RemarshalException rex)
{
destroy();
}
finally
{
_releaseReply(in);
}
}
示例11: rebind
import org.omg.CORBA.portable.ApplicationException; //导入方法依赖的package包/类
/** {@inheritDoc} */
public void rebind(NameComponent[] a_name, org.omg.CORBA.Object an_object)
throws NotFound, CannotProceed, InvalidName
{
InputStream in = null;
try
{
OutputStream out = _request("rebind", true);
NameHelper.write(out, a_name);
ObjectHelper.write(out, an_object);
in = _invoke(out);
}
catch (ApplicationException ex)
{
in = ex.getInputStream();
String id = ex.getId();
throw4(in, id);
}
catch (RemarshalException remarsh)
{
rebind(a_name, an_object);
}
finally
{
_releaseReply(in);
}
}
示例12: adapter_manager_state_changed
import org.omg.CORBA.portable.ApplicationException; //导入方法依赖的package包/类
/** {@inheritDoc} */
public void adapter_manager_state_changed(int adapterManagerId,
short adapterState)
{
InputStream input = null;
try
{
OutputStream output = _request("adapter_manager_state_changed", true);
output.write_long(adapterManagerId);
output.write_short(adapterState);
input = _invoke(output);
}
catch (ApplicationException ex)
{
input = ex.getInputStream();
String id = ex.getId();
throw new MARSHAL(id);
}
catch (RemarshalException remarsh)
{
adapter_manager_state_changed(adapterManagerId, adapterState);
}
finally
{
_releaseReply(input);
}
}
示例13: passStructure
import org.omg.CORBA.portable.ApplicationException; //导入方法依赖的package包/类
/**
Passes and returns the structures.
*/
public StructureToReturn passStructure(StructureToPass in_structure)
{
InputStream in = null;
try
{
// Get the stream where the parameters must be written.
OutputStream out = _request("passStructure", true);
// Write the structure, using its helper.
StructureToPassHelper.write(out, in_structure);
// Invoke the method.
in = _invoke(out);
// Read the returned structer, using another helper.
StructureToReturn result = StructureToReturnHelper.read(in);
return result;
}
catch (ApplicationException ex)
{
in = ex.getInputStream();
throw new MARSHAL(ex.getId());
}
catch (RemarshalException _rm)
{
return passStructure(in_structure);
}
finally
{
_releaseReply(in);
}
}
示例14: destroy
import org.omg.CORBA.portable.ApplicationException; //导入方法依赖的package包/类
/**
* Destroys the object on the server side.
* The destruction message is sent only once, even if the method is
* called repeatedly.
*/
public void destroy()
{
if (destroyed)
return;
InputStream _in = null;
try
{
OutputStream _out = _request("destroy", true);
_in = _invoke(_out);
destroyed = true;
}
catch (ApplicationException _ex)
{
_in = _ex.getInputStream();
throw new MARSHAL(_ex.getId());
}
catch (RemarshalException _rm)
{
destroy();
}
finally
{
_releaseReply(_in);
}
}
示例15: rebind_context
import org.omg.CORBA.portable.ApplicationException; //导入方法依赖的package包/类
/** {@inheritDoc} */
public void rebind_context(NameComponent[] a_name, NamingContext a_context)
throws NotFound, CannotProceed, InvalidName
{
InputStream in = null;
try
{
OutputStream out = _request("rebind_context", true);
NameHelper.write(out, a_name);
NamingContextHelper.write(out, a_context);
in = _invoke(out);
}
catch (ApplicationException ex)
{
in = ex.getInputStream();
String id = ex.getId();
throw4(in, id);
}
catch (RemarshalException remarsh)
{
rebind_context(a_name, a_context);
}
finally
{
_releaseReply(in);
}
}