Class KnativeConfiguration

  • All Implemented Interfaces:
    Cloneable

    @UriParams
    public class KnativeConfiguration
    extends Object
    implements Cloneable
    • Constructor Detail

      • KnativeConfiguration

        public KnativeConfiguration()
    • Method Detail

      • setEnvironment

        public void setEnvironment​(KnativeEnvironment environment)
        The environment
      • getTypeId

        public String getTypeId()
      • 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.
      • setTransportOptions

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

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

        public void setFilters​(Map<String,​String> filters)
        Set the filters.
      • 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.