Package org.omg.PortableInterceptor
Class ServerRequestInfoHolder
- java.lang.Object
-
- org.omg.PortableInterceptor.ServerRequestInfoHolder
-
- All Implemented Interfaces:
Streamable
public final class ServerRequestInfoHolder extends java.lang.Object implements Streamable
Request Information, accessible to server-side request interceptors.Some attributes and operations on
ServerRequestInfoare not valid at all interception points. The following table shows the validity of each attribute or operation. If it is not valid, attempting to access it will result in aBAD_INV_ORDERbeing thrown with a standard minor code of 14.Request Information receive_request_
service_contextsreceive_request send_reply send_exception send_other Inherited from RequestInfo: request_id yes yes yes yes yes operation yes yes yes yes yes arguments no yes1 yes no2 no2 exceptions no yes yes yes yes contexts no yes yes yes yes operation_context no yes yes no no result no no yes no no response_expected yes yes yes yes yes sync_scope yes yes yes yes yes reply_status no no yes yes yes forward_reference no no no no yes2 get_slot yes yes yes yes yes get_request_service_context yes no yes yes yes get_reply_service_context no no yes yes yes ServerRequestInfo-specific: sending_exception no no no yes no object_id no yes yes yes3 yes3 adapter_id no yes yes yes3 yes3 server_id no yes yes yes yes orb_id no yes yes yes yes adapter_name no yes yes yes yes target_most_derived_interface no yes no4 no4 no4 get_server_policy yes yes yes yes yes set_slot yes yes yes yes yes target_is_a no yes no4 no4 no4 add_reply_service_context yes yes yes yes yes - When
ServerRequestInfois passed toreceive_request, there is an entry in the list for every argument, whether in, inout, or out. But only the in and inout arguments will be available. - If the
reply_statusattribute is notLOCATION_FORWARD, accessing this attribute will throwBAD_INV_ORDERwith a standard minor code of 14. - If the servant locator caused a location forward, or thrown an
exception, this attribute/operation may not be available in this
interception point.
NO_RESOURCESwith a standard minor code of 1 will be thrown if it is not available. - The operation is not available in this interception point because
the necessary information requires access to the target object's
servant, which may no longer be available to the ORB. For example,
if the object's adapter is a POA that uses a
ServantLocator, then the ORB invokes the interception point after it callsServantLocator.postinvoke()
- See Also:
ServerRequestInterceptor
-
-
Field Summary
Fields Modifier and Type Field Description ServerRequestInfovalue
-
Constructor Summary
Constructors Constructor Description ServerRequestInfoHolder()ServerRequestInfoHolder(ServerRequestInfo initialValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void_read(InputStream i)Reads data fromistreamand initalizes thevaluefield of the Holder with the unmarshalled data.TypeCode_type()Retrieves theTypeCodeobject corresponding to the value in thevaluefield of the Holder.void_write(OutputStream o)Marshals toostreamthe value in thevaluefield of the Holder.
-
-
-
Field Detail
-
value
public ServerRequestInfo value
-
-
Constructor Detail
-
ServerRequestInfoHolder
public ServerRequestInfoHolder()
-
ServerRequestInfoHolder
public ServerRequestInfoHolder(ServerRequestInfo initialValue)
-
-
Method Detail
-
_read
public void _read(InputStream i)
Description copied from interface:StreamableReads data fromistreamand initalizes thevaluefield of the Holder with the unmarshalled data.- Specified by:
_readin interfaceStreamable- Parameters:
i- the InputStream that represents the CDR data from the wire.
-
_write
public void _write(OutputStream o)
Description copied from interface:StreamableMarshals toostreamthe value in thevaluefield of the Holder.- Specified by:
_writein interfaceStreamable- Parameters:
o- the CDR OutputStream
-
_type
public TypeCode _type()
Description copied from interface:StreamableRetrieves theTypeCodeobject corresponding to the value in thevaluefield of the Holder.- Specified by:
_typein interfaceStreamable- Returns:
- the
TypeCodeobject for the value held in the holder
-
-