-
- All Known Subinterfaces:
ClientRequestInfo,ClientRequestInfoOperations,RequestInfo,ServerRequestInfo,ServerRequestInfoOperations
public interface RequestInfoOperationsRequest Information, accessible to Interceptors.Each interception point is given an object through which the Interceptor can access request information. Client-side and server-side interception points are concerned with different information, so there are two information objects:
ClientRequestInfois passed to the client-side interception points andServerRequestInfois passed to the server-side interception points. But there is information that is common to both, so they both inherit from a common interface:RequestInfo.- See Also:
ClientRequestInfo,ServerRequestInfo
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Parameter[]arguments()Returns an array ofParameterobjects, containing the arguments on the operation being invoked.String[]contexts()Returns an array ofStringobjects describing the contexts that may be passed on this operation invocation.TypeCode[]exceptions()Returns an array ofTypeCodeobjects describing theTypeCodes of the user exceptions that this operation invocation may throw.Objectforward_reference()Contains the object to which the request will be forwarded, if thereply_statusattribute isLOCATION_FORWARD.ServiceContextget_reply_service_context(int id)Returns a copy of the service context with the given ID that is associated with the reply.ServiceContextget_request_service_context(int id)Returns a copy of the service context with the given ID that is associated with the request.Anyget_slot(int id)Returns the data from the given slot of thePortableInterceptor.Currentthat is in the scope of the request.Stringoperation()Returns the name of the operation being invoked.String[]operation_context()Returns an array ofStringobjects containing the contexts being sent on the request.shortreply_status()Describes the state of the result of the operation invocation.intrequest_id()Returns an id that uniquely identifies an active request/reply sequence.booleanresponse_expected()Indicates whether a response is expected.Anyresult()Returns an any containing the result of the operation invocation.shortsync_scope()Defines how far the request shall progress before control is returned to the client.
-
-
-
Method Detail
-
request_id
int request_id()
Returns an id that uniquely identifies an active request/reply sequence. Once a request/reply sequence is concluded this ID may be reused. Note that this id is not the same as the GIOPrequest_id. If GIOP is the transport mechanism used, then these IDs may very well be the same, but this is not guaranteed nor required.
-
operation
String operation()
Returns the name of the operation being invoked.
-
arguments
Parameter[] arguments()
Returns an array ofParameterobjects, containing the arguments on the operation being invoked. If there are no arguments, this attribute will be a zero length array.Not all environments provide access to the arguments. With the Java portable bindings, for example, the arguments are not available. In these environments, when this attribute is accessed,
NO_RESOURCESwill be thrown with a standard minor code of 1.Note: Arguments are available for DSI/DII calls.
- Throws:
NO_RESOURCES- thrown if arguments are not available.- See Also:
-
PortableInterceptorpackage comments for limitations / unimplemented features
-
exceptions
TypeCode[] exceptions()
Returns an array ofTypeCodeobjects describing theTypeCodes of the user exceptions that this operation invocation may throw. If there are no user exceptions, this will return a zero length array.Not all environments provide access to the exception list. With the Java portable bindings, for example, the exception list is not available. In these environments, when this attribute is accessed,
NO_RESOURCESwill be thrown with a standard minor code of 1.Note: Exceptions are available for DSI/DII calls.
- Throws:
NO_RESOURCES- thrown if exceptions are not available.- See Also:
-
PortableInterceptorpackage comments for limitations / unimplemented features
-
contexts
String[] contexts()
Returns an array ofStringobjects describing the contexts that may be passed on this operation invocation. If there are no contexts, this will return a zero length array.Not all environments provide access to the context list. With the Java portable bindings, for example, the context list is not available. In these environments, when this attribute is accessed,
NO_RESOURCESwill be thrown with a standard minor code of 1.Note: Contexts are available for DSI/DII calls.
- Throws:
NO_RESOURCES- thrown if contexts are not available.- See Also:
-
PortableInterceptorpackage comments for limitations / unimplemented features
-
operation_context
String[] operation_context()
Returns an array ofStringobjects containing the contexts being sent on the request.Not all environments provide access to the context. With the Java portable bindings, for example, the context is not available. In these environments, when this attribute is accessed, NO_RESOURCES will be thrown with standard minor code of 1.
Note:
operation_contextis available for DSI/DII calls.- Throws:
NO_RESOURCES- thrown if operation context is not available.- See Also:
-
PortableInterceptorpackage comments for limitations / unimplemented features
-
result
Any result()
Returns an any containing the result of the operation invocation. If the operation return type is void, this attribute will be an any containing a type code with aTCKindvalue oftk_voidand no value.Not all environments provide access to the result. With the Java portable bindings, for example, the result is not available. In these environments, when this attribute is accessed,
NO_RESOURCESwill be thrown with a standard minor code of 1.Note: Result is available for DSI/DII calls.
- Throws:
NO_RESOURCES- thrown if result is not available.- See Also:
-
PortableInterceptorpackage comments for limitations / unimplemented features
-
response_expected
boolean response_expected()
Indicates whether a response is expected.On the client, a reply is not returned when
response_expectedis false, soreceive_replycannot be called.receive_otheris called unless an exception occurs, in which casereceive_exceptionis called.On the client, within
send_poll, this attribute is true.
-
sync_scope
short sync_scope()
Defines how far the request shall progress before control is returned to the client. This is defined in the Messaging specification, and is pertinent only whenresponse_expectedis false. Ifresponse_expectedis true, the value ofsync_scopeis undefined. This attribute may have one of the following values:Messaging.SYNC_NONEMessaging.SYNC_WITH_TRANSPORTMessaging.SYNC_WITH_SERVERMessaging.SYNC_WITH_TARGET
receive_request_service_contexts,receive_request,send_replyorsend_exception).For
SYNC_WITH_SERVERandSYNC_WITH_TARGET, the server does send an empty reply back to the client before the target is invoked. This reply is not intercepted by server-side Interceptors.
-
reply_status
short reply_status()
Describes the state of the result of the operation invocation. The return value can be one of the following:PortableInterceptor.SUCCESSFULPortableInterceptor.SYSTEM_EXCEPTIONPortableInterceptor.USER_EXCEPTIONPortableInterceptor.LOCATION_FORWARDPortableInterceptor.TRANSPORT_RETRY
- Within the
receive_replyinterception point, this will only returnSUCCESSFUL. - Within the
receive_exceptioninterception point, this will be eitherSYSTEM_EXCEPTIONorUSER_EXCEPTION. - Within the
receive_otherinterception point, this will be any of:SUCCESSFUL,LOCATION_FORWARD, orTRANSPORT_RETRY.SUCCESSFULmeans an asynchronous request returned successfully.LOCATION_FORWARDmeans that a reply came back withLOCATION_FORWARDas its status.TRANSPORT_RETRYmeans that the transport mechanism indicated a retry - a GIOP reply with a status ofNEEDS_ADDRESSING_MODE, for instance.
- Within the
send_replyinterception point, this will only beSUCCESSFUL. - Within the
send_exceptioninterception point, this will be eitherSYSTEM_EXCEPTIONorUSER_EXCEPTION. - Within the
send_otherinterception point, this attribute will be any of:SUCCESSFUL, orLOCATION_FORWARD.SUCCESSFULmeans an asynchronous request returned successfully.LOCATION_FORWARDmeans that a reply came back withLOCATION_FORWARDas its status.
- See Also:
SUCCESSFUL,SYSTEM_EXCEPTION,USER_EXCEPTION,LOCATION_FORWARD,TRANSPORT_RETRY
-
forward_reference
Object forward_reference()
Contains the object to which the request will be forwarded, if thereply_statusattribute isLOCATION_FORWARD. It is indeterminate whether a forwarded request will actually occur.
-
get_slot
Any get_slot(int id) throws InvalidSlot
Returns the data from the given slot of thePortableInterceptor.Currentthat is in the scope of the request.If the given slot has not been set, then an any containing a type code with a
TCKindvalue oftk_nullis returned.- Parameters:
id- TheSlotIdof the slot which is to be returned.- Returns:
- The slot data, in the form of an any, obtained with the given identifier.
- Throws:
InvalidSlot- thrown if the ID does not define an allocated slot.- See Also:
Current
-
get_request_service_context
ServiceContext get_request_service_context(int id)
Returns a copy of the service context with the given ID that is associated with the request.- Parameters:
id- TheIOP.ServiceIdof the service context which is to be returned.- Returns:
- The
IOP.ServiceContextobtained with the given identifier. - Throws:
BAD_PARAM- thrown with a standard minor code of 26, if the request's service context does not contain an entry for that ID.
-
get_reply_service_context
ServiceContext get_reply_service_context(int id)
Returns a copy of the service context with the given ID that is associated with the reply.- Parameters:
id- TheIOP.ServiceIdof the service context which is to be returned.- Returns:
- The
IOP.ServiceContextobtained with the given identifier. - Throws:
BAD_PARAM- thrown with a standard minor code of 26 if the request's service context does not contain an entry for that ID.
-
-