Class KnativeConfiguration

java.lang.Object
org.apache.camel.component.knative.KnativeConfiguration
All Implemented Interfaces:
Cloneable

@UriParams public class KnativeConfiguration extends Object implements Cloneable
  • 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

      public String getTypeId()
    • setTypeId

      public void setTypeId(String typeId)
      The name of the service to lookup from the KnativeEnvironment.
    • 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

      public String getCloudEventsSpecVersion()
    • setCloudEventsSpecVersion

      public void setCloudEventsSpecVersion(String cloudEventsSpecVersion)
      Set the version of the cloudevents spec.
    • getCloudEventsType

      public String getCloudEventsType()
    • setCloudEventsType

      public void setCloudEventsType(String cloudEventsType)
      Set the event-type information of the produced events.
    • getTransportOptions

      public Map<String,Object> getTransportOptions()
    • setTransportOptions

      public void setTransportOptions(Map<String,Object> transportOptions)
      Set the transport options.
    • addTransportOptions

      public void addTransportOptions(String key, Object value)
      Add a transport option.
    • getFilters

      public Map<String,String> getFilters()
    • setFilters

      public void setFilters(Map<String,String> filters)
      Set the filters.
    • getCeOverride

      public Map<String,String> getCeOverride()
    • setCeOverride

      public void setCeOverride(Map<String,String> ceOverride)
      CloudEvent headers to override
    • getApiVersion

      public String getApiVersion()
    • setApiVersion

      public void setApiVersion(String apiVersion)
      The version of the k8s resource referenced by the endpoint.
    • getKind

      public String getKind()
    • setKind

      public void setKind(String kind)
      The type of the k8s resource referenced by the endpoint.
    • getName

      public String getName()
    • setName

      public void setName(String name)
      The name of the k8s resource referenced by the endpoint.
    • getReply

      public Boolean getReply()
    • setReply

      public void setReply(Boolean reply)
      If the consumer should construct a full reply to knative request.
    • copy

      public KnativeConfiguration copy()