| java.lang.Object com.nabhinc.ws.server.InterceptorManager
InterceptorManager | public class InterceptorManager (Code) | | Provides static methods to handle interceptor loading/unloading,
chain creation, etc.
author: Padmanabh Dabke author: (c) 2005 Nabh Information Systems, Inc. All Rights Reserved. |
Inner Class :public static class ServiceInterceptorMapping | |
Method Summary | |
public static void | addInterceptor(InterceptorInfo intInfo) Constructs a InterceptorInfo object from the request parameters. | public static void | addServiceInterceptorMapping(String serviceName, String methodNames, String[] interceptors, boolean overrideFlag) Adds a new service-interceptor mapping and re-populates state. | public static void | deleteInterceptor(String name) Removes specified interceptor, any associated service-interceptor mapping. | public static List | getAfterInterceptorInfoList() | public static List | getBeforeInterceptorInfoList() | public static synchronized InterceptorInfo[] | getInterceptorChain(String serviceName, String methodName) Returns a service-method specific chain if configured. | public static InterceptorInfo | getInterceptorInfo(String name) | public static List | getInterceptorInfoList() | public static List | getServiceInterceptorMappingList() | protected static void | init(Element config, WebServiceContext context) Initializes interceptor configuration and creates interceptor chains. | public static void | loadInterceptor(String name) | protected static synchronized void | populateState() Creates the global interceptor chain and service/method specific chains. | public static void | reloadInterceptor(String name) | public static void | removeServiceInterceptorMappingAt(int pos) | public static void | replaceServiceInterceptorMapping(String serviceName, String methodNames, String[] interceptors, boolean overrideFlag, int pos) Modifies an existing service-interceptor mapping and re-populates state. | public static void | serialize(String indent, String delta, Writer w) Serializes all interceptor-related configuration. | public static void | setAfterInterceptors(String[] newInt) | public static void | setBeforeInterceptors(String[] newInt) | public static void | setGlobalInterceptors(String[] before, String[] after) Sets before and after global interceptors, updates the state and saves it. | public static void | unloadInterceptor(String name) |
imAfterInterceptorList | protected static List imAfterInterceptorList(Code) | | A list of InterceptorInfo objects. These interceptors are added
at the end of of all interceptor chains.
|
imAfterInterceptorStr | protected static String imAfterInterceptorStr(Code) | | A comma separated list of interceptor names specified in the
configuration. These interceptors are added at the end of
of all interceptor chains.
|
imBeforeInterceptorList | protected static List imBeforeInterceptorList(Code) | | A list of InterceptorInfo objects. These interceptors are added
in the beginning of all interceptor chains.
|
imBeforeInterceptorStr | protected static String imBeforeInterceptorStr(Code) | | A comma separated list of interceptor names specified in the
configuration. These interceptors are added in the beginning
of all interceptor chains.
|
imInterceptorList | protected static List imInterceptorList(Code) | | List of InterceptorInfo objects.
|
imInterceptorMap | protected static Hashtable imInterceptorMap(Code) | | Maintains mapping from interceptor name -> InterceptorInfo
|
imServiceInterceptorMappingList | protected static List imServiceInterceptorMappingList(Code) | | List of ServiceInterceptorMapping objects.
|
addServiceInterceptorMapping | public static void addServiceInterceptorMapping(String serviceName, String methodNames, String[] interceptors, boolean overrideFlag) throws WebServiceException, IOException(Code) | | Adds a new service-interceptor mapping and re-populates state.
Parameters: serviceName - Web service name Parameters: methodNames - Comma separated list of method names (can be null or "*") Parameters: interceptors - Array of interceptor names throws: ServletException - |
getAfterInterceptorInfoList | public static List getAfterInterceptorInfoList()(Code) | | |
getBeforeInterceptorInfoList | public static List getBeforeInterceptorInfoList()(Code) | | |
getInterceptorChain | public static synchronized InterceptorInfo[] getInterceptorChain(String serviceName, String methodName)(Code) | | Returns a service-method specific chain if configured. If not, looks for a service
specific chain. Otherwise returns the global chain.
Parameters: serviceName - Web service name Parameters: methodName - Method name Interceptor chain to be applied to service/method combination |
getInterceptorInfoList | public static List getInterceptorInfoList()(Code) | | |
getServiceInterceptorMappingList | public static List getServiceInterceptorMappingList()(Code) | | |
populateState | protected static synchronized void populateState()(Code) | | Creates the global interceptor chain and service/method specific chains.
|
removeServiceInterceptorMappingAt | public static void removeServiceInterceptorMappingAt(int pos) throws WebServiceException, IOException(Code) | | Removes a service-interceptor mapping at the specified position and re-populates
the state
Parameters: pos - Position of the mapping to be removed |
replaceServiceInterceptorMapping | public static void replaceServiceInterceptorMapping(String serviceName, String methodNames, String[] interceptors, boolean overrideFlag, int pos) throws WebServiceException, IOException(Code) | | Modifies an existing service-interceptor mapping and re-populates state.
Parameters: serviceName - Web service name Parameters: methodNames - Comma separated list of method names (can be null or "*") Parameters: interceptors - Array of interceptor names Parameters: pos - Position of the mapping to be modified throws: ServletException - |
serialize | public static void serialize(String indent, String delta, Writer w) throws IOException(Code) | | Serializes all interceptor-related configuration.
Parameters: indent - Indent used to format XML Parameters: delta - Spaces added to go to next indentation level Parameters: w - Writer throws: IOException - |
|
|