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(HttpCarbonMessage carbonMessage)
Invoked when source request is started receiving at source handler.
|
void |
invokeAtSourceRequestSending(HttpCarbonMessage carbonMessage)
Invoked when source request is started sending to the message processor.
|
void |
invokeAtSourceResponseReceiving(HttpCarbonMessage carbonMessage)
Invoked when the response is received again to the transport level after being processed at message processor.
|
void |
invokeAtSourceResponseSending(HttpCarbonMessage 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(HttpCarbonMessage carbonMessage)
Invoked when the request is received again to the transport level after being processed at message processor.
|
void |
invokeAtTargetRequestSending(HttpCarbonMessage carbonMessage)
Invoked when the request is started sending to the backend.
|
void |
invokeAtTargetResponseReceiving(HttpCarbonMessage carbonMessage)
Invoked when target response is started receiving at target handler.
|
void |
invokeAtTargetResponseSending(HttpCarbonMessage carbonMessage)
Invoked when target response is started sending to the message processor.
|
void 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(HttpCarbonMessage carbonMessage)
carbonMessage - newly created carbon message.void invokeAtSourceRequestSending(HttpCarbonMessage carbonMessage)
carbonMessage - client request (i.e headers, property and message body)void invokeAtTargetRequestReceiving(HttpCarbonMessage carbonMessage)
carbonMessage - processed (or mediated) request (i.e headers, properties and message body)void invokeAtTargetRequestSending(HttpCarbonMessage 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(HttpCarbonMessage carbonMessage)
carbonMessage - newly created carbon message.void invokeAtTargetResponseSending(HttpCarbonMessage carbonMessage)
carbonMessage - target response (i.e headers, property and message body)void invokeAtSourceResponseReceiving(HttpCarbonMessage carbonMessage)
carbonMessage - processed (or mediated) response (i.e headers, properties and message body)void invokeAtSourceResponseSending(HttpCarbonMessage carbonMessage)
carbonMessage - sent response (i.e with empty message body.
similar carbon message to}String handlerName()
Copyright © 2021 WSO2. All rights reserved.