public final class ServerRequestInfoImpl extends RequestInfoImpl implements ServerRequestInfo
Modifier and Type | Field and Description |
---|---|
protected static int |
MID_ADAPTER_ID |
protected static int |
MID_ADAPTER_NAME |
protected static int |
MID_ADD_REPLY_SERVICE_CONTEXT |
protected static int |
MID_GET_SERVER_POLICY |
protected static int |
MID_OBJECT_ID |
protected static int |
MID_ORB_ID |
protected static int |
MID_SENDING_EXCEPTION |
protected static int |
MID_SERVER_ID |
protected static int |
MID_SET_SLOT |
protected static int |
MID_TARGET_IS_A |
protected static int |
MID_TARGET_MOST_DERIVED_INTERFACE |
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
Modifier and Type | Method and Description |
---|---|
byte[] |
adapter_id()
The opaque identifier for the object adapter.
|
String[] |
adapter_name()
Returns the sequence of strings that identifies the object
adapter instance that is handling this request.
|
void |
add_reply_service_context(ServiceContext service_context,
boolean replace)
Allows Interceptors to add service contexts to the request.
|
Parameter[] |
arguments()
See ServerRequestInfo for javadocs.
|
protected void |
checkAccess(int methodID)
See description for RequestInfoImpl.checkAccess
|
String[] |
contexts()
See ServerRequestInfo for javadocs.
|
TypeCode[] |
exceptions()
See ServerRequestInfo for javadocs.
|
Object |
forward_reference()
See ServerRequestInfo for javadocs.
|
ServiceContext |
get_reply_service_context(int id)
See ServerRequestInfo for javadocs.
|
ServiceContext |
get_request_service_context(int id)
See ServerRequestInfo for javadocs.
|
Policy |
get_server_policy(int type)
Returns the policy in effect for this operation for the given policy
type.
|
byte[] |
object_id()
The opaque object_id describing the target of the operation invocation.
|
String[] |
operation_context()
See ServerRequestInfo for javadocs.
|
String |
operation()
See ServerRequestInfo for javadocs.
|
String |
orb_id()
Returns the ID that was used to create the ORB.
|
int |
request_id()
See ServerRequestInfo for javadocs.
|
boolean |
response_expected()
See ServerRequestInfo for javadocs.
|
Any |
result()
See ServerRequestInfo for javadocs.
|
Any |
sending_exception()
Any containing the exception to be returned to the client.
|
String |
server_id()
Returns the server ID that was specified on ORB::init using the -ORBServerId
argument.
|
void |
set_slot(int id,
Any data)
Allows an Interceptor to set a slot in the Current that is in the scope
of the request.
|
protected void |
setCurrentExecutionPoint(int executionPoint)
Overridden from RequestInfoImpl.
|
protected void |
setDSIArguments(NVList arguments)
Stores the various sources of information used for this info object.
|
protected void |
setDSIException(Any exception)
Stores the various sources of information used for this info object.
|
protected void |
setDSIResult(Any result)
Stores the various sources of information used for this info object.
|
protected void |
setException(Exception exception)
Sets the exception to be returned by received_exception and
received_exception_id.
|
protected void |
setInfo(CorbaMessageMediator request,
ObjectAdapter oa,
byte[] objectId,
ObjectKeyTemplate oktemp)
Stores the various sources of information used for this info object.
|
protected void |
setInfo(Object servant,
String targetMostDerivedInterface)
Stores the various sources of information used for this info object.
|
protected void |
setReplyStatus(short replyStatus)
Overridden from RequestInfoImpl.
|
boolean |
target_is_a(String id)
Returns true if the servant is the given RepositoryId, false if it is
not.
|
String |
target_most_derived_interface()
The RepositoryID for the most derived interface of the servant.
|
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_scope
_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
get_slot, reply_status, sync_scope
_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 static final int MID_SENDING_EXCEPTION
protected static final int MID_OBJECT_ID
protected static final int MID_ADAPTER_ID
protected static final int MID_TARGET_MOST_DERIVED_INTERFACE
protected static final int MID_GET_SERVER_POLICY
protected static final int MID_SET_SLOT
protected static final int MID_TARGET_IS_A
protected static final int MID_ADD_REPLY_SERVICE_CONTEXT
protected static final int MID_SERVER_ID
protected static final int MID_ORB_ID
protected static final int MID_ADAPTER_NAME
public Any sending_exception()
sending_exception
in interface ServerRequestInfoOperations
PortableInterceptor
package comments for
limitations / unimplemented featurespublic byte[] object_id()
object_id
in interface ServerRequestInfoOperations
public String server_id()
ServerRequestInfoOperations
server_id
in interface ServerRequestInfoOperations
public String orb_id()
ServerRequestInfoOperations
orb_id
in interface ServerRequestInfoOperations
public String[] adapter_name()
ServerRequestInfoOperations
adapter_name
in interface ServerRequestInfoOperations
public byte[] adapter_id()
adapter_id
in interface ServerRequestInfoOperations
public String target_most_derived_interface()
target_most_derived_interface
in interface ServerRequestInfoOperations
public Policy get_server_policy(int type)
get_server_policy
in interface ServerRequestInfoOperations
type
- The CORBA.PolicyType
which specifies the
policy to be returned.CORBA.Policy
obtained with the given
policy type.ORBInitInfoOperations.register_policy_factory(int, org.omg.PortableInterceptor.PolicyFactory)
public void set_slot(int id, Any data) throws InvalidSlot
set_slot
in interface ServerRequestInfoOperations
id
- The id of the slot.data
- The data, in the form of an any, to store in that slot.InvalidSlot
- thrown if the ID does not define an allocated
slot.Current
public boolean target_is_a(String id)
target_is_a
in interface ServerRequestInfoOperations
id
- The caller wants to know if the servant is this
repository id.public void add_reply_service_context(ServiceContext service_context, boolean replace)
add_reply_service_context
in interface ServerRequestInfoOperations
service_context
- The IOP.ServiceContext
to add to
the reply.replace
- Indicates the behavior of this operation when a
service context already exists with the given ID. If false,
then BAD_INV_ORDER
with a standard minor code of 15
is thrown. If true, then the existing service context is
replaced by the new one.public int request_id()
request_id
in interface RequestInfoOperations
request_id
in class RequestInfoImpl
public String operation()
operation
in interface RequestInfoOperations
operation
in class RequestInfoImpl
public Parameter[] arguments()
arguments
in interface RequestInfoOperations
arguments
in class RequestInfoImpl
PortableInterceptor
package comments for
limitations / unimplemented featurespublic TypeCode[] exceptions()
exceptions
in interface RequestInfoOperations
exceptions
in class RequestInfoImpl
PortableInterceptor
package comments for
limitations / unimplemented featurespublic String[] contexts()
contexts
in interface RequestInfoOperations
contexts
in class RequestInfoImpl
PortableInterceptor
package comments for
limitations / unimplemented featurespublic String[] operation_context()
operation_context
in interface RequestInfoOperations
operation_context
in class RequestInfoImpl
PortableInterceptor
package comments for
limitations / unimplemented featurespublic Any result()
result
in interface RequestInfoOperations
result
in class RequestInfoImpl
PortableInterceptor
package comments for
limitations / unimplemented featurespublic boolean response_expected()
response_expected
in interface RequestInfoOperations
response_expected
in class RequestInfoImpl
public Object forward_reference()
forward_reference
in interface RequestInfoOperations
forward_reference
in class RequestInfoImpl
public ServiceContext get_request_service_context(int id)
get_request_service_context
in interface RequestInfoOperations
get_request_service_context
in class RequestInfoImpl
id
- The IOP.ServiceId
of the service context
which is to be returned.IOP.ServiceContext
obtained with the
given identifier.public ServiceContext get_reply_service_context(int id)
get_reply_service_context
in interface RequestInfoOperations
get_reply_service_context
in class RequestInfoImpl
id
- The IOP.ServiceId
of the service context
which is to be returned.IOP.ServiceContext
obtained with the given
identifier.protected void setCurrentExecutionPoint(int executionPoint)
setCurrentExecutionPoint
in class RequestInfoImpl
protected void setInfo(CorbaMessageMediator request, ObjectAdapter oa, byte[] objectId, ObjectKeyTemplate oktemp)
protected void setDSIArguments(NVList arguments)
protected void setDSIException(Any exception)
protected void setDSIResult(Any result)
protected void setException(Exception exception)
setException
in class RequestInfoImpl
protected void setInfo(Object servant, String targetMostDerivedInterface)
protected void setReplyStatus(short replyStatus)
setReplyStatus
in class RequestInfoImpl
protected void checkAccess(int methodID)
checkAccess
in class RequestInfoImpl
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.Copyright © 2021 JBoss by Red Hat. All rights reserved.