org.jacorb.orb.portableInterceptor

Class 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.16 2004/05/06 12:40:00 nicolas Exp $

Author:
Nicolas Noffke

Field Summary

static PICurrentImpl
EMPTY_CURRENT

Constructor Summary

InterceptorManager(Vector client_interceptors, Vector server_interceptors, 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
setTSCurrent(Current current)
Sets the thread scope current, i.e. a server side current associated with the calling thread.

Field Details

EMPTY_CURRENT

public static final PICurrentImpl EMPTY_CURRENT

Constructor Details

InterceptorManager

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

Method Details

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.


setTSCurrent

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