org.jacorb.orb.portableInterceptor
Class InterceptorManager

java.lang.Object
  extended byorg.jacorb.orb.portableInterceptor.InterceptorManager

public class InterceptorManager
extends java.lang.Object

This class "manages" the portable interceptors registered with the ORB, and controls the PICurrent.

Version:
$Id: InterceptorManager.java,v 1.17 2004/07/19 15:28:50 phil.mesnier Exp $
Author:
Nicolas Noffke

Field Summary
static PICurrentImpl EMPTY_CURRENT
           
 
Constructor Summary
InterceptorManager(java.util.Vector client_interceptors, java.util.Vector server_interceptors, java.util.Vector ior_intercept, int slot_count, ORB orb)
           
 
Method Summary
 void destroy()
           
 ClientInterceptorIterator getClientIterator()
          Returns an iterator object that contains the ClientRequestInterceptors of this manager.
 Current getCurrent()
          This method returns a thread specific PICurrent.
 Current getEmptyCurrent()
          Returns an empty current where no slot has been set.
 IORInterceptorIterator getIORIterator()
          Returns an iterator object that contains the IORInterceptors of this manager.
 ServerInterceptorIterator getServerIterator()
          Returns an iterator object that contains the ServerRequestInterceptors of this manager.
 boolean hasClientRequestInterceptors()
          Test, if the manager has ClientRequestInterceptors
 boolean hasIORInterceptors()
          Test, if the manager has IORInterceptors
 boolean hasServerRequestInterceptors()
          Test, if the manager has ServerRequestInterceptors
 void removeTSCurrent()
          Removes the thread scope current, that is associated with the calling thread.
 void setProfileTags(int[] ptags)
          Assign the array of profile tags to be passed to the IORInterceptors
 void setTSCurrent(Current current)
          Sets the thread scope current, i.e. a server side current associated with the calling thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_CURRENT

public static final PICurrentImpl EMPTY_CURRENT
Constructor Detail

InterceptorManager

public InterceptorManager(java.util.Vector client_interceptors,
                          java.util.Vector server_interceptors,
                          java.util.Vector ior_intercept,
                          int slot_count,
                          ORB orb)
Method Detail

getCurrent

public Current getCurrent()
This method returns a thread specific PICurrent.


setTSCurrent

public void setTSCurrent(Current current)
Sets the thread scope current, i.e. a server side current associated with the calling thread.


removeTSCurrent

public void removeTSCurrent()
Removes the thread scope current, that is associated with the calling thread.


getEmptyCurrent

public Current getEmptyCurrent()
Returns an empty current where no slot has been set.


getClientIterator

public ClientInterceptorIterator getClientIterator()
Returns an iterator object that contains the ClientRequestInterceptors of this manager.


getServerIterator

public ServerInterceptorIterator getServerIterator()
Returns an iterator object that contains the ServerRequestInterceptors of this manager.


getIORIterator

public IORInterceptorIterator getIORIterator()
Returns an iterator object that contains the IORInterceptors of this manager.


setProfileTags

public void setProfileTags(int[] ptags)
Assign the array of profile tags to be passed to the IORInterceptors


hasClientRequestInterceptors

public boolean hasClientRequestInterceptors()
Test, if the manager has ClientRequestInterceptors


hasServerRequestInterceptors

public boolean hasServerRequestInterceptors()
Test, if the manager has ServerRequestInterceptors


hasIORInterceptors

public boolean hasIORInterceptors()
Test, if the manager has IORInterceptors


destroy

public void destroy()