IIOPProfile
public IIOPProfile(String corbaloc)
Constructs an IIOPProfile from a corbaloc URL. Only to be used
from the corbaloc parser.
IIOPProfile
public IIOPProfile(byte[] data)
IIOPProfile
public IIOPProfile(IIOPAddress address,
byte[] objectKey)
IIOPProfile
public IIOPProfile(IIOPAddress address,
byte[] objectKey,
int minor)
addComponent
public void addComponent(int tag,
Object data,
Class helper)
addComponent
public void addComponent(int tag,
byte[] data)
clone
public Object clone()
throws CloneNotSupportedException
configure
public void configure(Configuration configuration)
throws ConfigurationException
copy
public Profile copy()
This function shall return an equivalent, deep-copy of the profile
on the free store.
- copy in interface ProfileOperations
equals
public boolean equals(Object other)
getAlternateAddresses
public List getAlternateAddresses()
getComponent
public Object getComponent(int tag,
Class helper)
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.
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.
- hash in interface ProfileOperations
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.
- is_match in interface ProfileOperations
patchPrimaryAddress
public void patchPrimaryAddress(String newHost,
int newPort)
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).
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.
version
public Version version()
This attribute shall contain the GIOP version number that this
profile supports. It is initialized each time an instance is
created.
- version in interface ProfileOperations