87 |
import org.omg.PortableServer.POAPackage.ServantNotActive; |
import org.omg.PortableServer.POAPackage.ServantNotActive; |
88 |
import org.omg.PortableServer.POAPackage.WrongAdapter; |
import org.omg.PortableServer.POAPackage.WrongAdapter; |
89 |
import org.omg.PortableServer.POAPackage.WrongPolicy; |
import org.omg.PortableServer.POAPackage.WrongPolicy; |
90 |
import gnu.CORBA.CDR.cdrBufInput; |
import gnu.CORBA.CDR.BufferredCdrInput; |
91 |
import gnu.CORBA.CDR.cdrBufOutput; |
import gnu.CORBA.CDR.BufferedCdrOutput; |
92 |
|
|
93 |
/** |
/** |
94 |
* Our POA implementation. |
* Our POA implementation. |
847 |
return m_poa_id; |
return m_poa_id; |
848 |
else |
else |
849 |
{ |
{ |
850 |
cdrBufOutput buffer = new cdrBufOutput(); |
BufferedCdrOutput buffer = new BufferedCdrOutput(); |
851 |
POA p = this; |
POA p = this; |
852 |
while (p != null) |
while (p != null) |
853 |
{ |
{ |
1565 |
*/ |
*/ |
1566 |
public activeObjectMap.Obj findIorKey(byte[] ior_key) |
public activeObjectMap.Obj findIorKey(byte[] ior_key) |
1567 |
{ |
{ |
1568 |
cdrBufInput in = new cdrBufInput(ior_key); |
BufferredCdrInput in = new BufferredCdrInput(ior_key); |
1569 |
int signature = in.read_long(); |
int signature = in.read_long(); |
1570 |
if (signature != SIGNATURE) |
if (signature != SIGNATURE) |
1571 |
return null; |
return null; |
1582 |
*/ |
*/ |
1583 |
public byte[] toIORKey(byte[] object_id) |
public byte[] toIORKey(byte[] object_id) |
1584 |
{ |
{ |
1585 |
cdrBufOutput buffer = new cdrBufOutput(); |
BufferedCdrOutput buffer = new BufferedCdrOutput(); |
1586 |
buffer.write_long(SIGNATURE); |
buffer.write_long(SIGNATURE); |
1587 |
buffer.write_sequence(object_id); |
buffer.write_sequence(object_id); |
1588 |
buffer.write_sequence(id()); |
buffer.write_sequence(id()); |
1600 |
*/ |
*/ |
1601 |
public byte[] idFormIor(byte[] ior_key) |
public byte[] idFormIor(byte[] ior_key) |
1602 |
{ |
{ |
1603 |
cdrBufInput in = new cdrBufInput(ior_key); |
BufferredCdrInput in = new BufferredCdrInput(ior_key); |
1604 |
int signature = in.read_long(); |
int signature = in.read_long(); |
1605 |
if (signature != SIGNATURE) |
if (signature != SIGNATURE) |
1606 |
return null; |
return null; |