org.omg.PortableServer

Class POAHelper

public abstract class POAHelper extends Object

The helper operations for the CORBA object {@link POA}.
Method Summary
static POAextract(Any any)
Extract the POA from given Any.
static Stringid()
Get the POA repository id.
static voidinsert(Any any, POA that)
Insert the POA into the given Any.
static POAnarrow(Object obj)
Cast the passed object into the POA.
static POAread(InputStream input)
This should read POA from the CDR input stream, but, following the specs, it doesnot.
static TypeCodetype()
Get the type code of the {@link POA}.
static voidwrite(OutputStream output, POA value)
This should read POA from the CDR input stream, but, following the specs, it doesnot.

Method Detail

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.

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.

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.

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.

UNKNOWN: Sun throws the same exception.

type

public static TypeCode type()
Get the type code of the {@link POA}.

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.

UNKNOWN: Sun throws the same exception.