org.apache.geronimo.messaging.interceptors
Class HeaderOutInterceptor

java.lang.Object
  extended byorg.apache.geronimo.messaging.interceptors.HeaderOutInterceptor
All Implemented Interfaces:
MsgOutInterceptor

public class HeaderOutInterceptor
extends Object
implements MsgOutInterceptor

Counterpart of HeaderInInterceptor.

Version:
$Revision: 1.1 $ $Date: 2004/05/11 12:06:40 $

Constructor Summary
HeaderOutInterceptor(Object aKey, Object aValue, MsgOutInterceptor aNext)
          Creates an outbound interceptor, which adds a header having the key aKey and the value aValue.
 
Method Summary
 void push(Msg aMsg)
          Adds an header to the Msg and pushes it to the next interceptor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeaderOutInterceptor

public HeaderOutInterceptor(Object aKey,
                            Object aValue,
                            MsgOutInterceptor aNext)
Creates an outbound interceptor, which adds a header having the key aKey and the value aValue.

Parameters:
aKey - Header key.
aValue - Header value.
aNext - Interceptor towards which the Msgs are pushed.
Method Detail

push

public void push(Msg aMsg)
Adds an header to the Msg and pushes it to the next interceptor.

Specified by:
push in interface MsgOutInterceptor
Parameters:
aMsg - Msg to process.


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.