org.omg.PortableInterceptor.ServerRequestInfoHelper Maven / Gradle / Ivy
package org.omg.PortableInterceptor;
/**
* org/omg/PortableInterceptor/ServerRequestInfoHelper.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from /home/jenkins/agent/workspace/orb-release-build/omgapi/src/main/idl/Interceptors.idl
* Sunday, February 14, 2021 7:42:42 PM GMT
*/
/**
* 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 a BAD_INV_ORDER
being thrown with a
* standard minor code of 14.
*
*
* Request Information
*
*
*
* receive_request_
service_contexts
* receive_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
*
* 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 to
* receive_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 not
* LOCATION_FORWARD
, accessing this attribute will throw
* BAD_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 calls ServantLocator.postinvoke()
*
*
* @see ServerRequestInterceptor
*/
abstract public class ServerRequestInfoHelper
{
private static String _id = "IDL:omg.org/PortableInterceptor/ServerRequestInfo:1.0";
public static void insert (org.omg.CORBA.Any a, org.omg.PortableInterceptor.ServerRequestInfo that)
{
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
a.type (type ());
write (out, that);
a.read_value (out.create_input_stream (), type ());
}
public static org.omg.PortableInterceptor.ServerRequestInfo extract (org.omg.CORBA.Any a)
{
return read (a.create_input_stream ());
}
private static org.omg.CORBA.TypeCode __typeCode = null;
synchronized public static org.omg.CORBA.TypeCode type ()
{
if (__typeCode == null)
{
__typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (org.omg.PortableInterceptor.ServerRequestInfoHelper.id (), "ServerRequestInfo");
}
return __typeCode;
}
public static String id ()
{
return _id;
}
public static org.omg.PortableInterceptor.ServerRequestInfo read (org.omg.CORBA.portable.InputStream istream)
{
throw new org.omg.CORBA.MARSHAL ();
}
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.PortableInterceptor.ServerRequestInfo value)
{
throw new org.omg.CORBA.MARSHAL ();
}
public static org.omg.PortableInterceptor.ServerRequestInfo narrow (org.omg.CORBA.Object obj)
{
if (obj == null)
return null;
else if (obj instanceof org.omg.PortableInterceptor.ServerRequestInfo)
return (org.omg.PortableInterceptor.ServerRequestInfo)obj;
else
throw new org.omg.CORBA.BAD_PARAM ();
}
public static org.omg.PortableInterceptor.ServerRequestInfo unchecked_narrow (org.omg.CORBA.Object obj)
{
if (obj == null)
return null;
else if (obj instanceof org.omg.PortableInterceptor.ServerRequestInfo)
return (org.omg.PortableInterceptor.ServerRequestInfo)obj;
else
throw new org.omg.CORBA.BAD_PARAM ();
}
}