FileDocCategorySizeDatePackage
CurrentHelper.javaAPI DocJava SE 6 API3180Tue Jun 10 01:33:20 BST 2008org.omg.PortableInterceptor

CurrentHelper

public abstract class CurrentHelper extends Object
Portable Interceptors Current (also known as PICurrent) is merely a slot table, the slots of which are used by each service to transfer their context data between their context and the request's or reply's service context. Each service which wishes to use PICurrent reserves a slot or slots at initialization time and uses those slots during the processing of requests and replies.

Before an invocation is made, PICurrent is obtained via a call to ORB.resolve_initial_references( "PICurrent" ). From within the interception points, the data on PICurrent that has moved from the thread scope to the request scope is available via the get_slot operation on the RequestInfo object. A PICurrent can still be obtained via resolve_initial_references, but that is the Interceptor's thread scope PICurrent.

Fields Summary
private static String
_id
private static org.omg.CORBA.TypeCode
__typeCode
Constructors Summary
Methods Summary
public static org.omg.PortableInterceptor.Currentextract(org.omg.CORBA.Any a)

    return read (a.create_input_stream ());
  
public static java.lang.Stringid()

    return _id;
  
public static voidinsert(org.omg.CORBA.Any a, org.omg.PortableInterceptor.Current 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.Currentnarrow(org.omg.CORBA.Object obj)

    if (obj == null)
      return null;
    else if (obj instanceof org.omg.PortableInterceptor.Current)
      return (org.omg.PortableInterceptor.Current)obj;
    else
      throw new org.omg.CORBA.BAD_PARAM ();
  
public static org.omg.PortableInterceptor.Currentread(org.omg.CORBA.portable.InputStream istream)

      throw new org.omg.CORBA.MARSHAL ();
  
public static synchronized org.omg.CORBA.TypeCodetype()

       
  
    if (__typeCode == null)
    {
      __typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (org.omg.PortableInterceptor.CurrentHelper.id (), "Current");
    }
    return __typeCode;
  
public static org.omg.PortableInterceptor.Currentunchecked_narrow(org.omg.CORBA.Object obj)

    if (obj == null)
      return null;
    else if (obj instanceof org.omg.PortableInterceptor.Current)
      return (org.omg.PortableInterceptor.Current)obj;
    else
      throw new org.omg.CORBA.BAD_PARAM ();
  
public static voidwrite(org.omg.CORBA.portable.OutputStream ostream, org.omg.PortableInterceptor.Current value)

      throw new org.omg.CORBA.MARSHAL ();