Class ClientRequestInfoImpl
java.lang.Object
org.omg.CORBA.LocalObject
com.sun.corba.se.impl.interceptors.RequestInfoImpl
com.sun.corba.se.impl.interceptors.ClientRequestInfoImpl
- All Implemented Interfaces:
RequestInfoExt,Serializable,Object,IDLEntity,ClientRequestInfo,ClientRequestInfoOperations,RequestInfo,RequestInfoOperations
Implementation of the ClientRequestInfo interface as specified in
orbos/99-12-02 section 5.4.2.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected booleanFields inherited from class com.sun.corba.se.impl.interceptors.RequestInfoImpl
alreadyExecuted, connection, currentExecutionPoint, endingPointCall, exception, EXECUTION_POINT_ENDING, EXECUTION_POINT_INTERMEDIATE, EXECUTION_POINT_STARTING, flowStackIndex, forwardRequest, forwardRequestIOR, intermediatePointCall, MID_ARGUMENTS, MID_CONTEXTS, MID_EXCEPTIONS, MID_FORWARD_REFERENCE, MID_GET_REPLY_SERVICE_CONTEXT, MID_GET_REQUEST_SERVICE_CONTEXT, MID_GET_SLOT, MID_OPERATION, MID_OPERATION_CONTEXT, MID_REPLY_STATUS, MID_REQUEST_ID, MID_RESPONSE_EXPECTED, MID_RESULT, MID_RI_LAST, MID_SYNC_SCOPE, myORB, replyStatus, serviceContexts, slotTable, startingPointCall, stdWrapper, UNINITIALIZED, wrapper -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedClientRequestInfoImpl(ORB myORB) Creates a new ClientRequestInfo implementation. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd_request_service_context(ServiceContext service_context, boolean replace) Allows interceptors to add service contexts to the request.See RequestInfoImpl for javadoc.protected voidcheckAccess(int methodID) See description for RequestInfoImpl.checkAccessString[]contexts()See RequestInfoImpl for javadoc.The profile that will be used to send the request.The actual object on which the operation will be invoked.TypeCode[]See RequestInfoImpl for javadoc.See RequestInfoImpl for javadoc.get_effective_component(int id) Returns the IOP::TaggedComponent with the given ID from the profile selected for this request.get_effective_components(int id) Returns all the tagged components with the given ID from the profile selected for this request.get_reply_service_context(int id) does not contain an etry for that ID, BAD_PARAM with a minor code of TBD_BP is raised.get_request_policy(int type) Returns the given policy in effect for this operation.get_request_service_context(int id) See RequestInfoImpl for javadoc.protected booleanprotected booleanSee comment for setDIIInitiateprotected booleanSee RequestInfoImpl for javadoc.String[]See RequestInfoImpl for javadoc.Contains the exception to be returned to the client.The CORBA::RepositoryId of the exception to be returned to the client.intSee RequestInfoImpl for javadoc.booleanSee RequestInfoImpl for javadoc.result()See RequestInfoImpl for javadoc.protected voidsetDIIInitiate(boolean diiInitiate) Keeps track of whether initiate was called for a DII request.protected voidsetDIIRequest(Request req) Sets DII request object in the RequestInfoObject.protected voidsetException(Exception exception) Overridden from RequestInfoImpl.protected voidsetInfo(MessageMediator messageMediator) protected voidsetLocatedIOR(IOR ior) protected voidsetPICurrentPushed(boolean piCurrentPushed) The PICurrent stack should only be popped if it was pushed.protected voidsetReplyStatus(short replyStatus) Overridden from RequestInfoImpl.target()The object which the client called to perform the operation.Methods inherited from class com.sun.corba.se.impl.interceptors.RequestInfoImpl
addServiceContext, exceptionToAny, get_slot, getAlreadyExecuted, getEndingPointCall, getFlowStackIndex, getForwardRequestException, getForwardRequestIOR, getIntermediatePointCall, getReplyStatus, getServiceContext, getStartingPointCall, iorToObject, nvListToParameterArray, reply_status, setAlreadyExecuted, setCurrentExecutionPoint, setEndingPointCall, setFlowStackIndex, setForwardRequest, setForwardRequest, setIntermediatePointCall, setStartingPointCall, sync_scopeMethods inherited from class org.omg.CORBA.LocalObject
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface, _get_interface_def, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_policy_override, validate_connectionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.omg.CORBA.Object
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_overrideMethods inherited from interface org.omg.PortableInterceptor.RequestInfoOperations
get_slot, reply_status, sync_scope
-
Field Details
-
piCurrentPushed
protected boolean piCurrentPushed -
MID_TARGET
protected static final int MID_TARGET- See Also:
-
MID_EFFECTIVE_TARGET
protected static final int MID_EFFECTIVE_TARGET- See Also:
-
MID_EFFECTIVE_PROFILE
protected static final int MID_EFFECTIVE_PROFILE- See Also:
-
MID_RECEIVED_EXCEPTION
protected static final int MID_RECEIVED_EXCEPTION- See Also:
-
MID_RECEIVED_EXCEPTION_ID
protected static final int MID_RECEIVED_EXCEPTION_ID- See Also:
-
MID_GET_EFFECTIVE_COMPONENT
protected static final int MID_GET_EFFECTIVE_COMPONENT- See Also:
-
MID_GET_EFFECTIVE_COMPONENTS
protected static final int MID_GET_EFFECTIVE_COMPONENTS- See Also:
-
MID_GET_REQUEST_POLICY
protected static final int MID_GET_REQUEST_POLICY- See Also:
-
MID_ADD_REQUEST_SERVICE_CONTEXT
protected static final int MID_ADD_REQUEST_SERVICE_CONTEXT- See Also:
-
-
Constructor Details
-
ClientRequestInfoImpl
Creates a new ClientRequestInfo implementation. The constructor is package scope since no other package need create an instance of this class.
-
-
Method Details
-
target
The object which the client called to perform the operation.- Specified by:
targetin interfaceClientRequestInfoOperations- See Also:
-
effective_target
The actual object on which the operation will be invoked. If the reply_status is LOCATION_FORWARD, then on subsequent requests, effective_target will contain the forwarded IOR while target will remain unchanged.- Specified by:
effective_targetin interfaceClientRequestInfoOperations- See Also:
-
effective_profile
The profile that will be used to send the request. If a location forward has occurred for this operation's object and that object's profile change accordingly, then this profile will be that located profile.- Specified by:
effective_profilein interfaceClientRequestInfoOperations
-
received_exception
Contains the exception to be returned to the client.- Specified by:
received_exceptionin interfaceClientRequestInfoOperations- See Also:
-
received_exception_id
The CORBA::RepositoryId of the exception to be returned to the client. -
get_effective_component
Returns the IOP::TaggedComponent with the given ID from the profile selected for this request. IF there is more than one component for a given component ID, it is undefined which component this operation returns (get_effective_component should be called instead).- Specified by:
get_effective_componentin interfaceClientRequestInfoOperations- Parameters:
id- The component id of the component which is to be returned.- Returns:
- The
IOP.TaggedComponentobtained with the given identifier. - See Also:
-
get_effective_components
Returns all the tagged components with the given ID from the profile selected for this request.- Specified by:
get_effective_componentsin interfaceClientRequestInfoOperations- Parameters:
id- The component id of the components which are to be returned.- Returns:
- An array of
TaggedComponentobjects, each of which contains the given identifier. - See Also:
-
get_request_policy
Returns the given policy in effect for this operation.- Specified by:
get_request_policyin interfaceClientRequestInfoOperations- Parameters:
type- The policy type which specifies the policy to be returned.- Returns:
- The
CORBA.Policyobtained with the given type. - See Also:
-
add_request_service_context
Allows interceptors to add service contexts to the request.There is no declaration of the order of the service contexts. They may or may not appear in the order they are added.
- Specified by:
add_request_service_contextin interfaceClientRequestInfoOperations- Parameters:
service_context- TheIOP.ServiceContextto be added to the request.replace- Indicates the behavior of this operation when a service context already exists with the given ID. If false, thenBAD_INV_ORDERwith a standard minor code of 15 is thrown. If true, then the existing service context is replaced by the new one.
-
request_id
public int request_id()See RequestInfoImpl for javadoc.- Specified by:
request_idin interfaceRequestInfoOperations- Specified by:
request_idin classRequestInfoImpl
-
operation
See RequestInfoImpl for javadoc.- Specified by:
operationin interfaceRequestInfoOperations- Specified by:
operationin classRequestInfoImpl
-
arguments
See RequestInfoImpl for javadoc.- Specified by:
argumentsin interfaceRequestInfoOperations- Specified by:
argumentsin classRequestInfoImpl- See Also:
-
exceptions
See RequestInfoImpl for javadoc.- Specified by:
exceptionsin interfaceRequestInfoOperations- Specified by:
exceptionsin classRequestInfoImpl- See Also:
-
contexts
See RequestInfoImpl for javadoc.- Specified by:
contextsin interfaceRequestInfoOperations- Specified by:
contextsin classRequestInfoImpl- See Also:
-
operation_context
See RequestInfoImpl for javadoc.- Specified by:
operation_contextin interfaceRequestInfoOperations- Specified by:
operation_contextin classRequestInfoImpl- See Also:
-
result
See RequestInfoImpl for javadoc.- Specified by:
resultin interfaceRequestInfoOperations- Specified by:
resultin classRequestInfoImpl- See Also:
-
response_expected
public boolean response_expected()See RequestInfoImpl for javadoc.- Specified by:
response_expectedin interfaceRequestInfoOperations- Specified by:
response_expectedin classRequestInfoImpl
-
forward_reference
See RequestInfoImpl for javadoc.- Specified by:
forward_referencein interfaceRequestInfoOperations- Specified by:
forward_referencein classRequestInfoImpl
-
setLocatedIOR
-
get_request_service_context
See RequestInfoImpl for javadoc.- Specified by:
get_request_service_contextin interfaceRequestInfoOperations- Specified by:
get_request_service_contextin classRequestInfoImpl- Parameters:
id- TheIOP.ServiceIdof the service context which is to be returned.- Returns:
- The
IOP.ServiceContextobtained with the given identifier.
-
get_reply_service_context
does not contain an etry for that ID, BAD_PARAM with a minor code of TBD_BP is raised.- Specified by:
get_reply_service_contextin interfaceRequestInfoOperations- Specified by:
get_reply_service_contextin classRequestInfoImpl- Parameters:
id- TheIOP.ServiceIdof the service context which is to be returned.- Returns:
- The
IOP.ServiceContextobtained with the given identifier.
-
connection
- Specified by:
connectionin interfaceRequestInfoExt- Overrides:
connectionin classRequestInfoImpl- Returns:
- The connection on which the request is made. Note: we store the connection as an internal type but expose it here as an external type.
-
setInfo
-
setReplyStatus
protected void setReplyStatus(short replyStatus) Overridden from RequestInfoImpl. Calls the super class, then sets the ending point call depending on the reply status.- Overrides:
setReplyStatusin classRequestInfoImpl
-
setDIIRequest
Sets DII request object in the RequestInfoObject. -
setDIIInitiate
protected void setDIIInitiate(boolean diiInitiate) Keeps track of whether initiate was called for a DII request. The ORB needs to know this so it knows whether to ignore a second call to initiateClientPIRequest or not. -
isDIIInitiate
protected boolean isDIIInitiate()See comment for setDIIInitiate -
setPICurrentPushed
protected void setPICurrentPushed(boolean piCurrentPushed) The PICurrent stack should only be popped if it was pushed. This is generally the case. But exceptions which occur after the stub's entry to _request but before the push end up in _releaseReply which will try to pop unless told not to. -
isPICurrentPushed
protected boolean isPICurrentPushed() -
setException
Overridden from RequestInfoImpl.- Overrides:
setExceptionin classRequestInfoImpl
-
getIsOneWay
protected boolean getIsOneWay() -
checkAccess
See description for RequestInfoImpl.checkAccess- Specified by:
checkAccessin classRequestInfoImpl- Parameters:
methodID- The ID of this method, one of the MID_* constants. This allows us to easily look up the method access in a table. Note that method ids may overlap between subclasses.- Throws:
BAD_INV_ORDER
-