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

public class IIOPProfileImpl extends IdentifiableBase implements IIOPProfile
  • Field Details

    • wrapper

      private static final IORSystemException wrapper
    • orb

      private ORB orb
    • oid

      private ObjectId oid
    • proftemp

      private IIOPProfileTemplate proftemp
    • oktemp

      private ObjectKeyTemplate oktemp
    • objectKey

      private ObjectKey objectKey
    • codebase

      protected String codebase
    • cachedCodebase

      protected boolean cachedCodebase
    • checkedIsLocal

      private boolean checkedIsLocal
    • cachedIsLocal

      private boolean cachedIsLocal
    • giopVersion

      private GIOPVersion giopVersion
  • Constructor Details

  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getObjectId

      public ObjectId getObjectId()
      Specified by:
      getObjectId in interface TaggedProfile
    • getTaggedProfileTemplate

      public TaggedProfileTemplate getTaggedProfileTemplate()
      Specified by:
      getTaggedProfileTemplate in interface TaggedProfile
    • getObjectKeyTemplate

      public ObjectKeyTemplate getObjectKeyTemplate()
      Specified by:
      getObjectKeyTemplate in interface TaggedProfile
    • init

      private void init(InputStream istr)
    • writeContents

      public void writeContents(OutputStream os)
      Specified by:
      writeContents in interface WriteContents
    • getId

      public int getId()
      Description copied from interface: Identifiable
      Return the (type) identity of this entity.
      Specified by:
      getId in interface Identifiable
      Returns:
      int
    • isEquivalent

      public boolean isEquivalent(TaggedProfile prof)
      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 interface TaggedProfile
      Parameters:
      prof - profile to compare with
      Returns:
      true if they are equivalent
    • getObjectKey

      public ObjectKey getObjectKey()
      Specified by:
      getObjectKey in interface TaggedProfile
    • getIOPProfile

      public TaggedProfile 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 interface TaggedProfile
      Returns:
      the tagged profile
    • uncachedGetCodeBase

      private String uncachedGetCodeBase()
    • getCodebase

      public String getCodebase()
      Description copied from interface: IIOPProfile
      Return the Codebase of this profile. Caches the result.
      Specified by:
      getCodebase in interface IIOPProfile
      Returns:
      the profile codebase
    • getORBVersion

      public ORBVersion getORBVersion()
      Specified by:
      getORBVersion in interface IIOPProfile
      Returns:
      the ORBVersion associated with the object key in the IOR.
    • computingIsLocal

      @InfoMethod private void computingIsLocal(String host, int scid, int sid, int port)
    • 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 interface TaggedProfile
      Returns:
      if this TaggedProfile was created in orb
    • isForeignObject

      private boolean isForeignObject()
    • getServant

      public Object 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 interface IIOPProfile
      Returns:
      the profile servant
    • getGIOPVersion

      public GIOPVersion getGIOPVersion()
      Return GIOPVersion for this IOR. Requests created against this IOR will be of the return Version.
      Specified by:
      getGIOPVersion in interface IIOPProfile
      Returns:
      the GIOPVersion
    • makeImmutable

      public void makeImmutable()
      Specified by:
      makeImmutable in interface MakeImmutable