Class POAPolicyMediatorBase

java.lang.Object
com.sun.corba.se.impl.oa.poa.POAPolicyMediatorBase
All Implemented Interfaces:
POAPolicyMediator
Direct Known Subclasses:
POAPolicyMediatorBase_R, POAPolicyMediatorImpl_NR_UDS, POAPolicyMediatorImpl_NR_USM

public abstract class POAPolicyMediatorBase extends Object implements POAPolicyMediator
Implementation of POARequesHandler that provides policy specific operations on the POA.
  • Field Details

    • poa

      protected POAImpl poa
    • orb

      protected ORB orb
    • isImplicit

      protected boolean isImplicit
    • isUnique

      protected boolean isUnique
    • isSystemId

      protected boolean isSystemId
  • Method Details

    • getPolicies

      public final Policies getPolicies()
      Description copied from interface: POAPolicyMediator
      Return the policies object that was used to create this POAPolicyMediator.
      Specified by:
      getPolicies in interface POAPolicyMediator
    • getScid

      public final int getScid()
      Description copied from interface: POAPolicyMediator
      Return the subcontract ID to use in the IIOP profile in IORs created by this POAPolicyMediator's POA. This is initialized according to the policies and the POA used to construct this POAPolicyMediator in the POAPolicyMediatorFactory.
      Specified by:
      getScid in interface POAPolicyMediator
    • getServerId

      public final int getServerId()
      Description copied from interface: POAPolicyMediator
      Return the server ID to use in the IIOP profile in IORs created by this POAPolicyMediator's POA. This is initialized according to the policies and the POA used to construct this POAPolicyMediator in the POAPolicyMediatorFactory.
      Specified by:
      getServerId in interface POAPolicyMediator
    • getInvocationServant

      public final Object getInvocationServant(byte[] id, String operation) throws ForwardRequest
      Description copied from interface: POAPolicyMediator
      Get the servant to use for an invocation with the given id and operation.
      Specified by:
      getInvocationServant in interface POAPolicyMediator
      Parameters:
      id - the object ID for which we are requesting a servant
      operation - the name of the operation to be performed on the servant
      Returns:
      the resulting Servant.
      Throws:
      ForwardRequest
    • setDelegate

      protected final void setDelegate(Servant servant, byte[] id)
    • newSystemId

      public byte[] newSystemId() throws WrongPolicy
      Description copied from interface: POAPolicyMediator
      Allocate a new, unique system ID. Requires the ID assignment policy to be SYSTEM.
      Specified by:
      newSystemId in interface POAPolicyMediator
      Throws:
      WrongPolicy
    • internalGetServant

      protected abstract Object internalGetServant(byte[] id, String operation) throws ForwardRequest
      Throws:
      ForwardRequest