Class ServerRequestInfoImpl
java.lang.Object
org.omg.CORBA.LocalObject
com.sun.corba.se.impl.interceptors.RequestInfoImpl
com.sun.corba.se.impl.interceptors.ServerRequestInfoImpl
- All Implemented Interfaces:
RequestInfoExt,Serializable,Object,IDLEntity,RequestInfo,RequestInfoOperations,ServerRequestInfo,ServerRequestInfoOperations
Implementation of the ServerRequestInfo interface as specified in
orbos/99-12-02 section 5.4.3.
- 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 static final intprotected static final intFields 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 -
Method Summary
Modifier and TypeMethodDescriptionbyte[]The opaque identifier for the object adapter.String[]Returns the sequence of strings that identifies the object adapter instance that is handling this request.voidadd_reply_service_context(ServiceContext service_context, boolean replace) Allows Interceptors to add service contexts to the request.See ServerRequestInfo for javadocs.protected voidcheckAccess(int methodID) See description for RequestInfoImpl.checkAccessString[]contexts()See ServerRequestInfo for javadocs.TypeCode[]See ServerRequestInfo for javadocs.See ServerRequestInfo for javadocs.get_reply_service_context(int id) See ServerRequestInfo for javadocs.get_request_service_context(int id) See ServerRequestInfo for javadocs.get_server_policy(int type) Returns the policy in effect for this operation for the given policy type.byte[]The opaque object_id describing the target of the operation invocation.See ServerRequestInfo for javadocs.String[]See ServerRequestInfo for javadocs.orb_id()Returns the ID that was used to create the ORB.intSee ServerRequestInfo for javadocs.booleanSee ServerRequestInfo for javadocs.result()See ServerRequestInfo for javadocs.Any containing the exception to be returned to the client.Returns the server ID that was specified on ORB::init using the -ORBServerId argument.voidAllows an Interceptor to set a slot in the Current that is in the scope of the request.protected voidsetCurrentExecutionPoint(int executionPoint) Overridden from RequestInfoImpl.protected voidsetDSIArguments(NVList arguments) Stores the various sources of information used for this info object.protected voidsetDSIException(Any exception) Stores the various sources of information used for this info object.protected voidsetDSIResult(Any result) Stores the various sources of information used for this info object.protected voidsetException(Exception exception) Sets the exception to be returned by received_exception and received_exception_id.protected voidsetInfo(CorbaMessageMediator request, ObjectAdapter oa, byte[] objectId, ObjectKeyTemplate oktemp) Stores the various sources of information used for this info object.protected voidStores the various sources of information used for this info object.protected voidsetReplyStatus(short replyStatus) Overridden from RequestInfoImpl.booleantarget_is_a(String id) Returns true if the servant is the given RepositoryId, false if it is not.The RepositoryID for the most derived interface of the servant.Methods inherited from class com.sun.corba.se.impl.interceptors.RequestInfoImpl
addServiceContext, connection, exceptionToAny, get_slot, getAlreadyExecuted, getEndingPointCall, getFlowStackIndex, getForwardRequestException, getForwardRequestIOR, getIntermediatePointCall, getReplyStatus, getServiceContext, getStartingPointCall, iorToObject, nvListToParameterArray, reply_status, setAlreadyExecuted, 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
-
MID_SENDING_EXCEPTION
protected static final int MID_SENDING_EXCEPTION- See Also:
-
MID_OBJECT_ID
protected static final int MID_OBJECT_ID- See Also:
-
MID_ADAPTER_ID
protected static final int MID_ADAPTER_ID- See Also:
-
MID_TARGET_MOST_DERIVED_INTERFACE
protected static final int MID_TARGET_MOST_DERIVED_INTERFACE- See Also:
-
MID_GET_SERVER_POLICY
protected static final int MID_GET_SERVER_POLICY- See Also:
-
MID_SET_SLOT
protected static final int MID_SET_SLOT- See Also:
-
MID_TARGET_IS_A
protected static final int MID_TARGET_IS_A- See Also:
-
MID_ADD_REPLY_SERVICE_CONTEXT
protected static final int MID_ADD_REPLY_SERVICE_CONTEXT- See Also:
-
MID_SERVER_ID
protected static final int MID_SERVER_ID- See Also:
-
MID_ORB_ID
protected static final int MID_ORB_ID- See Also:
-
MID_ADAPTER_NAME
protected static final int MID_ADAPTER_NAME- See Also:
-
-
Method Details
-
sending_exception
Any containing the exception to be returned to the client.- Specified by:
sending_exceptionin interfaceServerRequestInfoOperations- See Also:
-
object_id
public byte[] object_id()The opaque object_id describing the target of the operation invocation.- Specified by:
object_idin interfaceServerRequestInfoOperations
-
server_id
Description copied from interface:ServerRequestInfoOperationsReturns the server ID that was specified on ORB::init using the -ORBServerId argument.- Specified by:
server_idin interfaceServerRequestInfoOperations
-
orb_id
Description copied from interface:ServerRequestInfoOperationsReturns the ID that was used to create the ORB.- Specified by:
orb_idin interfaceServerRequestInfoOperations
-
adapter_name
Description copied from interface:ServerRequestInfoOperationsReturns the sequence of strings that identifies the object adapter instance that is handling this request.- Specified by:
adapter_namein interfaceServerRequestInfoOperations
-
adapter_id
public byte[] adapter_id()The opaque identifier for the object adapter.- Specified by:
adapter_idin interfaceServerRequestInfoOperations
-
target_most_derived_interface
The RepositoryID for the most derived interface of the servant.- Specified by:
target_most_derived_interfacein interfaceServerRequestInfoOperations
-
get_server_policy
Returns the policy in effect for this operation for the given policy type.- Specified by:
get_server_policyin interfaceServerRequestInfoOperations- Parameters:
type- TheCORBA.PolicyTypewhich specifies the policy to be returned.- Returns:
- The
CORBA.Policyobtained with the given policy type. - See Also:
-
set_slot
Allows an Interceptor to set a slot in the Current that is in the scope of the request. If data already exists in that slot, it will be overwritten. If the ID does not define an allocated slot, InvalidSlot is raised.- Specified by:
set_slotin interfaceServerRequestInfoOperations- Parameters:
id- The id of the slot.data- The data, in the form of an any, to store in that slot.- Throws:
InvalidSlot- thrown if the ID does not define an allocated slot.- See Also:
-
target_is_a
Returns true if the servant is the given RepositoryId, false if it is not.- Specified by:
target_is_ain interfaceServerRequestInfoOperations- Parameters:
id- The caller wants to know if the servant is this repository id.- Returns:
- Is the servant the given RepositoryId?
-
add_reply_service_context
Allows Interceptors to add service contexts to the request.- Specified by:
add_reply_service_contextin interfaceServerRequestInfoOperations- Parameters:
service_context- TheIOP.ServiceContextto add to the reply.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 ServerRequestInfo for javadocs.- Specified by:
request_idin interfaceRequestInfoOperations- Specified by:
request_idin classRequestInfoImpl
-
operation
See ServerRequestInfo for javadocs.- Specified by:
operationin interfaceRequestInfoOperations- Specified by:
operationin classRequestInfoImpl
-
arguments
See ServerRequestInfo for javadocs.- Specified by:
argumentsin interfaceRequestInfoOperations- Specified by:
argumentsin classRequestInfoImpl- See Also:
-
exceptions
See ServerRequestInfo for javadocs.- Specified by:
exceptionsin interfaceRequestInfoOperations- Specified by:
exceptionsin classRequestInfoImpl- See Also:
-
contexts
See ServerRequestInfo for javadocs.- Specified by:
contextsin interfaceRequestInfoOperations- Specified by:
contextsin classRequestInfoImpl- See Also:
-
operation_context
See ServerRequestInfo for javadocs.- Specified by:
operation_contextin interfaceRequestInfoOperations- Specified by:
operation_contextin classRequestInfoImpl- See Also:
-
result
See ServerRequestInfo for javadocs.- Specified by:
resultin interfaceRequestInfoOperations- Specified by:
resultin classRequestInfoImpl- See Also:
-
response_expected
public boolean response_expected()See ServerRequestInfo for javadocs.- Specified by:
response_expectedin interfaceRequestInfoOperations- Specified by:
response_expectedin classRequestInfoImpl
-
forward_reference
See ServerRequestInfo for javadocs.- Specified by:
forward_referencein interfaceRequestInfoOperations- Specified by:
forward_referencein classRequestInfoImpl
-
get_request_service_context
See ServerRequestInfo for javadocs.- 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
See ServerRequestInfo for javadocs.- 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.
-
setCurrentExecutionPoint
protected void setCurrentExecutionPoint(int executionPoint) Overridden from RequestInfoImpl. This version calls the super and then, if we are changing to ending points, executes all enqueued AddReplyServiceContextCommands.- Overrides:
setCurrentExecutionPointin classRequestInfoImpl
-
setInfo
protected void setInfo(CorbaMessageMediator request, ObjectAdapter oa, byte[] objectId, ObjectKeyTemplate oktemp) Stores the various sources of information used for this info object. -
setDSIArguments
Stores the various sources of information used for this info object. -
setDSIException
Stores the various sources of information used for this info object. -
setDSIResult
Stores the various sources of information used for this info object. -
setException
Sets the exception to be returned by received_exception and received_exception_id.- Overrides:
setExceptionin classRequestInfoImpl
-
setInfo
Stores the various sources of information used for this info object. -
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
-
checkAccess
protected void checkAccess(int methodID) 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.
-