Class KnativeConfiguration
java.lang.Object
org.apache.camel.component.knative.KnativeConfiguration
- All Implemented Interfaces:
Cloneable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTransportOptions(String key, Object value) Add a transport option.copy()org.apache.camel.component.knative.spi.KnativeEnvironmentgetKind()getName()getReply()org.apache.camel.component.knative.spi.KnativeSinkBindingbooleanvoidsetApiVersion(String apiVersion) The version of the k8s resource referenced by the endpoint.voidsetCeOverride(Map<String, String> ceOverride) CloudEvent headers to overridevoidsetCloudEventsSpecVersion(String cloudEventsSpecVersion) Set the version of the cloudevents spec.voidsetCloudEventsType(String cloudEventsType) Set the event-type information of the produced events.voidsetEnvironment(org.apache.camel.component.knative.spi.KnativeEnvironment environment) The environmentvoidsetFilters(Map<String, String> filters) Set the filters.voidThe type of the k8s resource referenced by the endpoint.voidThe name of the k8s resource referenced by the endpoint.voidIf the consumer should construct a full reply to knative request.voidsetReplyWithCloudEvent(boolean replyWithCloudEvent) Transforms the reply into a cloud event that will be processed by the caller.voidsetSinkBinding(org.apache.camel.component.knative.spi.KnativeSinkBinding sinkBinding) The SinkBinding configuration.voidsetTransportOptions(Map<String, Object> transportOptions) Set the transport options.voidThe name of the service to lookup from theKnativeEnvironment.
-
Constructor Details
-
KnativeConfiguration
public KnativeConfiguration()
-
-
Method Details
-
getEnvironment
public org.apache.camel.component.knative.spi.KnativeEnvironment getEnvironment() -
setEnvironment
public void setEnvironment(org.apache.camel.component.knative.spi.KnativeEnvironment environment) The environment -
getSinkBinding
public org.apache.camel.component.knative.spi.KnativeSinkBinding getSinkBinding() -
setSinkBinding
public void setSinkBinding(org.apache.camel.component.knative.spi.KnativeSinkBinding sinkBinding) The SinkBinding configuration. -
getTypeId
-
setTypeId
The name of the service to lookup from theKnativeEnvironment. -
isReplyWithCloudEvent
public boolean isReplyWithCloudEvent() -
setReplyWithCloudEvent
public void setReplyWithCloudEvent(boolean replyWithCloudEvent) Transforms the reply into a cloud event that will be processed by the caller. When listening to events from a Knative Broker, if this flag is enabled, replies will be published to the same Broker where the request comes from (beware that if you don't change the "type" of the received message, you may create a loop and receive your same reply). When this flag is disabled, CloudEvent headers are removed from the reply. -
getCloudEventsSpecVersion
-
setCloudEventsSpecVersion
Set the version of the cloudevents spec. -
getCloudEventsType
-
setCloudEventsType
Set the event-type information of the produced events. -
getTransportOptions
-
setTransportOptions
Set the transport options. -
addTransportOptions
Add a transport option. -
getFilters
-
setFilters
Set the filters. -
getCeOverride
-
setCeOverride
CloudEvent headers to override -
getApiVersion
-
setApiVersion
The version of the k8s resource referenced by the endpoint. -
getKind
-
setKind
The type of the k8s resource referenced by the endpoint. -
getName
-
setName
The name of the k8s resource referenced by the endpoint. -
getReply
-
setReply
If the consumer should construct a full reply to knative request. -
copy
-