org.openorb.orb.iiop
Class IIOPClientProtocol

java.lang.Object
  |
  +--org.openorb.orb.iiop.IIOPClientProtocol
All Implemented Interfaces:
ClientProtocol

public class IIOPClientProtocol
extends java.lang.Object
implements ClientProtocol

Implements the ClientProtocol interface for IIOP.

Version:
$Revision: 1.5 $ $Date: 2004/02/10 21:02:49 $
Author:
Chris Wood

Constructor Summary
IIOPClientProtocol(ClientManager clientManager, CDRCodecFactory codec_factory, org.omg.CONV_FRAME.CodeSetComponentInfo codesetInfo, TransportClientInitializer tpInit, org.omg.IIOP.ListenPoint[] biDirListenPoints)
          Creates new IIOPClientProtocol
 
Method Summary
 Address[] createAddresses(org.omg.GIOP.IORAddressingInfo address)
          Create addresses from component in IOR
 ClientBinding createBinding(Address addr)
          Returns a Collection of ClientBinding objects, prioritised at the per-profile (inter-component) level.
protected  IIOPClientChannel findCreateChannel(IIOPAddress address, IIOPClientChannel replace)
          Find a channel.
 ClientManager getClientManager()
          Get a reference to the orb's client manager.
 org.omg.IOP.Codec getCodec()
          Get the codec for this channel.
 org.omg.CORBA.ORB orb()
          An orb reference.
 void setServerProtocol(IIOPServerProtocol protocol)
          Sets the server protocol.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IIOPClientProtocol

public IIOPClientProtocol(ClientManager clientManager,
                          CDRCodecFactory codec_factory,
                          org.omg.CONV_FRAME.CodeSetComponentInfo codesetInfo,
                          TransportClientInitializer tpInit,
                          org.omg.IIOP.ListenPoint[] biDirListenPoints)
Creates new IIOPClientProtocol
Method Detail

setServerProtocol

public void setServerProtocol(IIOPServerProtocol protocol)
Sets the server protocol.
Parameters:
protocol - The server protocol.

getCodec

public org.omg.IOP.Codec getCodec()
Get the codec for this channel.
Returns:
The codec.

orb

public org.omg.CORBA.ORB orb()
An orb reference.
Specified by:
orb in interface ClientProtocol

getClientManager

public ClientManager getClientManager()
Get a reference to the orb's client manager.

createAddresses

public Address[] createAddresses(org.omg.GIOP.IORAddressingInfo address)
Create addresses from component in IOR
Specified by:
createAddresses in interface ClientProtocol

createBinding

public ClientBinding createBinding(Address addr)
Returns a Collection of ClientBinding objects, prioritised at the per-profile (inter-component) level. The client addresses in the returned bindings should return identical results for each of the addressing disposition types.
Specified by:
createBinding in interface ClientProtocol

findCreateChannel

protected IIOPClientChannel findCreateChannel(IIOPAddress address,
                                              IIOPClientChannel replace)
Find a channel. Lock on channels must be owned.