Package com.sun.corba.ee.impl.ior.iiop
Class IIOPProfileImpl
java.lang.Object
com.sun.corba.ee.spi.ior.IdentifiableBase
com.sun.corba.ee.impl.ior.iiop.IIOPProfileImpl
- All Implemented Interfaces:
Identifiable
,IIOPProfile
,MakeImmutable
,TaggedProfile
,Writeable
,WriteContents
- Direct Known Subclasses:
VirtualAddressAgentImpl.SpecialIIOPProfileImpl
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
private boolean
private boolean
protected String
private GIOPVersion
private ObjectKey
private ObjectId
private ObjectKeyTemplate
private ORB
private IIOPProfileTemplate
private static final IORSystemException
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
IIOPProfileImpl
(ORB orb) IIOPProfileImpl
(ORB orb, ObjectKeyTemplate oktemp, ObjectId oid, IIOPProfileTemplate proftemp) IIOPProfileImpl
(ORB orb, TaggedProfile profile) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
computingIsLocal
(String host, int scid, int sid, int port) boolean
Return the Codebase of this profile.Return GIOPVersion for this IOR.int
getId()
Return the (type) identity of this entity.Return the TaggedProfile as a CDR encapsulation in the standard format.Return the servant for this IOR, if it is local AND if the OA that implements this objref supports direct access to servants outside of an invocation.int
hashCode()
private void
init
(InputStream istr) boolean
isEquivalent
(TaggedProfile prof) Return true is prof is equivalent to this TaggedProfile.private boolean
boolean
isLocal()
Return true if this TaggedProfile was created in orb.private void
isLocalResults
(boolean isLocalHost, boolean isLocalServerId, boolean isLocalPort) void
toString()
private String
void
Methods inherited from class com.sun.corba.ee.spi.ior.IdentifiableBase
write
-
Field Details
-
wrapper
-
orb
-
oid
-
proftemp
-
oktemp
-
objectKey
-
codebase
-
cachedCodebase
protected boolean cachedCodebase -
checkedIsLocal
private boolean checkedIsLocal -
cachedIsLocal
private boolean cachedIsLocal -
giopVersion
-
-
Constructor Details
-
IIOPProfileImpl
-
IIOPProfileImpl
public IIOPProfileImpl(ORB orb, ObjectKeyTemplate oktemp, ObjectId oid, IIOPProfileTemplate proftemp) -
IIOPProfileImpl
-
IIOPProfileImpl
-
-
Method Details
-
toString
-
equals
-
hashCode
public int hashCode() -
getObjectId
- Specified by:
getObjectId
in interfaceTaggedProfile
-
getTaggedProfileTemplate
- Specified by:
getTaggedProfileTemplate
in interfaceTaggedProfile
-
getObjectKeyTemplate
- Specified by:
getObjectKeyTemplate
in interfaceTaggedProfile
-
init
-
writeContents
- 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:TaggedProfile
Return true is prof is equivalent to this TaggedProfile. This means that this and prof are indistinguishable for the purposes of remote invocation. Typically this means that the profile data is identical and both profiles contain exactly the same components (if components are applicable). isEquivalent( prof ) should imply that getObjectId().equals( prof.getObjectId() ) is true, and so is getObjectKeyTemplate().equals( prof.getObjectKeyTemplate() ).- Specified by:
isEquivalent
in interfaceTaggedProfile
- Parameters:
prof
- profile to compare with- Returns:
- true if they are equivalent
-
getObjectKey
- Specified by:
getObjectKey
in interfaceTaggedProfile
-
getIOPProfile
Description copied from interface:TaggedProfile
Return the TaggedProfile as a CDR encapsulation in the standard format. This is required for Portable interceptors.- Specified by:
getIOPProfile
in interfaceTaggedProfile
- Returns:
- the tagged profile
-
uncachedGetCodeBase
-
getCodebase
Description copied from interface:IIOPProfile
Return the Codebase of this profile. Caches the result.- Specified by:
getCodebase
in interfaceIIOPProfile
- Returns:
- the profile codebase
-
getORBVersion
- Specified by:
getORBVersion
in interfaceIIOPProfile
- Returns:
- the ORBVersion associated with the object key in the IOR.
-
computingIsLocal
-
isLocalResults
@InfoMethod private void isLocalResults(boolean isLocalHost, boolean isLocalServerId, boolean isLocalPort) -
isLocal
public boolean isLocal()Description copied from interface:TaggedProfile
Return true if this TaggedProfile was created in orb. Caches the result.- Specified by:
isLocal
in interfaceTaggedProfile
- Returns:
- if this TaggedProfile was created in orb
-
isForeignObject
private boolean isForeignObject() -
getServant
Return the servant for this IOR, if it is local AND if the OA that implements this objref supports direct access to servants outside of an invocation.- Specified by:
getServant
in interfaceIIOPProfile
- Returns:
- the profile servant
-
getGIOPVersion
Return GIOPVersion for this IOR. Requests created against this IOR will be of the return Version.- Specified by:
getGIOPVersion
in interfaceIIOPProfile
- Returns:
- the GIOPVersion
-
makeImmutable
public void makeImmutable()- Specified by:
makeImmutable
in interfaceMakeImmutable
-