org.jacorb.orb.iiop

Class IIOPProfile

public class IIOPProfile extends ProfileBase implements Cloneable

Version: $Id: IIOPProfile.java,v 1.27 2007/06/01 02:27:13 francisco Exp $

Author: Andre Spiegel

Constructor Summary
IIOPProfile()
IIOPProfile(byte[] data)
IIOPProfile(IIOPAddress address, byte[] objectKey, int minor)
IIOPProfile(IIOPAddress address, byte[] objectKey)
IIOPProfile(String corbaloc)
Constructs an IIOPProfile from a corbaloc URL.
Method Summary
Objectclone()
voidconfigure(Configuration config)
booleanequals(Object other)
ProtocolAddressBasegetAddress()
ListgetAlternateAddresses()
SSLgetSSL()
intgetSSLPort()
Returns the port on which SSL is available according to this profile, or -1 if SSL is not supported.
intgetTLSPortFromCSIComponent()
If there is a component tagged with TAG_CSI_SEC_MECH_LIST, get the SSL port from this component.
inthash()
To improve the management of a large set of profile instances, the author may provide a hash function using the data in a Profile instance.
inthashCode()
booleanis_match(Profile prof)
This function shall determine if the passed profile, prof, is a match to this profile.
voidpatchPrimaryAddress(ProtocolAddressBase replacement)
Replaces the host in this profile's primary address with newHost (if it is not null), and the port with newPort (if it is not -1).
voidreadAddressProfile(CDRInputStream addressProfileStream)
Reads the bytes that make up the ETF::AddressProfile bytes (new spec) from a stream.
inttag()
StringtoString()
IIOPProfileto_GIOP_1_0()
Returns a copy of this profile that is compatible with GIOP 1.0.
voidwriteAddressProfile(CDROutputStream addressProfileStream)
Writes the bytes that would make up the ETF::AddressProfile bytes (new spec) to a stream.

Constructor Detail

IIOPProfile

public IIOPProfile()

IIOPProfile

public IIOPProfile(byte[] data)

IIOPProfile

public IIOPProfile(IIOPAddress address, byte[] objectKey, int minor)

IIOPProfile

public IIOPProfile(IIOPAddress address, byte[] objectKey)

IIOPProfile

public IIOPProfile(String corbaloc)
Constructs an IIOPProfile from a corbaloc URL. Only to be used from the corbaloc parser.

Method Detail

clone

public Object clone()

configure

public void configure(Configuration config)

equals

public boolean equals(Object other)

getAddress

public ProtocolAddressBase getAddress()

getAlternateAddresses

public List getAlternateAddresses()

getSSL

public SSL getSSL()

getSSLPort

public int getSSLPort()
Returns the port on which SSL is available according to this profile, or -1 if SSL is not supported.

getTLSPortFromCSIComponent

public int getTLSPortFromCSIComponent()
If there is a component tagged with TAG_CSI_SEC_MECH_LIST, get the SSL port from this component. Return the SSL port in the TAG_TLS_SEC_TRANS component encapsulated into the transport_mech field of the first CompoundSecMech of the CSI_SEC_MECH_LIST. Return -1 if there is no component tagged with TAG_CSI_SEC_MECH_LIST or if this component specifies no SSL port.

hash

public int hash()
To improve the management of a large set of profile instances, the author may provide a hash function using the data in a Profile instance. The Profile shall always implement this function and either return a hash number, or 0 (zero) if no hashing is supported.

hashCode

public int hashCode()

is_match

public boolean is_match(Profile prof)
This function shall determine if the passed profile, prof, is a match to this profile. The specifics of the match are left to the details of the underlying transport, however profiles shall be considered a match, if they would create connections that share the same attributes relevant to the transport setup. Among others, this could include address information (eg. host address) and transport layer characteristics (eg. encryption levels). If a match is found, it shall return true, or false otherwise.

patchPrimaryAddress

public void patchPrimaryAddress(ProtocolAddressBase replacement)
Replaces the host in this profile's primary address with newHost (if it is not null), and the port with newPort (if it is not -1).

readAddressProfile

public void readAddressProfile(CDRInputStream addressProfileStream)
Reads the bytes that make up the ETF::AddressProfile bytes (new spec) from a stream.

Writes GIOP version, host string, and port.

tag

public int tag()

toString

public String toString()

to_GIOP_1_0

public IIOPProfile to_GIOP_1_0()
Returns a copy of this profile that is compatible with GIOP 1.0.

writeAddressProfile

public void writeAddressProfile(CDROutputStream addressProfileStream)
Writes the bytes that would make up the ETF::AddressProfile bytes (new spec) to a stream.

Writes GIOP version, host string, and port.