public abstract class RequestInfoImpl extends LocalObject implements RequestInfo, RequestInfoExt
| Modifier and Type | Field and Description |
|---|---|
protected Connection |
connection |
protected Exception |
exception |
protected static int |
MID_ARGUMENTS |
protected static int |
MID_CONTEXTS |
protected static int |
MID_EXCEPTIONS |
protected static int |
MID_FORWARD_REFERENCE |
protected static int |
MID_GET_REPLY_SERVICE_CONTEXT |
protected static int |
MID_GET_REQUEST_SERVICE_CONTEXT |
protected static int |
MID_GET_SLOT |
protected static int |
MID_OPERATION |
protected static int |
MID_OPERATION_CONTEXT |
protected static int |
MID_REPLY_STATUS |
protected static int |
MID_REQUEST_ID |
protected static int |
MID_RESPONSE_EXPECTED |
protected static int |
MID_RESULT |
protected static int |
MID_RI_LAST |
protected static int |
MID_SYNC_SCOPE |
protected ORB |
myORB |
protected short |
replyStatus |
protected static InterceptorsSystemException |
wrapper |
| Constructor and Description |
|---|
RequestInfoImpl(ORB myORB)
Creates a new RequestInfoImpl object.
|
| Modifier and Type | Method and Description |
|---|---|
ORB |
_orb() |
protected void |
addServiceContext(Map<Integer,ServiceContext> cachedServiceContexts,
ServiceContexts serviceContexts,
ServiceContext service_context,
boolean replace)
Utility method to add an IOP.ServiceContext to a core.ServiceContexts
object.
|
abstract Parameter[] |
arguments()
This method returns the list of arguments for the operation that was
invoked.
|
protected abstract void |
checkAccess(int methodID)
Check whether the caller is allowed to access this method at
this particular time.
|
Connection |
connection() |
abstract String[] |
contexts()
This method returns the list of contexts for the DII operation.
|
abstract TypeCode[] |
exceptions()
This method returns the list of exceptios that was raised when the
operation was invoked.
|
protected Any |
exceptionToAny(Exception exception)
Utility to wrap the given Exception in an Any object and return it.
|
abstract Object |
forward_reference()
Implementation for forward_reference() differs for client and server
implementations.
|
abstract ServiceContext |
get_reply_service_context(int id)
Implementation for get_reply_service_context() differs for client
and server implementations.
|
abstract ServiceContext |
get_request_service_context(int id)
Implementation for get_request_service_context() differs for client
and server implementations.
|
Any |
get_slot(int id)
Returns the data from the given slot of the PortableInterceptor::Current
that is in the scope of the request.
|
protected boolean |
getAlreadyExecuted()
Returns true if all interceptors' starting and ending points
have already executed to completion, or false if not yet.
|
protected int |
getEndingPointCall()
Retrieves the current ending point call type (see
setEndingPointCall for more details).
|
protected int |
getFlowStackIndex()
Returns the number of interceptors whose starting interception
points were actually invoked on this client request.
|
protected ForwardRequest |
getForwardRequestException()
Retrieves the ForwardRequest object as a ForwardRequest exception.
|
protected IOR |
getForwardRequestIOR()
Retrieves the IOR of the ForwardRequest exception.
|
protected int |
getIntermediatePointCall()
Retrieves the current intermediate point call type (see
setEndingPointCall for more details).
|
protected short |
getReplyStatus()
Gets the current reply_status without doing an access check
(available only to package and subclasses)
|
protected ServiceContext |
getServiceContext(Map<Integer,ServiceContext> cachedServiceContexts,
ServiceContexts serviceContexts,
int id)
Utility method to look up a service context with the given id and
convert it to an IOP.ServiceContext.
|
protected int |
getStartingPointCall()
Retrieves the current starting point call type (see
setStartingPointCall for more details).
|
protected Object |
iorToObject(IOR ior) |
protected Parameter[] |
nvListToParameterArray(NVList parNVList)
Internal utility method to convert an NVList into a PI Parameter[]
|
abstract String[] |
operation_context()
This method returns the list of operation_context for the DII operation.
|
abstract String |
operation()
Implementation for operation() differs for client and server
implementations.
|
short |
reply_status()
Describes the state of the result of the operation invocation.
|
abstract int |
request_id()
Implementation for request_id() differs for client and server
implementations.
|
abstract boolean |
response_expected()
Implementation for response_expected() differs for client and server
implementations.
|
abstract Any |
result()
This method returns the result from the invoked DII operation.
|
protected void |
setAlreadyExecuted(boolean alreadyExecuted)
Sets whether all interceotrs' starting and ending points
have already been executed to completion.
|
protected void |
setCurrentExecutionPoint(int executionPoint)
Sets the execution point that we are currently executing
(starting points, intermediate points, or ending points).
|
protected void |
setEndingPointCall(int call)
Sets which ending interception point should be called
for each interceptor in the virtual flow stack.
|
protected void |
setException(Exception exception)
Sets the exception to be returned by received_exception and
received_exception_id.
|
protected void |
setFlowStackIndex(int num)
Sets the number of interceptors whose starting interception
points were successfully invoked on this client call.
|
protected void |
setForwardRequest(ForwardRequest forwardRequest)
Stores the given ForwardRequest object for later analysis.
|
protected void |
setForwardRequest(IOR ior)
Stores the given IOR for later forward request analysis.
|
protected void |
setIntermediatePointCall(int call)
Sets which intermediate interception point should be called
for each interceptor in the virtual flow stack.
|
protected void |
setReplyStatus(short replyStatus)
Sets the value to be returned by reply_status
|
protected void |
setStartingPointCall(int call)
Sets which starting interception point should be called
for each interceptor in the virtual flow stack.
|
short |
sync_scope()
Defined in the Messaging specification.
|
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_policy_override, validate_connectionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_overrideprotected static final InterceptorsSystemException wrapper
protected ORB myORB
protected short replyStatus
protected Connection connection
protected Exception exception
protected static final int MID_REQUEST_ID
protected static final int MID_OPERATION
protected static final int MID_ARGUMENTS
protected static final int MID_EXCEPTIONS
protected static final int MID_CONTEXTS
protected static final int MID_OPERATION_CONTEXT
protected static final int MID_RESULT
protected static final int MID_RESPONSE_EXPECTED
protected static final int MID_SYNC_SCOPE
protected static final int MID_REPLY_STATUS
protected static final int MID_FORWARD_REFERENCE
protected static final int MID_GET_SLOT
protected static final int MID_GET_REQUEST_SERVICE_CONTEXT
protected static final int MID_GET_REPLY_SERVICE_CONTEXT
protected static final int MID_RI_LAST
public RequestInfoImpl(ORB myORB)
public ORB _orb()
_orb in class LocalObjectpublic abstract int request_id()
request_id in interface RequestInfoOperationspublic abstract String operation()
operation in interface RequestInfoOperationspublic abstract Parameter[] arguments()
arguments in interface RequestInfoOperationspublic abstract TypeCode[] exceptions()
exceptions in interface RequestInfoOperationspublic abstract String[] contexts()
contexts in interface RequestInfoOperationspublic abstract String[] operation_context()
operation_context in interface RequestInfoOperationspublic abstract Any result()
result in interface RequestInfoOperationspublic abstract boolean response_expected()
response_expected in interface RequestInfoOperationspublic short sync_scope()
sync_scope in interface RequestInfoOperationspublic short reply_status()
reply_status in interface RequestInfoOperationspublic abstract Object forward_reference()
forward_reference in interface RequestInfoOperationspublic Any get_slot(int id) throws InvalidSlot
If the given slot has not been set, then an any containing a type code with a TCKind value of tk_null is returned.
If the ID does not define an allocated slot, InvalidSlot is raised.
get_slot in interface RequestInfoOperationsInvalidSlotpublic abstract ServiceContext get_request_service_context(int id)
get_request_service_context in interface RequestInfoOperationspublic abstract ServiceContext get_reply_service_context(int id)
get_reply_service_context in interface RequestInfoOperationspublic Connection connection()
connection in interface RequestInfoExtprotected Parameter[] nvListToParameterArray(NVList parNVList)
protected Any exceptionToAny(Exception exception)
protected ServiceContext getServiceContext(Map<Integer,ServiceContext> cachedServiceContexts, ServiceContexts serviceContexts, int id)
protected void addServiceContext(Map<Integer,ServiceContext> cachedServiceContexts, ServiceContexts serviceContexts, ServiceContext service_context, boolean replace)
Raises BAD_INV_ORDER if replace is false and a service context with the given id already exists.
Uses the given HashMap as a cache. If a service context is placed in the container, it goes in the HashMap as well.
protected void setFlowStackIndex(int num)
protected int getFlowStackIndex()
protected void setEndingPointCall(int call)
protected int getEndingPointCall()
protected void setIntermediatePointCall(int call)
protected int getIntermediatePointCall()
protected void setStartingPointCall(int call)
protected int getStartingPointCall()
protected boolean getAlreadyExecuted()
protected void setAlreadyExecuted(boolean alreadyExecuted)
protected void setReplyStatus(short replyStatus)
protected short getReplyStatus()
protected void setForwardRequest(ForwardRequest forwardRequest)
protected void setForwardRequest(IOR ior)
protected ForwardRequest getForwardRequestException()
protected IOR getForwardRequestIOR()
protected void setException(Exception exception)
protected void setCurrentExecutionPoint(int executionPoint)
protected abstract void checkAccess(int methodID)
throws BAD_INV_ORDER
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.BAD_INV_ORDERCopyright © 2017–2019 Eclipse Foundation. All rights reserved.