-
- All Superinterfaces:
- RequestInfoOperations
- All Known Subinterfaces:
- ServerRequestInfo
public interface ServerRequestInfoOperations extends RequestInfoOperations
Request Information, accessible to server-side request interceptors.Some attributes and operations on
ServerRequestInfo
are not valid at all interception points. The following table shows the validity of each attribute or operation. If it is not valid, attempting to access it will result in aBAD_INV_ORDER
being thrown with a standard minor code of 14.receive_request_
service_contextsreceive_request send_reply send_exception send_other Inherited from RequestInfo: request_id
yes yes yes yes yes operation
yes yes yes yes yes arguments
no yes1 yes no2 no2 exceptions
no yes yes yes yes contexts
no yes yes yes yes operation_context
no yes yes no no result
no no yes no no response_expected
yes yes yes yes yes sync_scope
yes yes yes yes yes request_id yes yes yes yes yes operation yes yes yes yes yes arguments no yes1 yes no2 no2 exceptions no yes yes yes yes contexts no yes yes yes yes operation_context no yes yes no no result no no yes no no response_expected yes yes yes yes yes sync_scope yes yes yes yes yes reply_status no no yes yes yes forward_reference no no no no yes2 get_slot yes yes yes yes yes get_request_service_context yes no yes yes yes get_reply_service_context no no yes yes yes ServerRequestInfo-specific: sending_exception no no no yes no object_id no yes yes yes3 yes3 adapter_id no yes yes yes3 yes3 server_id no yes yes yes yes orb_id no yes yes yes yes adapter_name no yes yes yes yes target_most_derived_interface no yes no4 no4 no4 get_server_policy yes yes yes yes yes set_slot yes yes yes yes yes target_is_a no yes no4 no4 no4 add_reply_service_context yes yes yes yes yes - When
ServerRequestInfo
is passed toreceive_request
, there is an entry in the list for every argument, whether in, inout, or out. But only the in and inout arguments will be available. - If the
reply_status
attribute is notLOCATION_FORWARD
, accessing this attribute will throwBAD_INV_ORDER
with a standard minor code of 14. - If the servant locator caused a location forward, or thrown an
exception, this attribute/operation may not be available in this
interception point.
NO_RESOURCES
with a standard minor code of 1 will be thrown if it is not available. - The operation is not available in this interception point because
the necessary information requires access to the target object's
servant, which may no longer be available to the ORB. For example,
if the object's adapter is a POA that uses a
ServantLocator
, then the ORB invokes the interception point after it callsServantLocator.postinvoke()
.
- See Also:
ServerRequestInterceptor
-
-
Method Summary
Methods Modifier and Type Method and Description byte[]
adapter_id()
Returns 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.Policy
get_server_policy(int type)
Returns the policy in effect for this operation for the given policy type.byte[]
object_id()
Returns the opaqueobject_id
describing the target of the operation invocation.String
orb_id()
Returns the ID that was used to create the ORB.Any
sending_exception()
Returns an any which contains 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 thePortableInterceptor.Current
that is in the scope of the request.boolean
target_is_a(String id)
Returns true if the servant is the given repository id, false if it is not.String
target_most_derived_interface()
Returns the repository id for the most derived interface of the servant.-
Methods inherited from interface org.omg.PortableInterceptor.RequestInfoOperations
arguments, contexts, exceptions, forward_reference, get_reply_service_context, get_request_service_context, get_slot, operation_context, operation, reply_status, request_id, response_expected, result, sync_scope
-
-
-
-
Method Detail
-
sending_exception
Any sending_exception()
Returns an any which contains the exception to be returned to the client.If the exception is a user exception which cannot be inserted into an any (e.g., it is unknown or the bindings don't provide the
TypeCode
), then this attribute will be an any containing the system exceptionUNKNOWN
with a standard minor code of 1.
-
object_id
byte[] object_id()
Returns the opaqueobject_id
describing the target of the operation invocation.
-
adapter_id
byte[] adapter_id()
Returns the opaque identifier for the object adapter.
-
server_id
String server_id()
Returns the server ID that was specified on ORB::init using the -ORBServerId argument.
-
orb_id
String orb_id()
Returns the ID that was used to create the ORB.
-
adapter_name
String[] adapter_name()
Returns the sequence of strings that identifies the object adapter instance that is handling this request.
-
target_most_derived_interface
String target_most_derived_interface()
Returns the repository id for the most derived interface of the servant.
-
get_server_policy
Policy get_server_policy(int type)
Returns the policy in effect for this operation for the given policy type. The returnedCORBA.Policy
object shall only be a policy whose type was registered viaregister_policy_factory
.- Parameters:
type
- TheCORBA.PolicyType
which specifies the policy to be returned.- Returns:
- The
CORBA.Policy
obtained with the given policy type. - Throws:
INV_POLICY
- thrown, with a standard minor code of 2, if a policy for the given type was not registered viaregister_policy_factory
.- See Also:
ORBInitInfoOperations.register_policy_factory(int, org.omg.PortableInterceptor.PolicyFactory)
-
set_slot
void set_slot(int id, Any data) throws InvalidSlot
Allows an Interceptor to set a slot in thePortableInterceptor.Current
that is in the scope of the request. If data already exists in that slot, it will be overwritten.- 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:
Current
-
target_is_a
boolean target_is_a(String id)
Returns true if the servant is the given repository id, false if it is not.- 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
void add_reply_service_context(ServiceContext service_context, boolean replace)
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 that they are added.
- Parameters:
service_context
- TheIOP.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, thenBAD_INV_ORDER
with a standard minor code of 15 is thrown. If true, then the existing service context is replaced by the new one.- Throws:
BAD_INV_ORDER
- thrown, with a standard minor code of 15, if replace is false and a service context already exists with the given ID.
-
-
Deutsche Übersetzung
Sie haben gebeten, diese Seite auf Deutsch zu besuchen. Momentan ist nur die Oberfläche übersetzt, aber noch nicht der gesamte Inhalt.Wenn Sie mir bei Übersetzungen helfen wollen, ist Ihr Beitrag willkommen. Alles, was Sie tun müssen, ist, sich auf der Website zu registrieren und mir eine Nachricht zu schicken, in der Sie gebeten werden, Sie der Gruppe der Übersetzer hinzuzufügen, die Ihnen die Möglichkeit gibt, die gewünschten Seiten zu übersetzen. Ein Link am Ende jeder übersetzten Seite zeigt an, dass Sie der Übersetzer sind und einen Link zu Ihrem Profil haben.
Vielen Dank im Voraus.
Dokument erstellt 11/06/2005, zuletzt geändert 04/03/2020
Quelle des gedruckten Dokuments:https://www.gaudry.be/de/java-api-rf-org/omg/PortableInterceptor/ServerRequestInfoOperations.html
Die Infobro ist eine persönliche Seite, deren Inhalt in meiner alleinigen Verantwortung liegt. Der Text ist unter der CreativeCommons-Lizenz (BY-NC-SA) verfügbar. Weitere Informationen auf die Nutzungsbedingungen und dem Autor.
Referenzen
Diese Verweise und Links verweisen auf Dokumente, die während des Schreibens dieser Seite konsultiert wurden, oder die zusätzliche Informationen liefern können, aber die Autoren dieser Quellen können nicht für den Inhalt dieser Seite verantwortlich gemacht werden.
Der Autor Diese Website ist allein dafür verantwortlich, wie die verschiedenen Konzepte und Freiheiten, die mit den Nachschlagewerken gemacht werden, hier dargestellt werden. Denken Sie daran, dass Sie mehrere Quellinformationen austauschen müssen, um das Risiko von Fehlern zu reduzieren.