Class InterceptorRegistry
java.lang.Object
org.somda.sdc.dpws.soap.interception.InterceptorRegistry
Registry to store and access a set of interceptor objects.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddInterceptor(Interceptor interceptor) Takes an object and seeks interceptor methods.List<org.somda.sdc.dpws.soap.interception.InterceptorInfo>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 Details
-
addInterceptor
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
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.
-
getInterceptors
Gets interceptors of a specific action.- Parameters:
action- the action to filter for.- Returns:
- all interceptors of any direction with given action.
-