Tuscany Core

org.apache.tuscany.core.wire.impl
Class RequestResponseInterceptor

java.lang.Object
  extended by org.apache.tuscany.core.wire.impl.RequestResponseInterceptor
All Implemented Interfaces:
Interceptor

public class RequestResponseInterceptor
extends java.lang.Object
implements Interceptor

An interceptor that first sends a message down its request channel then extracts the response from the message and sends it down the response channel before returning it up the interceptor stack.

Version:
$Rev: 395113 $ $Date: 2006-04-18 22:46:19 -0400 (Tue, 18 Apr 2006) $

Constructor Summary
RequestResponseInterceptor(MessageChannel sourceRequestChannel, MessageChannel targetRequestChannel, MessageChannel sourceResponseChannel, MessageChannel targetResponseChannel)
          Construct an interceptor that sends messages down the supplied channels.
 
Method Summary
 Message invoke(Message requestMessage)
          Process a synchronous wire.
 void setNext(Interceptor next)
          Sets the next interceptor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestResponseInterceptor

public RequestResponseInterceptor(MessageChannel sourceRequestChannel,
                                  MessageChannel targetRequestChannel,
                                  MessageChannel sourceResponseChannel,
                                  MessageChannel targetResponseChannel)
Construct an interceptor that sends messages down the supplied channels.

Parameters:
targetRequestChannel - the channel to send request messages down
targetResponseChannel - the channel to sent response messages down
Method Detail

invoke

public Message invoke(Message requestMessage)
Description copied from interface: Interceptor
Process a synchronous wire.

Specified by:
invoke in interface Interceptor
Parameters:
requestMessage - the request Message for the wire
Returns:
the response Message from the wire

setNext

public void setNext(Interceptor next)
Description copied from interface: Interceptor
Sets the next interceptor.

Specified by:
setNext in interface Interceptor

Tuscany Core

-