org.jacorb.orb.etf
public abstract class ProfileBase extends _ProfileLocalBase implements Cloneable, Configurable
Version: $Id: ProfileBase.java,v 1.6 2007/02/14 09:07:23 andre.spiegel Exp $
Field Summary | |
---|---|
protected TaggedComponentList | components |
protected Configuration | configuration |
protected String | corbalocStr |
protected byte[] | objectKey |
protected Version | version |
Method Summary | |
---|---|
void | addComponent(int tag, Object data, Class helper) |
void | addComponent(int tag, byte[] data) |
TaggedProfile | asTaggedProfile() |
Profile | copy()
This function shall return an equivalent, deep-copy of the profile
on the free store. |
void | demarshal(TaggedProfileHolder tagged_profile, TaggedComponentSeqHolder components)
Method to mirror the marshal method. |
short | encapsulation()
Indicates the encapsulation that will be used by this profile
when encoding its AddressProfile bytes, and which should subsequently
be used when marshalling all the rest of the TaggedProfile.profile_data.
|
Object | getComponent(int tag, Class helper) |
TaggedComponentList | getComponents()
Accessor for the TaggedComponents of the Profile. |
byte[] | get_object_key()
ETF defined operation to get the object key from this profile. |
protected void | initFromProfileData(byte[] data)
Used from the byte[] constructor and the demarshal method. |
void | marshal(TaggedProfileHolder tagged_profile, TaggedComponentSeqHolder componentSequence)
ETF defined function to marshal the appropriate information for this
transport into the tagged profile. |
void | patchPrimaryAddress(ProtocolAddressBase replacement)
Profiles use this method for taking alternative address values
for replacement, such as when an IOR proxy or IMR is in use.
|
abstract void | readAddressProfile(CDRInputStream stream)
Read the ETF::AddressProfile from the supplied stream. |
void | set_object_key(byte[] key)
ETF defined operation to set the object key on this profile. |
abstract int | tag()
ETF defined read-only accessor for the GIOP tag. |
Version | version()
ETF defined read-only accessor for the GIOP version. |
abstract void | writeAddressProfile(CDROutputStream stream)
Write the AddressProfile to the supplied stream.
|
This particular implementation *should* work for any IOP type protocol that encodes its profile_data as a CDR encapsulated octet array as long as you have correctly implemented the encapsulation, writeAddressProfile, and readAddressProfile methods. But, feel free to override it for the purpose of optimisation or whatever. It should however, remain consistent with your implementation of the above mentioned methods.