本文整理汇总了Java中org.omg.CORBA.portable.ResponseHandler类的典型用法代码示例。如果您正苦于以下问题:Java ResponseHandler类的具体用法?Java ResponseHandler怎么用?Java ResponseHandler使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ResponseHandler类属于org.omg.CORBA.portable包,在下文中一共展示了ResponseHandler类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: _invoke
import org.omg.CORBA.portable.ResponseHandler; //导入依赖的package包/类
/**
* Our implementation will not call this method. After setting your
* manager to POA, it will call incarnate and etherialize directly.
*/
public OutputStream _invoke(String method, InputStream input,
ResponseHandler handler
)
throws SystemException
{
throw new NO_IMPLEMENT();
}
示例2: _invoke
import org.omg.CORBA.portable.ResponseHandler; //导入依赖的package包/类
/**
* We cannot invoke properly without having parameter info.
*
* @throws BAD_OPERATION, always.
*/
public OutputStream _invoke(String method, InputStream input,
ResponseHandler handler
)
{
throw new BAD_OPERATION(servant + " is not an InvokeHandler.");
}
示例3: _invoke
import org.omg.CORBA.portable.ResponseHandler; //导入依赖的package包/类
/**
* Forward the call to the wrapped object.
*/
public OutputStream _invoke(String method, InputStream input,
ResponseHandler handler
)
throws SystemException
{
org.omg.CORBA.portable.InputStream in = null;
org.omg.CORBA.portable.OutputStream out = null;
try
{
try
{
out = ref._request(method, true);
// Transfer request information.
int b;
while ((b = input.read()) >= 0)
{
out.write(b);
}
in = ref._invoke(out);
// Read the returned data.
out = handler.createReply();
while ((b = in.read()) >= 0)
{
out.write(b);
}
}
catch (IOException io_ex)
{
MARSHAL m = new MARSHAL();
m.minor = Minor.Forwarding;
m.initCause(io_ex);
throw m;
}
}
catch (ApplicationException ex)
{
in = ex.getInputStream();
String _id = ex.getId();
throw new MARSHAL(_id, 5101, CompletionStatus.COMPLETED_NO);
}
catch (RemarshalException remarsh)
{
_invoke(method, input, handler);
}
finally
{
ref._releaseReply(in);
}
return out;
}