org.eclipse.swordfish.internal.core.interceptor
Class LoggingInterceptor

java.lang.Object
  extended by org.eclipse.swordfish.internal.core.interceptor.LoggingInterceptor
All Implemented Interfaces:
Interceptor

public class LoggingInterceptor
extends java.lang.Object
implements Interceptor


Field Summary
 
Fields inherited from interface org.eclipse.swordfish.core.Interceptor
TYPE_PROPERTY
 
Constructor Summary
LoggingInterceptor()
           
 
Method Summary
 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 messageExchange)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingInterceptor

public LoggingInterceptor()
Method Detail

process

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

getProperties

public 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.