org.jacorb.orb.portableInterceptor

Class InterceptorManager

public class InterceptorManager extends Object

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

Version: $Id: InterceptorManager.java,v 1.22 2007/02/06 19:47:16 andre.spiegel Exp $

Author: Nicolas Noffke

Field Summary
static PICurrentImplEMPTY_CURRENT
Constructor Summary
InterceptorManager(List client_interceptors, List server_interceptors, List ior_intercept, int slot_count, ORB orb)
Method Summary
voiddestroy()
ClientInterceptorIteratorgetClientIterator()
Returns an iterator object that contains the ClientRequestInterceptors of this manager.
CurrentgetCurrent()
This method returns a thread specific PICurrent.
CurrentgetEmptyCurrent()
Returns an empty current where no slot has been set.
IORInterceptorIteratorgetIORIterator()
Returns an iterator object that contains the IORInterceptors of this manager.
ServerInterceptorIteratorgetServerIterator()
Returns an iterator object that contains the ServerRequestInterceptors of this manager.
booleanhasClientRequestInterceptors()
Test, if the manager has ClientRequestInterceptors
booleanhasIORInterceptors()
Test, if the manager has IORInterceptors
booleanhasServerRequestInterceptors()
Test, if the manager has ServerRequestInterceptors
voidremoveTSCurrent()
Removes the thread scope current, that is associated with the calling thread.
voidsetProfileTags(int[] ptags)
Assign the array of profile tags to be passed to the IORInterceptors
voidsetTSCurrent(Current current)
Sets the thread scope current, i.e. a server side current associated with the calling thread.

Field Detail

EMPTY_CURRENT

public static final PICurrentImpl EMPTY_CURRENT

Constructor Detail

InterceptorManager

public InterceptorManager(List client_interceptors, List server_interceptors, List ior_intercept, int slot_count, ORB orb)

Method Detail

destroy

public void destroy()

getClientIterator

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

getCurrent

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

getEmptyCurrent

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

getIORIterator

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

getServerIterator

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

hasClientRequestInterceptors

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

hasIORInterceptors

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

hasServerRequestInterceptors

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

removeTSCurrent

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

setProfileTags

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

setTSCurrent

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