Interface KafkaMessageExecutionContext
- All Superinterfaces:
BaseExecutionContext,NativeMessageExecutionContext
Message execution context specialized for Kafka.
- Author:
- Jeoffrey HAEYAERT (jeoffrey.haeyaert at graviteesource.com), GraviteeSource Team
-
Field Summary
FieldsFields inherited from interface io.gravitee.gateway.reactive.api.context.base.BaseExecutionContext
TEMPLATE_ATTRIBUTE_CONTEXT -
Method Summary
Modifier and TypeMethodDescriptionAccess the execution context.io.gravitee.el.TemplateEnginegetTemplateEngine(KafkaMessage message) Get theTemplateEnginethat can be used to evaluate EL expressions.org.apache.kafka.common.security.auth.KafkaPrincipalAccess the principal of the current execution context.request()Get the current request attached to this execution context.response()Get the current response attached to this execution context when it is available.Methods inherited from interface io.gravitee.gateway.reactive.api.context.base.BaseExecutionContext
getAttribute, getAttributeAsList, getAttributeNames, getAttributes, getComponent, getInternalAttribute, getInternalAttributes, getTemplateEngine, getTracer, localAddress, putAttribute, putInternalAttribute, remoteAddress, removeAttribute, removeInternalAttribute, setAttribute, setInternalAttribute, timestamp, tlsSession, warnWith
-
Field Details
-
TEMPLATE_ATTRIBUTE_MESSAGE
- See Also:
-
-
Method Details
-
executionContext
KafkaExecutionContext executionContext()Access the execution context.- Returns:
- the execution context.
-
request
KafkaMessageRequest request()Get the current request attached to this execution context.- Returns:
- the request.
-
response
KafkaMessageResponse response()Get the current response attached to this execution context when it is available.- Returns:
- the response.
-
principal
org.apache.kafka.common.security.auth.KafkaPrincipal principal()Access the principal of the current execution context.- Returns:
- the principal of the current execution context.
-
getTemplateEngine
Get theTemplateEnginethat can be used to evaluate EL expressions.- Parameters:
message- the message to evaluate.- Returns:
- the El
TemplateEngine.
-