|
Tuscany Core | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tuscany.core.wire.impl.RequestResponseInterceptor
public class RequestResponseInterceptor
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.
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 |
---|
public RequestResponseInterceptor(MessageChannel sourceRequestChannel, MessageChannel targetRequestChannel, MessageChannel sourceResponseChannel, MessageChannel targetResponseChannel)
targetRequestChannel
- the channel to send request messages downtargetResponseChannel
- the channel to sent response messages downMethod Detail |
---|
public Message invoke(Message requestMessage)
Interceptor
invoke
in interface Interceptor
requestMessage
- the request Message for the wire
public void setNext(Interceptor next)
Interceptor
setNext
in interface Interceptor
|
Tuscany Core | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |