org.jacorb.orb.portableInterceptor

Class ServerRequestInfoImpl

Implemented Interfaces:
IDLEntity, Object, RequestInfo, RequestInfoOperations, java.io.Serializable, ServerRequestInfo, ServerRequestInfoOperations

public class ServerRequestInfoImpl
extends RequestInfoImpl
implements 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.15 2004/05/06 12:40:00 nicolas Exp $

Author:
Nicolas Noffke

Field Summary

ServerRequest
request
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, Servant servant)

Method Summary

byte[]
adapter_id()
void
add_reply_service_context(ServiceContext service_context, boolean replace)
Parameter[]
arguments()
TypeCode[]
exceptions()
Object
forward_reference()
Enumeration
getReplyServiceContexts()
ServiceContext
get_reply_service_context(int id)
Policy
get_server_policy(int type)
WARNING: This method relies on the DomainService to be available.
byte[]
object_id()
String
operation()
short
reply_status()
int
request_id()
boolean
response_expected()
Any
result()
Any
sending_exception()
void
setServant(Servant servant)
The servant is sometimes not available on calling receive_request_service_contexts (e.g. in case of ServantLocators or ServantActivators).
void
set_slot(int id, Any data)
short
sync_scope()
Object
target()
returns a reference to the calls target.
boolean
target_is_a(String id)
String
target_most_derived_interface()
void
update()
Set the sending_exception attribute.

Methods inherited from class org.jacorb.orb.portableInterceptor.RequestInfoImpl

arguments, contexts, exceptions, forward_reference, get_reply_service_context, get_request_service_context, get_slot, operation, operation_context, reply_status, request_id, response_expected, result, setReplyServiceContexts, setRequestServiceContexts, sync_scope

Methods inherited from class org.omg.CORBA.LocalObject

_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface, _get_interface_def, _get_policy, _hash, _ids, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_policy_override, validate_connection

Field Details

request

public ServerRequest request


sending_exception

public Any sending_exception

Constructor Details

ServerRequestInfoImpl

public ServerRequestInfoImpl(ORB orb,
                             ServerRequest request,
                             Servant servant)

Method Details

adapter_id

public byte[] adapter_id()
Specified by:
adapter_id in interface ServerRequestInfoOperations


add_reply_service_context

public void add_reply_service_context(ServiceContext service_context,
                                      boolean replace)
Specified by:
add_reply_service_context in interface ServerRequestInfoOperations


arguments

public Parameter[] arguments()
Specified by:
arguments in interface RequestInfoOperations
Overrides:
arguments in interface RequestInfoImpl


exceptions

public TypeCode[] exceptions()
Specified by:
exceptions in interface RequestInfoOperations
Overrides:
exceptions in interface RequestInfoImpl


forward_reference

public Object forward_reference()
Specified by:
forward_reference in interface RequestInfoOperations
Overrides:
forward_reference in interface RequestInfoImpl


getReplyServiceContexts

public Enumeration getReplyServiceContexts()


get_reply_service_context

public ServiceContext get_reply_service_context(int id)
Specified by:
get_reply_service_context in interface RequestInfoOperations
Overrides:
get_reply_service_context in interface RequestInfoImpl


get_server_policy

public 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 ServerRequestInfoOperations


object_id

public byte[] object_id()
Specified by:
object_id in interface ServerRequestInfoOperations


operation

public String operation()
Specified by:
operation in interface RequestInfoOperations
Overrides:
operation in interface RequestInfoImpl


reply_status

public short reply_status()
Specified by:
reply_status in interface RequestInfoOperations
Overrides:
reply_status in interface RequestInfoImpl


request_id

public int request_id()
Specified by:
request_id in interface RequestInfoOperations
Overrides:
request_id in interface RequestInfoImpl


response_expected

public boolean response_expected()
Specified by:
response_expected in interface RequestInfoOperations
Overrides:
response_expected in interface RequestInfoImpl


result

public Any result()
Specified by:
result in interface RequestInfoOperations
Overrides:
result in interface RequestInfoImpl


sending_exception

public Any sending_exception()
Specified by:
sending_exception in interface ServerRequestInfoOperations


setServant

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


set_slot

public void set_slot(int id,
                     Any data)
            throws InvalidSlot
Specified by:
set_slot in interface ServerRequestInfoOperations


sync_scope

public short sync_scope()
Specified by:
sync_scope in interface RequestInfoOperations
Overrides:
sync_scope in interface RequestInfoImpl


target

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


target_is_a

public boolean target_is_a(String id)


target_most_derived_interface

public String target_most_derived_interface()
Specified by:
target_most_derived_interface in interface ServerRequestInfoOperations


update

public void update()
Set the sending_exception attribute.