org.omg.PortableServer
Class POAHelper

java.lang.Object
  extended by org.omg.PortableServer.POAHelper

public abstract class POAHelper
extends Object

The helper operations for the CORBA object POA.


Constructor Summary
POAHelper()
           
 
Method Summary
static POA extract(Any any)
          Extract the POA from given Any.
static String id()
          Get the POA repository id.
static void insert(Any any, POA that)
          Insert the POA into the given Any.
static POA narrow(Object obj)
          Cast the passed object into the POA.
static POA read(InputStream input)
          This should read POA from the CDR input stream, but, following the specs, it doesnot.
static TypeCode type()
          Get the type code of the POA.
static void write(OutputStream output, POA value)
          This should read POA from the CDR input stream, but, following the specs, it doesnot.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

POAHelper

public POAHelper()
Method Detail

narrow

public static POA narrow(Object obj)
Cast the passed object into the POA. As POA is a local object, the method just uses java type cast.

Parameters:
obj - the object to narrow.
Returns:
narrowed instance.
Throws:
BAD_PARAM - if the passed object is not a POA.

type

public static TypeCode type()
Get the type code of the POA.


insert

public static void insert(Any any,
                          POA that)
Insert the POA into the given Any.

Parameters:
any - the Any to insert into.
that - the POA to insert.

extract

public static POA extract(Any any)
Extract the POA from given Any.

Throws:
BAD_OPERATION - if the passed Any does not contain POA.

id

public static String id()
Get the POA repository id.

Returns:
"IDL:omg.org/PortableServer/POA:2.3", always.

read

public static POA read(InputStream input)
This should read POA from the CDR input stream, but, following the specs, it doesnot. The jdk 1.5 API specification defines that POA cannot be exported.

Parameters:
input - a org.omg.CORBA.portable stream to read from.
Throws:
MARSHAL, - always.

write

public static void write(OutputStream output,
                         POA value)
This should read POA from the CDR input stream, but, following the specs, it doesnot. The jdk 1.5 API specification defines that POA cannot be exported.

Parameters:
output - a org.omg.CORBA.portable stream to write into.
Throws:
MARSHAL, - always.