public interface MessagingHandler
| Modifier and Type | Method and Description |
|---|---|
String |
handlerName()
Gives handler name.
|
void |
invokeAtSourceConnectionInitiation(String metadata)
Invoked when source connection is initiated.
|
void |
invokeAtSourceConnectionTermination(String metadata)
Invoked when source connection is terminated.
|
void |
invokeAtSourceRequestReceiving(CarbonMessage carbonMessage)
Invoked when source request is started receiving at source handler.
|
void |
invokeAtSourceRequestSending(CarbonMessage carbonMessage)
Invoked when source request is started sending to the message processor.
|
void |
invokeAtSourceResponseReceiving(CarbonMessage carbonMessage)
Invoked when the response is received again to the transport level after being processed at message processor.
|
void |
invokeAtSourceResponseSending(CarbonMessage carbonMessage)
Invoked when the response is started sending to the client.
|
void |
invokeAtTargetConnectionInitiation(String metadata)
Invoked when target connection is initiated.
|
void |
invokeAtTargetConnectionTermination(String metadata)
Invoked when target connection is terminated.
|
void |
invokeAtTargetRequestReceiving(CarbonMessage carbonMessage)
Invoked when the request is received again to the transport level after being processed at message processor.
|
void |
invokeAtTargetRequestSending(CarbonMessage carbonMessage)
Invoked when the request is started sending to the backend.
|
void |
invokeAtTargetResponseReceiving(CarbonMessage carbonMessage)
Invoked when target response is started receiving at target handler.
|
void |
invokeAtTargetResponseSending(CarbonMessage carbonMessage)
Invoked when target response is started sending to the message processor.
|
boolean |
validateRequestContinuation(CarbonMessage carbonMessage,
CarbonCallback callback)
Invoked when source request's headers are received at the source handler.
|
boolean validateRequestContinuation(CarbonMessage carbonMessage, CarbonCallback callback)
carbonMessage - client request with headerscallback - response callbackvoid invokeAtSourceConnectionInitiation(String metadata)
metadata - unique string key to identify the connectionvoid invokeAtSourceConnectionTermination(String metadata)
metadata - unique string key to identify the connectionvoid invokeAtTargetConnectionInitiation(String metadata)
metadata - unique string key to identify the connectionvoid invokeAtTargetConnectionTermination(String metadata)
metadata - unique string key to identify the connectionvoid invokeAtSourceRequestReceiving(CarbonMessage carbonMessage)
carbonMessage - newly created carbon message.void invokeAtSourceRequestSending(CarbonMessage carbonMessage)
carbonMessage - client request (i.e headers, property and message body)void invokeAtTargetRequestReceiving(CarbonMessage carbonMessage)
carbonMessage - processed (or mediated) request (i.e headers, properties and message body)void invokeAtTargetRequestSending(CarbonMessage carbonMessage)
carbonMessage - sent request (i.e the message is already had started to send to backend)
So no message body will be available. Even though the headers and properties are available,
manipulating them won't change the request send to the back end (because the headers are
already been send to the backend)void invokeAtTargetResponseReceiving(CarbonMessage carbonMessage)
carbonMessage - newly created carbon message.void invokeAtTargetResponseSending(CarbonMessage carbonMessage)
carbonMessage - target response (i.e headers, property and message body)void invokeAtSourceResponseReceiving(CarbonMessage carbonMessage)
carbonMessage - processed (or mediated) response (i.e headers, properties and message body)void invokeAtSourceResponseSending(CarbonMessage carbonMessage)
carbonMessage - sent response (i.e with empty message body.
similar carbon message to invokeAtTargetRequestSending(CarbonMessage)String handlerName()
Copyright © 2017 WSO2. All rights reserved.