Tuscany Core

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

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

public class OneWayInterceptor
extends java.lang.Object
implements Interceptor

An interceptor that sends the wire Message down its request channel and does not expect a response.

Version:
$Rev: 394379 $ $Date: 2006-04-15 18:01:36 -0400 (Sat, 15 Apr 2006) $

Constructor Summary
OneWayInterceptor(MessageChannel requestChannel)
          Construct an interceptor that sends messages down the supplied channel.
 
Method Summary
 Message invoke(Message message)
          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

OneWayInterceptor

public OneWayInterceptor(MessageChannel requestChannel)
Construct an interceptor that sends messages down the supplied channel.

Parameters:
requestChannel - the channel to send messages down
Method Detail

invoke

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

Specified by:
invoke in interface Interceptor
Parameters:
message - 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

-