|
|||||||||
| Home >> All >> org >> omg >> [ PortableInterceptor overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.omg.PortableInterceptor
Interface ClientRequestInfoOperations

- All Superinterfaces:
- RequestInfoOperations
- All Known Subinterfaces:
- ClientRequestInfo
- public interface ClientRequestInfoOperations
- extends RequestInfoOperations
Provides request information, accessible for the ClientRequestInterceptor. Some methods of this interface are not valid at all interception points. The following table shows the validity of each method. If it is not valid, BAD_INV_ORDER minor 14 will be thrown.
| send_request 55 | send_poll 55 | receive_reply 55 | receive_exception 55 | receive_other 55 | |
|---|---|---|---|---|---|
| Inherited from RequestInfoOperations: | |||||
| arguments 55 | yes 1 | no | yes | no | no |
| exceptions 55 | yes | no | yes | ||
| contexts 55 | yes | no | yes | ||
| operation_context 55 | yes | no | yes | ||
| result 55 | no | no | yes | no | no |
| sync_scope 55 | yes | no | yes | ||
| reply_status 55 | no | no | yes | ||
| forward_reference 55 | no | no | yes 2 | ||
| get_request_service_context 55 | yes | no | yes | ||
| get_reply_service_context 55 | no | no | yes | ||
| request_id 55 | yes | ||||
| operation 55 | yes | ||||
| response_expected 55 | yes | ||||
| get_slot 55 | yes | ||||
| ClientRequestInfo-specific: | |||||
| target 55 | yes | ||||
| effective_target 55 | yes | ||||
| effective_profile 55 | yes | ||||
| received_exception 55 | no | yes | no | ||
| received_exception_id 55 | no | yes | no | ||
| get_effective_component 55 | yes | no | yes | ||
| get_effective_components 55 | yes | no | yes | ||
| get_request_policy 55 | yes | no | yes | ||
| add_request_service_context 55 | yes | no | |||
| send_request 55 | send_poll 55 | receive_reply 55 | receive_exception 55 | receive_other 55 | |
- When ClientRequestInfo is passed to send_request, there is an entry in the list for every argument, but only the in and inout arguments will be available.
- If the reply_status atribute is not LOCATION_FORWARD, accessing this attribute will throw BAD_INV_ORDER with a standard minor code of 14.
| Method Summary | |
void |
add_request_service_context(org.omg.IOP.ServiceContext service_context,
boolean replace)
Allows the interceptor to add the service contexts to the request. |
org.omg.IOP.TaggedProfile |
effective_profile()
Returns the tagged profile (IOR) of the invocation target. |
org.omg.CORBA.Object |
effective_target()
Returns the object on that the operation will be invoked after handling the possible forwarding. |
org.omg.IOP.TaggedComponent |
get_effective_component(int id)
Returns the given component of the invocation target profile. |
org.omg.IOP.TaggedComponent[] |
get_effective_components(int id)
Returns the given components of the invocation target profile. |
org.omg.CORBA.Policy |
get_request_policy(int type)
This should return the policy of the given type that applies to this operation, but it is not implemented up till JDK 1.5 inclusive. |
java.lang.String |
received_exception_id()
Returns the repository id of the remote exception that was thrown on the server side. |
org.omg.CORBA.Any |
received_exception()
Returns the remote exception that was thrown on the server side. |
org.omg.CORBA.Object |
target()
Returns the object on that the client has invoked the the operation. |
| Methods inherited from interface org.omg.PortableInterceptor.RequestInfoOperations |
arguments, contexts, exceptions, forward_reference, get_reply_service_context, get_request_service_context, get_slot, operation_context, operation, reply_status, request_id, response_expected, result, sync_scope |
| Method Detail |
target
public org.omg.CORBA.Object target()
- Returns the object on that the client has invoked the the operation. If the
request was forwarded, it will not be the same object that actually
processed the request.
effective_target
public org.omg.CORBA.Object effective_target()
- Returns the object on that the operation will be invoked after handling the
possible forwarding.
effective_profile
public org.omg.IOP.TaggedProfile effective_profile()
- Returns the tagged profile (IOR) of the invocation target. If the request
was forwarded, the method returns the new location, shown by the forwarding
message.
get_effective_component
public org.omg.IOP.TaggedComponent get_effective_component(int id) throws org.omg.CORBA.BAD_PARAM
- Returns the given component of the invocation target profile. If the
profile contains multiple components with the same Id, it is not defined,
which one will be returned.
get_effective_components
public org.omg.IOP.TaggedComponent[] get_effective_components(int id) throws org.omg.CORBA.BAD_PARAM
- Returns the given components of the invocation target profile. This method
is uses when the profile may contain multiple components with the same Id.
get_request_policy
public org.omg.CORBA.Policy get_request_policy(int type) throws org.omg.CORBA.INV_POLICY
- This should return the policy of the given type that applies to this
operation, but it is not implemented up till JDK 1.5 inclusive.
received_exception_id
public java.lang.String received_exception_id()
- Returns the repository id of the remote exception that was thrown on the
server side.
received_exception
public org.omg.CORBA.Any received_exception()
- Returns the remote exception that was thrown on the server side.
add_request_service_context
public void add_request_service_context(org.omg.IOP.ServiceContext service_context, boolean replace)
- Allows the interceptor to add the service contexts to the request. Such
added contexts can carry arbitrary data and can be later accessed on the
server side by the server request interceptor, using
RequestInfoOperations.get_request_service_context(int)55 .
|
|||||||||
| Home >> All >> org >> omg >> [ PortableInterceptor overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC