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
modCount
Fields 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.boolean
Return the GIOP version of this profile.getHost()
int
getId()
Return the (type) identity of this entity.int
getPort()
Return the IIOP address from the IIOP profile.Returns the description of a socket to create to access the associated endpoint.getType()
int
hashCode()
boolean
Return true if temp is equivalent to this template.private boolean
isSslTaggedComponent
(TaggedComponent component) toString()
void
write
(ObjectKeyTemplate okeyTemplate, ObjectId id, OutputStream os) Write the profile create( oktemp, id ) to the OutputStream os.void
Write out this IIOPProfileTemplateImpl only.Methods inherited from class com.sun.corba.ee.spi.ior.TaggedProfileTemplateBase
getIOPComponents, iteratorById, write
Methods inherited from class com.sun.corba.ee.spi.ior.IdentifiableContainerBase
iteratorById
Methods inherited from class com.sun.corba.ee.impl.ior.FreezableList
add, get, isImmutable, makeElementsImmutable, makeImmutable, remove, set, size, subList
Methods inherited from class java.util.AbstractList
add, addAll, clear, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream
Methods 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, toArray
Methods inherited from interface com.sun.corba.ee.spi.ior.MakeImmutable
makeImmutable
Methods 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:
getTaggedComponents
in interfaceTaggedProfileTemplate
-
toString
- Overrides:
toString
in classAbstractCollection<TaggedComponent>
-
equals
- Specified by:
equals
in interfaceCollection<TaggedComponent>
- Specified by:
equals
in interfaceList<TaggedComponent>
- Overrides:
equals
in classFreezableList<TaggedComponent>
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceCollection<TaggedComponent>
- Specified by:
hashCode
in interfaceList<TaggedComponent>
- Overrides:
hashCode
in classFreezableList<TaggedComponent>
-
create
Description copied from interface:TaggedProfileTemplate
Create a TaggedProfile from this template.- Specified by:
create
in interfaceTaggedProfileTemplate
- Parameters:
oktemp
- template to create fromid
- id of object- Returns:
- created TaggedProfile
-
getGIOPVersion
Description copied from interface:IIOPProfileTemplate
Return the GIOP version of this profile.- Specified by:
getGIOPVersion
in interfaceIIOPProfileTemplate
- Returns:
- the GIOP version
-
getPrimaryAddress
Description copied from interface:IIOPProfileTemplate
Return the IIOP address from the IIOP profile. This is called the primary address here since other addresses may be contained in components.- Specified by:
getPrimaryAddress
in interfaceIIOPProfileTemplate
- Returns:
- The host and port of the IP address for the primary endpoint of this profile
-
getPrimarySocketInfo
Description copied from interface:IIOPProfileTemplate
Returns the description of a socket to create to access the associated endpoint. Its host and port will match the primary address- Specified by:
getPrimarySocketInfo
in interfaceIIOPProfileTemplate
- Returns:
- a description of a socket.
-
getType
- Specified by:
getType
in interfaceSocketInfo
-
isSslTaggedComponent
-
getHost
- Specified by:
getHost
in interfaceSocketInfo
-
getPort
public int getPort()- Specified by:
getPort
in interfaceSocketInfo
-
write
Description copied from interface:TaggedProfileTemplate
Write the profile create( oktemp, id ) to the OutputStream os.- Specified by:
write
in interfaceTaggedProfileTemplate
- Parameters:
okeyTemplate
- template to create fromid
- id of objectos
- stream to write to- See Also:
-
writeContents
Write out this IIOPProfileTemplateImpl only.- Specified by:
writeContents
in interfaceWriteContents
-
getId
public int getId()Description copied from interface:Identifiable
Return the (type) identity of this entity.- Specified by:
getId
in interfaceIdentifiable
- Returns:
- int
-
isEquivalent
Description copied from interface:TaggedProfileTemplate
Return 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:
isEquivalent
in interfaceTaggedProfileTemplate
- Parameters:
temp
- template to compare with- Returns:
- true if they are equivalent
-