Class InterceptorRegistry
- java.lang.Object
-
- org.somda.sdc.dpws.soap.interception.InterceptorRegistry
-
public class InterceptorRegistry extends Object
Registry to store and access a set of interceptor objects.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddInterceptor(Interceptor interceptor)Takes an object and seeks interceptor methods.List<org.somda.sdc.dpws.soap.interception.InterceptorInfo>getDefaultInterceptors()Gets all default interceptors.List<org.somda.sdc.dpws.soap.interception.InterceptorInfo>getDefaultInterceptors(Direction direction)Gets default interceptors of a specific direction.List<org.somda.sdc.dpws.soap.interception.InterceptorInfo>getInterceptors(String action)Gets interceptors of a specific action.List<org.somda.sdc.dpws.soap.interception.InterceptorInfo>getInterceptors(Direction direction, String action)Gets default interceptor of a specific direction and action.
-
-
-
Method Detail
-
addInterceptor
public void addInterceptor(Interceptor interceptor)
Takes an object and seeks interceptor methods.Interceptor methods are stored in a registry for fast access. They are retrievable by using
- Parameters:
interceptor- the object where to search for interceptor methods.
-
getDefaultInterceptors
public List<org.somda.sdc.dpws.soap.interception.InterceptorInfo> getDefaultInterceptors()
Gets all default interceptors.- Returns:
- all interceptors of any direction and action.
-
getDefaultInterceptors
public List<org.somda.sdc.dpws.soap.interception.InterceptorInfo> getDefaultInterceptors(Direction direction)
Gets default interceptors of a specific direction.- Parameters:
direction- the direction to filter for.- Returns:
- all interceptors with given direction.
-
getInterceptors
public List<org.somda.sdc.dpws.soap.interception.InterceptorInfo> getInterceptors(Direction direction, String action)
Gets default interceptor of a specific direction and action.- Parameters:
direction- the direction to filter for.action- the action to filter for.- Returns:
- all interceptors with given direction and action.
-
-