Package com.sun.corba.ee.impl.ior.iiop
Class IIOPProfileTemplateImpl
java.lang.Object
java.util.AbstractCollection<TaggedComponent>
java.util.AbstractList<TaggedComponent>
com.sun.corba.ee.impl.ior.FreezableList<TaggedComponent>
com.sun.corba.ee.spi.ior.IdentifiableContainerBase<TaggedComponent>
com.sun.corba.ee.spi.ior.TaggedProfileTemplateBase
com.sun.corba.ee.impl.ior.iiop.IIOPProfileTemplateImpl
- All Implemented Interfaces:
Identifiable,IIOPProfileTemplate,MakeImmutable,TaggedProfileTemplate,Writeable,WriteContents,SocketInfo,Iterable<TaggedComponent>,Collection<TaggedComponent>,List<TaggedComponent>
- Direct Known Subclasses:
VirtualAddressAgentImpl.SpecialIIOPProfileTemplateImpl
public class IIOPProfileTemplateImpl
extends TaggedProfileTemplateBase
implements IIOPProfileTemplate, SocketInfo
-
Field Summary
FieldsFields inherited from class java.util.AbstractList
modCountFields inherited from interface com.sun.corba.ee.spi.transport.SocketInfo
IIOP_CLEAR_TEXT, SSL_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(ObjectKeyTemplate oktemp, ObjectId id) Create a TaggedProfile from this template.booleanReturn the GIOP version of this profile.getHost()intgetId()Return the (type) identity of this entity.intgetPort()Return the IIOP address from the IIOP profile.Returns the description of a socket to create to access the associated endpoint.getType()inthashCode()booleanReturn true if temp is equivalent to this template.private booleanisSslTaggedComponent(TaggedComponent component) toString()voidwrite(ObjectKeyTemplate okeyTemplate, ObjectId id, OutputStream os) Write the profile create( oktemp, id ) to the OutputStream os.voidWrite out this IIOPProfileTemplateImpl only.Methods inherited from class com.sun.corba.ee.spi.ior.TaggedProfileTemplateBase
getIOPComponents, iteratorById, writeMethods inherited from class com.sun.corba.ee.spi.ior.IdentifiableContainerBase
iteratorByIdMethods inherited from class com.sun.corba.ee.impl.ior.FreezableList
add, get, isImmutable, makeElementsImmutable, makeImmutable, remove, set, size, subListMethods inherited from class java.util.AbstractList
add, addAll, clear, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRangeMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArrayMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, streamMethods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArrayMethods inherited from interface com.sun.corba.ee.spi.ior.MakeImmutable
makeImmutableMethods inherited from interface com.sun.corba.ee.spi.ior.TaggedProfileTemplate
getIOPComponents, iteratorById, iteratorById
-
Field Details
-
orb
-
giopVersion
-
-
-
Constructor Details
-
IIOPProfileTemplateImpl
-
IIOPProfileTemplateImpl
-
-
Method Details
-
getTaggedComponents
- Specified by:
getTaggedComponentsin interfaceTaggedProfileTemplate
-
toString
- Overrides:
toStringin classAbstractCollection<TaggedComponent>
-
equals
- Specified by:
equalsin interfaceCollection<TaggedComponent>- Specified by:
equalsin interfaceList<TaggedComponent>- Overrides:
equalsin classFreezableList<TaggedComponent>
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<TaggedComponent>- Specified by:
hashCodein interfaceList<TaggedComponent>- Overrides:
hashCodein classFreezableList<TaggedComponent>
-
create
Description copied from interface:TaggedProfileTemplateCreate a TaggedProfile from this template.- Specified by:
createin interfaceTaggedProfileTemplate- Parameters:
oktemp- template to create fromid- id of object- Returns:
- created TaggedProfile
-
getGIOPVersion
Description copied from interface:IIOPProfileTemplateReturn the GIOP version of this profile.- Specified by:
getGIOPVersionin interfaceIIOPProfileTemplate- Returns:
- the GIOP version
-
getPrimaryAddress
Description copied from interface:IIOPProfileTemplateReturn the IIOP address from the IIOP profile. This is called the primary address here since other addresses may be contained in components.- Specified by:
getPrimaryAddressin interfaceIIOPProfileTemplate- Returns:
- The host and port of the IP address for the primary endpoint of this profile
-
getPrimarySocketInfo
Description copied from interface:IIOPProfileTemplateReturns the description of a socket to create to access the associated endpoint. Its host and port will match the primary address- Specified by:
getPrimarySocketInfoin interfaceIIOPProfileTemplate- Returns:
- a description of a socket.
-
getType
- Specified by:
getTypein interfaceSocketInfo
-
isSslTaggedComponent
-
getHost
- Specified by:
getHostin interfaceSocketInfo
-
getPort
public int getPort()- Specified by:
getPortin interfaceSocketInfo
-
write
Description copied from interface:TaggedProfileTemplateWrite the profile create( oktemp, id ) to the OutputStream os.- Specified by:
writein interfaceTaggedProfileTemplate- Parameters:
okeyTemplate- template to create fromid- id of objectos- stream to write to- See Also:
-
writeContents
Write out this IIOPProfileTemplateImpl only.- Specified by:
writeContentsin interfaceWriteContents
-
getId
public int getId()Description copied from interface:IdentifiableReturn the (type) identity of this entity.- Specified by:
getIdin interfaceIdentifiable- Returns:
- int
-
isEquivalent
Description copied from interface:TaggedProfileTemplateReturn true if temp is equivalent to this template. Equivalence means that in some sense an invocation on a profile created by this template has the same results as an invocation on a profile created from temp. Equivalence may be weaker than equality.- Specified by:
isEquivalentin interfaceTaggedProfileTemplate- Parameters:
temp- template to compare with- Returns:
- true if they are equivalent
-