本文整理汇总了Java中org.omg.PortableInterceptor.ForwardRequest类的典型用法代码示例。如果您正苦于以下问题:Java ForwardRequest类的具体用法?Java ForwardRequest怎么用?Java ForwardRequest使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ForwardRequest类属于org.omg.PortableInterceptor包,在下文中一共展示了ForwardRequest类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: updateClientRequestDispatcherForward
import org.omg.PortableInterceptor.ForwardRequest; //导入依赖的package包/类
/**
* Update the client delegate in the event of a ForwardRequest, given the
* information in the passed-in info object.
*/
private void updateClientRequestDispatcherForward(
ClientRequestInfoImpl info )
{
ForwardRequest forwardRequest = info.getForwardRequestException();
// ForwardRequest may be null if the forwarded IOR is set internal
// to the ClientRequestDispatcher rather than explicitly through Portable
// Interceptors. In this case, we need not update the client
// delegate ForwardRequest object.
if( forwardRequest != null ) {
org.omg.CORBA.Object object = forwardRequest.forward;
// Convert the forward object into an IOR:
IOR ior = ORBUtility.getIOR( object ) ;
info.setLocatedIOR( ior );
}
}
示例2: getForwardRequestException
import org.omg.PortableInterceptor.ForwardRequest; //导入依赖的package包/类
/**
* Retrieves the ForwardRequest object as a ForwardRequest exception.
*/
protected ForwardRequest getForwardRequestException() {
if( this.forwardRequest == null ) {
if( this.forwardRequestIOR != null ) {
// Convert the internal IOR to a forward request exception
// by creating an object reference.
org.omg.CORBA.Object obj = iorToObject(this.forwardRequestIOR);
this.forwardRequest = new ForwardRequest( obj );
}
}
return this.forwardRequest;
}
示例3: receive_request_service_contexts
import org.omg.PortableInterceptor.ForwardRequest; //导入依赖的package包/类
/** @inheritDoc */
public void receive_request_service_contexts(ServerRequestInfo info)
throws ForwardRequest
{
for (int i = 0; i < interceptors.length; i++)
{
interceptors [ i ].receive_request_service_contexts(info);
}
}
示例4: receive_request
import org.omg.PortableInterceptor.ForwardRequest; //导入依赖的package包/类
/** @inheritDoc */
public void receive_request(ServerRequestInfo info) throws ForwardRequest
{
for (int i = 0; i < interceptors.length; i++)
{
interceptors [ i ].receive_request(info);
}
}
示例5: send_exception
import org.omg.PortableInterceptor.ForwardRequest; //导入依赖的package包/类
/** @inheritDoc */
public void send_exception(ServerRequestInfo info) throws ForwardRequest
{
for (int i = 0; i < interceptors.length; i++)
{
interceptors [ i ].send_exception(info);
}
}
示例6: send_other
import org.omg.PortableInterceptor.ForwardRequest; //导入依赖的package包/类
/** @inheritDoc */
public void send_other(ServerRequestInfo info) throws ForwardRequest
{
for (int i = 0; i < interceptors.length; i++)
{
interceptors [ i ].send_other(info);
}
}
示例7: receive_exception
import org.omg.PortableInterceptor.ForwardRequest; //导入依赖的package包/类
/** @inheritDoc */
public void receive_exception(ClientRequestInfo info)
throws ForwardRequest
{
for (int i = 0; i < interceptors.length; i++)
{
interceptors [ i ].receive_exception(info);
}
}
示例8: receive_other
import org.omg.PortableInterceptor.ForwardRequest; //导入依赖的package包/类
/** @inheritDoc */
public void receive_other(ClientRequestInfo info) throws ForwardRequest
{
for (int i = 0; i < interceptors.length; i++)
{
interceptors [ i ].receive_other(info);
}
}
示例9: send_request
import org.omg.PortableInterceptor.ForwardRequest; //导入依赖的package包/类
/** @inheritDoc */
public void send_request(ClientRequestInfo info) throws ForwardRequest
{
for (int i = 0; i < interceptors.length; i++)
{
interceptors [ i ].send_request(info);
}
}
示例10: showException
import org.omg.PortableInterceptor.ForwardRequest; //导入依赖的package包/类
/**
* Show exception to interceptor.
*/
void showException(StreamBasedRequest request, BufferredCdrInput input)
throws ForwardRequest
{
input.mark(2048);
request.request.m_exception_id = input.read_string();
input.reset();
if (request.request.m_interceptor != null)
request.request.m_interceptor.receive_exception(request.request.m_info);
}