gnu.CORBA.Poa

Class LocalRequest

Implemented Interfaces:
Cloneable, CurrentOperations, CurrentOperations, ResponseHandler

public class LocalRequest
extends gnuRequest
implements ResponseHandler, CurrentOperations

Directs the invocation to the locally available servant. The POA servant does not longer implement the CORBA object and cannot be substituted directly.

Field Summary

Fields inherited from class gnu.CORBA.gnuRequest

MAX_SUPPORTED, PAUSE_INITIAL, PAUSE_MAX, PAUSE_STEPS, complete, m_args, m_context, m_context_list, m_environment, m_exception_id, m_exceptions, m_forward_ior, m_forwarding_target, m_operation, m_parameter_buffer, m_result, m_rph, m_rqh, m_slots, m_sys_ex, m_target, oneWay, running

Constructor Summary

LocalRequest(gnuServantObject local_object, gnuPOA a_poa, byte[] an_id)
Create an instance of the local request.

Method Summary

OutputStream
createExceptionReply()
Get an output stream for providing details about the exception.
OutputStream
createReply()
Get an output stream for writing a regular reply (not an exception).
StreamBasedRequest
getParameterStream()
Get the parameter stream, where the invocation arguments should be written if they are written into the stream directly.
POA
get_POA()
byte[]
get_object_id()
void
invoke()
Make an invocation and store the result in the fields of this Request.
InputStream
v_invoke(InvokeHandler handler)
Make an invocation and return a stream from where the results can be read.

Methods inherited from class gnu.CORBA.gnuRequest

Clone, add_in_arg, add_inout_arg, add_named_in_arg, add_named_inout_arg, add_named_out_arg, add_out_arg, add_request_service_context, arguments, checkDii, contexts, ctx, ctx, effective_profile, effective_target, env, exceptions, forward_reference, getIor, getParameterStream, get_effective_component, get_effective_components, get_reply_service_context, get_request_policy, get_request_service_context, get_response, get_slot, ice_contexts, invoke, operation, operation_context, orb, poll_response, received_exception, received_exception_id, reply_status, request_id, response_expected, result, return_value, send_deferred, send_oneway, setBigEndian, setIor, setORB, setOperation, set_args, set_context_list, set_environment, set_exceptions, set_operation, set_result, set_return_type, set_target, submit, sync_scope, target, useVersion, waitWhileBusy, write_parameter_buffer, write_parameters

Methods inherited from class org.omg.CORBA.Request

add_in_arg, add_inout_arg, add_named_in_arg, add_named_inout_arg, add_named_out_arg, add_out_arg, arguments, contexts, ctx, ctx, env, exceptions, get_response, invoke, operation, poll_response, result, return_value, send_deferred, send_oneway, set_return_type, target

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

LocalRequest

public LocalRequest(gnuServantObject local_object,
                    gnuPOA a_poa,
                    byte[] an_id)
Create an instance of the local request.

Method Details

createExceptionReply

public OutputStream createExceptionReply()
Get an output stream for providing details about the exception. Before returning the stream, the handler automatically writes the message header and the reply about exception header, but not the message header.
Specified by:
createExceptionReply in interface ResponseHandler
Returns:
the stream to write exception details into.

createReply

public OutputStream createReply()
Get an output stream for writing a regular reply (not an exception). Before returning the stream, the handler automatically writes the regular reply header, but not the message header.
Specified by:
createReply in interface ResponseHandler
Returns:
the output stream for writing a regular reply.

getParameterStream

public StreamBasedRequest getParameterStream()
Get the parameter stream, where the invocation arguments should be written if they are written into the stream directly.
Overrides:
getParameterStream in interface gnuRequest

get_POA

public POA get_POA()
            throws NoContext
Specified by:
get_POA in interface CurrentOperations

get_object_id

public byte[] get_object_id()
            throws NoContext
Specified by:
get_object_id in interface CurrentOperations

invoke

public void invoke()
Make an invocation and store the result in the fields of this Request. Used with DII only.
Overrides:
invoke in interface gnuRequest

v_invoke

public InputStream v_invoke(InvokeHandler handler)
Make an invocation and return a stream from where the results can be read.
Parameters:
handler - the invoke handler (can be null, then it is obtained self dependently).

LocalRequest.java -- Copyright (C) 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.