public abstract class ProfileBase extends org.omg.ETF._ProfileLocalBase implements Cloneable, Configurable
Modifier and Type | Field and Description |
---|---|
protected TaggedComponentList |
components |
protected Configuration |
configuration |
protected String |
corbalocStr |
protected org.slf4j.Logger |
logger |
protected byte[] |
objectKey |
protected org.omg.GIOP.Version |
version |
Constructor and Description |
---|
ProfileBase() |
Modifier and Type | Method and Description |
---|---|
void |
addComponent(int tag,
byte[] data) |
void |
addComponent(int tag,
Object data,
Class<?> helper) |
Collection<org.omg.IIOP.ListenPoint> |
asListenPoints() |
TaggedProfile |
asTaggedProfile() |
void |
configure(Configuration configuration) |
org.omg.ETF.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.
|
byte[] |
get_object_key()
ETF defined operation to get the object key from this profile.
|
Object |
getComponent(int tag,
Class<?> helper) |
TaggedComponentList |
getComponents()
Accessor for the TaggedComponents of the 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 |
removeComponents(int tags)
This function will search and remove the components, whose tag matches
the given tag, from the components list.
|
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.
|
org.omg.GIOP.Version |
version()
ETF defined read-only accessor for the GIOP version.
|
abstract void |
writeAddressProfile(CDROutputStream stream)
Write the AddressProfile to the supplied stream.
|
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_policy_override, validate_connection
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
protected org.omg.GIOP.Version version
protected byte[] objectKey
protected TaggedComponentList components
protected Configuration configuration
protected String corbalocStr
protected org.slf4j.Logger logger
public void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
public void set_object_key(byte[] key)
set_object_key
in interface org.omg.ETF.ProfileOperations
public byte[] get_object_key()
get_object_key
in interface org.omg.ETF.ProfileOperations
public org.omg.GIOP.Version version()
version
in interface org.omg.ETF.ProfileOperations
public abstract int tag()
tag
in interface org.omg.ETF.ProfileOperations
public void patchPrimaryAddress(ProtocolAddressBase replacement)
public void marshal(TaggedProfileHolder tagged_profile, TaggedComponentSeqHolder componentSequence)
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(CDROutputStream)
, and
readAddressProfile(CDRInputStream)
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.
marshal
in interface org.omg.ETF.ProfileOperations
public void demarshal(TaggedProfileHolder tagged_profile, TaggedComponentSeqHolder components)
public short encapsulation()
public abstract void writeAddressProfile(CDROutputStream stream)
public abstract void readAddressProfile(CDRInputStream stream)
public TaggedComponentList getComponents()
public void addComponent(int tag, byte[] data)
public TaggedProfile asTaggedProfile()
public org.omg.ETF.Profile copy()
copy
in interface org.omg.ETF.ProfileOperations
protected void initFromProfileData(byte[] data)
readAddressProfile(CDRInputStream)
method.public Collection<org.omg.IIOP.ListenPoint> asListenPoints()
public void removeComponents(int tags)
tags
- Copyright © 2017 JacORB. All rights reserved.