pub struct ServerRequestInfo<'a> { /* private fields */ }Expand description
PortableInterceptor::ServerRequestInfo: one request as the server
interceptors see it, during one interception point.
Implementations§
Source§impl<'a> ServerRequestInfo<'a>
impl<'a> ServerRequestInfo<'a>
Sourcepub fn point(&self) -> ServerPoint
pub fn point(&self) -> ServerPoint
The interception point being run.
Sourcepub fn request_id(&self) -> u32
pub fn request_id(&self) -> u32
request_id: the GIOP request id (0 for a call within the ORB).
Sourcepub fn arguments(&self) -> Result<Vec<Parameter>, SystemException>
pub fn arguments(&self) -> Result<Vec<Parameter>, SystemException>
arguments: only for a DSI servant, in send_reply (else
NO_RESOURCES).
Sourcepub fn exceptions(&self) -> Result<Vec<TypeCode>, SystemException>
pub fn exceptions(&self) -> Result<Vec<TypeCode>, SystemException>
exceptions: NO_RESOURCES (the servant’s exception list is not
known).
Sourcepub fn operation_context(&self) -> Result<Vec<String>, SystemException>
pub fn operation_context(&self) -> Result<Vec<String>, SystemException>
operation_context: NO_RESOURCES.
Sourcepub fn result(&self) -> Result<Any, SystemException>
pub fn result(&self) -> Result<Any, SystemException>
result: in send_reply, for a DSI servant.
Sourcepub fn response_expected(&self) -> bool
pub fn response_expected(&self) -> bool
response_expected.
Sourcepub fn sync_scope(&self) -> i16
pub fn sync_scope(&self) -> i16
sync_scope.
Sourcepub fn reply_status(&self) -> Result<i16, SystemException>
pub fn reply_status(&self) -> Result<i16, SystemException>
reply_status: in the send_* points.
Sourcepub fn forward_reference(&self) -> Result<ObjectRef, SystemException>
pub fn forward_reference(&self) -> Result<ObjectRef, SystemException>
forward_reference: in send_other.
Sourcepub fn set_slot(&self, id: SlotId, data: Any) -> Result<(), InvalidSlot>
pub fn set_slot(&self, id: SlotId, data: Any) -> Result<(), InvalidSlot>
set_slot: what the servant will see in PiCurrent (when set
before receive_request).
Sourcepub fn get_request_service_context(
&self,
id: u32,
) -> Result<ServiceContext, SystemException>
pub fn get_request_service_context( &self, id: u32, ) -> Result<ServiceContext, SystemException>
get_request_service_context: any context the client sent.
Sourcepub fn request_service_contexts(&self) -> &[ServiceContext]
pub fn request_service_contexts(&self) -> &[ServiceContext]
The contexts the client sent (rustorb).
Sourcepub fn get_reply_service_context(
&self,
id: u32,
) -> Result<ServiceContext, SystemException>
pub fn get_reply_service_context( &self, id: u32, ) -> Result<ServiceContext, SystemException>
get_reply_service_context: one added for the reply.
Sourcepub fn add_reply_service_context(
&self,
sc: ServiceContext,
replace: bool,
) -> Result<(), SystemException>
pub fn add_reply_service_context( &self, sc: ServiceContext, replace: bool, ) -> Result<(), SystemException>
add_reply_service_context.
Sourcepub fn sending_exception(&self) -> Result<Any, SystemException>
pub fn sending_exception(&self) -> Result<Any, SystemException>
sending_exception: in send_exception. A user exception a static
skeleton wrote is an Any of UNKNOWN; one a DSI servant set is
itself.
Sourcepub fn sending_exception_id(&self) -> Result<String, SystemException>
pub fn sending_exception_id(&self) -> Result<String, SystemException>
The repository id of the exception, in send_exception (rustorb).
Sourcepub fn adapter_id(&self) -> Result<Vec<u8>, SystemException>
pub fn adapter_id(&self) -> Result<Vec<u8>, SystemException>
adapter_id: the POA’s part of the object key.
Sourcepub fn adapter_name(&self) -> Result<Vec<String>, SystemException>
pub fn adapter_name(&self) -> Result<Vec<String>, SystemException>
adapter_name: the names of the POAs from the RootPOA down.
Sourcepub fn target_most_derived_interface(&self) -> Result<String, SystemException>
pub fn target_most_derived_interface(&self) -> Result<String, SystemException>
target_most_derived_interface: from receive_request on.
Sourcepub fn target_is_a(&self, id: &str) -> Result<bool, SystemException>
pub fn target_is_a(&self, id: &str) -> Result<bool, SystemException>
target_is_a.
Sourcepub fn get_server_policy(
&self,
policy_type: PolicyType,
) -> Result<PolicyValue, SystemException>
pub fn get_server_policy( &self, policy_type: PolicyType, ) -> Result<PolicyValue, SystemException>
get_server_policy: a policy of the target’s POA.