public abstract class RequestInfoImpl extends LocalObject implements RequestInfo, RequestInfoExt
Modifier and Type | Field and Description |
---|---|
protected boolean |
alreadyExecuted |
protected Connection |
connection |
protected int |
currentExecutionPoint |
protected int |
endingPointCall |
protected Exception |
exception |
protected static int |
EXECUTION_POINT_ENDING |
protected static int |
EXECUTION_POINT_INTERMEDIATE |
protected static int |
EXECUTION_POINT_STARTING |
protected int |
flowStackIndex |
protected ForwardRequest |
forwardRequest |
protected IOR |
forwardRequestIOR |
protected int |
intermediatePointCall |
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 ServiceContexts |
serviceContexts |
protected SlotTable |
slotTable |
protected int |
startingPointCall |
protected OMGSystemException |
stdWrapper |
protected static short |
UNINITIALIZED |
protected InterceptorsSystemException |
wrapper |
Constructor and Description |
---|
RequestInfoImpl(ORB myORB)
Creates a new RequestInfoImpl object.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addServiceContext(HashMap 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(HashMap 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, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_policy_override, validate_connection
clone, 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_override
protected ORB myORB
protected InterceptorsSystemException wrapper
protected OMGSystemException stdWrapper
protected int flowStackIndex
protected int startingPointCall
protected int intermediatePointCall
protected int endingPointCall
protected short replyStatus
protected static final short UNINITIALIZED
protected int currentExecutionPoint
protected static final int EXECUTION_POINT_STARTING
protected static final int EXECUTION_POINT_INTERMEDIATE
protected static final int EXECUTION_POINT_ENDING
protected boolean alreadyExecuted
protected Connection connection
protected ServiceContexts serviceContexts
protected ForwardRequest forwardRequest
protected IOR forwardRequestIOR
protected SlotTable slotTable
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 abstract int request_id()
request_id
in interface RequestInfoOperations
public abstract String operation()
operation
in interface RequestInfoOperations
public abstract Parameter[] arguments()
arguments
in interface RequestInfoOperations
PortableInterceptor
package comments for
limitations / unimplemented featurespublic abstract TypeCode[] exceptions()
exceptions
in interface RequestInfoOperations
PortableInterceptor
package comments for
limitations / unimplemented featurespublic abstract String[] contexts()
contexts
in interface RequestInfoOperations
PortableInterceptor
package comments for
limitations / unimplemented featurespublic abstract String[] operation_context()
operation_context
in interface RequestInfoOperations
PortableInterceptor
package comments for
limitations / unimplemented featurespublic abstract Any result()
result
in interface RequestInfoOperations
PortableInterceptor
package comments for
limitations / unimplemented featurespublic abstract boolean response_expected()
response_expected
in interface RequestInfoOperations
public short sync_scope()
sync_scope
in interface RequestInfoOperations
PortableInterceptor
package comments for
limitations / unimplemented featurespublic short reply_status()
reply_status
in interface RequestInfoOperations
SUCCESSFUL
,
SYSTEM_EXCEPTION
,
USER_EXCEPTION
,
LOCATION_FORWARD
,
TRANSPORT_RETRY
public abstract Object forward_reference()
forward_reference
in interface RequestInfoOperations
public 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 RequestInfoOperations
id
- The SlotId
of the slot which is to be
returned.InvalidSlot
- thrown if the ID does not define an
allocated slot.Current
public abstract ServiceContext get_request_service_context(int id)
get_request_service_context
in interface RequestInfoOperations
id
- The IOP.ServiceId
of the service context
which is to be returned.IOP.ServiceContext
obtained with the
given identifier.public abstract ServiceContext get_reply_service_context(int id)
get_reply_service_context
in interface RequestInfoOperations
id
- The IOP.ServiceId
of the service context
which is to be returned.IOP.ServiceContext
obtained with the given
identifier.public Connection connection()
connection
in interface RequestInfoExt
protected Parameter[] nvListToParameterArray(NVList parNVList)
protected Any exceptionToAny(Exception exception)
protected ServiceContext getServiceContext(HashMap cachedServiceContexts, ServiceContexts serviceContexts, int id)
protected void addServiceContext(HashMap 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_ORDER
Copyright © 2019 JBoss by Red Hat. All rights reserved.