org.apache.geronimo.messaging.interceptors
Class HeaderInInterceptor

java.lang.Object
  extended byorg.apache.geronimo.messaging.interceptors.HeaderInInterceptor
All Implemented Interfaces:
MsgInInterceptor

public class HeaderInInterceptor
extends Object
implements MsgInInterceptor

Inbound interceptor in charge of retrieving an header.

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

Constructor Summary
HeaderInInterceptor(MsgInInterceptor aPrev, Object aHeader)
          Creates an inbound Msgs interceptor popping messages from aPrev and retrieving the header identified by aHeader.
 
Method Summary
 Object getHeader()
          Gets the current header value.
 Msg pop()
          Pops a Msg from the previous inbound Msg interceptor and retrieves a specific header.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeaderInInterceptor

public HeaderInInterceptor(MsgInInterceptor aPrev,
                           Object aHeader)
Creates an inbound Msgs interceptor popping messages from aPrev and retrieving the header identified by aHeader.

Parameters:
aPrev - Inbound Msgs interceptor to pop from.
aHeader - Identifier of the header to be retrieved.
Method Detail

pop

public Msg pop()
Pops a Msg from the previous inbound Msg interceptor and retrieves a specific header.

Specified by:
pop in interface MsgInInterceptor
Returns:
Msg poped from the previous interceptor.

getHeader

public Object getHeader()
Gets the current header value.

Returns:
Header value.


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