org.eclipse.swordfish.plugins.compression
Class AbstractInterceptor

java.lang.Object
  extended by org.eclipse.swordfish.plugins.compression.AbstractInterceptor
All Implemented Interfaces:
Interceptor
Direct Known Subclasses:
CompressionInterceptor

public abstract class AbstractInterceptor
extends java.lang.Object
implements Interceptor


Field Summary
 
Fields inherited from interface org.eclipse.swordfish.core.Interceptor
TYPE_PROPERTY
 
Constructor Summary
AbstractInterceptor()
           
 
Method Summary
abstract  java.util.Map<java.lang.String,?> getProperties()
          By using this method the implementation class can supply properties associated with the current interceptor e.g priority.
 void process(javax.jbi.messaging.MessageExchange exchange)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractInterceptor

public AbstractInterceptor()
Method Detail

getProperties

public abstract java.util.Map<java.lang.String,?> getProperties()
Description copied from interface: Interceptor
By using this method the implementation class can supply properties associated with the current interceptor e.g priority. These properties are merged with the properties provided at OSGI service registration and via Swordfish configuration. Details see at FilterStrategy#filter(java.util.List, ReadOnlyRegistry, java.util.List) and SortingStrategy#sort(java.util.List, ReadOnlyRegistry, java.util.List).

Specified by:
getProperties in interface Interceptor
Returns:
Properties in a Map of String keys and arbitrary values.

process

public void process(javax.jbi.messaging.MessageExchange exchange)
             throws SwordfishException
Specified by:
process in interface Interceptor
Parameters:
exchange - the messageExchange to be processed
Throws:
SwordfishException