Package com.sun.corba.se.impl.oa.poa
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
Implementation of POARequesHandler that provides policy specific
operations on the POA.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal ObjectgetInvocationServant(byte[] id, String operation) Get the servant to use for an invocation with the given id and operation.final PoliciesReturn the policies object that was used to create this POAPolicyMediator.final intgetScid()Return the subcontract ID to use in the IIOP profile in IORs created by this POAPolicyMediator's POA.final intReturn the server ID to use in the IIOP profile in IORs created by this POAPolicyMediator's POA.protected abstract ObjectinternalGetServant(byte[] id, String operation) byte[]Allocate a new, unique system ID.protected final voidsetDelegate(Servant servant, byte[] id) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.sun.corba.se.impl.oa.poa.POAPolicyMediator
activateObject, clearAOM, deactivateObject, etherealizeAll, getDefaultServant, getServantManager, idToServant, returnServant, servantToId, setDefaultServant, setServantManager
-
Field Details
-
poa
-
orb
-
isImplicit
protected boolean isImplicit -
isUnique
protected boolean isUnique -
isSystemId
protected boolean isSystemId
-
-
Method Details
-
getPolicies
Description copied from interface:POAPolicyMediatorReturn the policies object that was used to create this POAPolicyMediator.- Specified by:
getPoliciesin interfacePOAPolicyMediator
-
getScid
public final int getScid()Description copied from interface:POAPolicyMediatorReturn 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:
getScidin interfacePOAPolicyMediator
-
getServerId
public final int getServerId()Description copied from interface:POAPolicyMediatorReturn 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:
getServerIdin interfacePOAPolicyMediator
-
getInvocationServant
Description copied from interface:POAPolicyMediatorGet the servant to use for an invocation with the given id and operation.- Specified by:
getInvocationServantin interfacePOAPolicyMediator- Parameters:
id- the object ID for which we are requesting a servantoperation- the name of the operation to be performed on the servant- Returns:
- the resulting Servant.
- Throws:
ForwardRequest
-
setDelegate
-
newSystemId
Description copied from interface:POAPolicyMediatorAllocate a new, unique system ID. Requires the ID assignment policy to be SYSTEM.- Specified by:
newSystemIdin interfacePOAPolicyMediator- Throws:
WrongPolicy
-
internalGetServant
- Throws:
ForwardRequest
-