org.jacorb.orb.portableInterceptor
Class ServerRequestInfoImpl

java.lang.Object
  extended by org.omg.CORBA.LocalObject
      extended by org.jacorb.orb.portableInterceptor.RequestInfoImpl
          extended by org.jacorb.orb.portableInterceptor.ServerRequestInfoImpl
All Implemented Interfaces:
java.io.Serializable, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity, org.omg.PortableInterceptor.RequestInfo, org.omg.PortableInterceptor.RequestInfoOperations, org.omg.PortableInterceptor.ServerRequestInfo, org.omg.PortableInterceptor.ServerRequestInfoOperations

public class ServerRequestInfoImpl
extends RequestInfoImpl
implements org.omg.PortableInterceptor.ServerRequestInfo

This class represents the type of info object that will be passed to the ServerRequestInterceptors.
See PI Spec p.5-50ff

Version:
$Id: ServerRequestInfoImpl.java,v 1.18 2006/07/14 12:02:41 nick.cross Exp $
Author:
Nicolas Noffke
See Also:
Serialized Form

Field Summary
 ServerRequest request
           
 org.omg.CORBA.Any sending_exception
           
 
Fields inherited from class org.jacorb.orb.portableInterceptor.RequestInfoImpl
arguments, caller_op, current, exceptions, forward_reference, operation, reply_ctx, reply_status, request_ctx, request_id, response_expected, result
 
Constructor Summary
ServerRequestInfoImpl(ORB orb, ServerRequest request, org.omg.PortableServer.Servant servant)
           
 
Method Summary
 byte[] adapter_id()
           
 void add_reply_service_context(org.omg.IOP.ServiceContext service_context, boolean replace)
           
 org.omg.Dynamic.Parameter[] arguments()
           
 org.omg.CORBA.TypeCode[] exceptions()
           
 org.omg.CORBA.Object forward_reference()
           
 org.omg.IOP.ServiceContext get_reply_service_context(int id)
           
 org.omg.CORBA.Policy get_server_policy(int type)
          WARNING: This method relies on the DomainService to be available.
 java.util.Enumeration getReplyServiceContexts()
           
 byte[] object_id()
           
 java.lang.String operation()
           
 short reply_status()
           
 int request_id()
           
 boolean response_expected()
           
 org.omg.CORBA.Any result()
           
 org.omg.CORBA.Any sending_exception()
           
 void set_slot(int id, org.omg.CORBA.Any data)
           
 void setServant(org.omg.PortableServer.Servant servant)
          The servant is sometimes not available on calling receive_request_service_contexts (e.g.
 short sync_scope()
           
 boolean target_is_a(java.lang.String id)
           
 java.lang.String target_most_derived_interface()
           
 org.omg.CORBA.Object target()
          returns a reference to the calls target.
 void update()
          Set the sending_exception attribute.
 
Methods inherited from class org.jacorb.orb.portableInterceptor.RequestInfoImpl
contexts, current, get_request_service_context, get_slot, operation_context, setArguments, setCurrent, setForwardReference, setReplyServiceContexts, setReplyStatus, setRequestServiceContexts, setResult
 
Methods inherited from class org.omg.CORBA.LocalObject
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_policy_override, validate_connection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.omg.PortableInterceptor.ServerRequestInfoOperations
adapter_name, orb_id, server_id
 
Methods inherited from interface org.omg.PortableInterceptor.RequestInfoOperations
contexts, get_request_service_context, get_slot, operation_context
 
Methods inherited from interface org.omg.CORBA.Object
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
 

Field Detail

request

public final ServerRequest request

sending_exception

public org.omg.CORBA.Any sending_exception
Constructor Detail

ServerRequestInfoImpl

public ServerRequestInfoImpl(ORB orb,
                             ServerRequest request,
                             org.omg.PortableServer.Servant servant)
Method Detail

setServant

public final void setServant(org.omg.PortableServer.Servant servant)
The servant is sometimes not available on calling receive_request_service_contexts (e.g. in case of ServantLocators or ServantActivators).


update

public void update()
Set the sending_exception attribute.


getReplyServiceContexts

public java.util.Enumeration getReplyServiceContexts()

target

public org.omg.CORBA.Object target()
returns a reference to the calls target.


arguments

public org.omg.Dynamic.Parameter[] arguments()
Specified by:
arguments in interface org.omg.PortableInterceptor.RequestInfoOperations
Overrides:
arguments in class RequestInfoImpl

exceptions

public org.omg.CORBA.TypeCode[] exceptions()
Specified by:
exceptions in interface org.omg.PortableInterceptor.RequestInfoOperations
Overrides:
exceptions in class RequestInfoImpl

result

public org.omg.CORBA.Any result()
Specified by:
result in interface org.omg.PortableInterceptor.RequestInfoOperations
Overrides:
result in class RequestInfoImpl

sync_scope

public short sync_scope()
Specified by:
sync_scope in interface org.omg.PortableInterceptor.RequestInfoOperations
Overrides:
sync_scope in class RequestInfoImpl

reply_status

public short reply_status()
Specified by:
reply_status in interface org.omg.PortableInterceptor.RequestInfoOperations
Overrides:
reply_status in class RequestInfoImpl

forward_reference

public org.omg.CORBA.Object forward_reference()
Specified by:
forward_reference in interface org.omg.PortableInterceptor.RequestInfoOperations
Overrides:
forward_reference in class RequestInfoImpl

get_reply_service_context

public org.omg.IOP.ServiceContext get_reply_service_context(int id)
Specified by:
get_reply_service_context in interface org.omg.PortableInterceptor.RequestInfoOperations
Overrides:
get_reply_service_context in class RequestInfoImpl

operation

public java.lang.String operation()
Specified by:
operation in interface org.omg.PortableInterceptor.RequestInfoOperations
Overrides:
operation in class RequestInfoImpl

request_id

public int request_id()
Specified by:
request_id in interface org.omg.PortableInterceptor.RequestInfoOperations
Overrides:
request_id in class RequestInfoImpl

response_expected

public boolean response_expected()
Specified by:
response_expected in interface org.omg.PortableInterceptor.RequestInfoOperations
Overrides:
response_expected in class RequestInfoImpl

sending_exception

public org.omg.CORBA.Any sending_exception()
Specified by:
sending_exception in interface org.omg.PortableInterceptor.ServerRequestInfoOperations

object_id

public byte[] object_id()
Specified by:
object_id in interface org.omg.PortableInterceptor.ServerRequestInfoOperations

adapter_id

public byte[] adapter_id()
Specified by:
adapter_id in interface org.omg.PortableInterceptor.ServerRequestInfoOperations

target_most_derived_interface

public java.lang.String target_most_derived_interface()
Specified by:
target_most_derived_interface in interface org.omg.PortableInterceptor.ServerRequestInfoOperations

get_server_policy

public org.omg.CORBA.Policy get_server_policy(int type)
WARNING: This method relies on the DomainService to be available. Make shure that the DS is running, if you want to call this method.

Specified by:
get_server_policy in interface org.omg.PortableInterceptor.ServerRequestInfoOperations

set_slot

public void set_slot(int id,
                     org.omg.CORBA.Any data)
              throws org.omg.PortableInterceptor.InvalidSlot
Specified by:
set_slot in interface org.omg.PortableInterceptor.ServerRequestInfoOperations
Throws:
org.omg.PortableInterceptor.InvalidSlot

target_is_a

public boolean target_is_a(java.lang.String id)
Specified by:
target_is_a in interface org.omg.PortableInterceptor.ServerRequestInfoOperations

add_reply_service_context

public void add_reply_service_context(org.omg.IOP.ServiceContext service_context,
                                      boolean replace)
Specified by:
add_reply_service_context in interface org.omg.PortableInterceptor.ServerRequestInfoOperations