Class SourceDefinition

java.lang.Object
org.apache.camel.k.SourceDefinition
All Implemented Interfaces:
org.apache.camel.spi.HasId, org.apache.camel.spi.IdAware

@Configurer public class SourceDefinition extends Object implements org.apache.camel.spi.IdAware
  • Constructor Details

    • SourceDefinition

      public SourceDefinition()
  • Method Details

    • getId

      public String getId()
      Specified by:
      getId in interface org.apache.camel.spi.HasId
    • setId

      public void setId(String id)
      Sets the id
      Specified by:
      setId in interface org.apache.camel.spi.IdAware
    • getName

      public String getName()
    • setName

      public void setName(String name)
      The name of the source.
    • getLanguage

      public String getLanguage()
    • setLanguage

      public void setLanguage(String language)
      The language use to define the source.
    • getLoader

      public String getLoader()
    • setLoader

      public void setLoader(String loader)
      The SourceLoader that should be used to load the content of the source.
    • getInterceptors

      public List<String> getInterceptors()
    • setInterceptors

      public void setInterceptors(List<String> interceptors)
      The org.apache.camel.k.SourceLoader.Interceptor that should be applied.
    • getType

      public SourceType getType()
    • setType

      public void setType(SourceType type)
      The SourceType of the source.
    • getPropertyNames

      public List<String> getPropertyNames()
    • setPropertyNames

      public void setPropertyNames(List<String> propertyNames)
      The list of properties names the source requires (used only for templates).
    • getLocation

      public String getLocation()
    • setLocation

      public void setLocation(String location)
      The location of the source.
    • getContent

      public byte[] getContent()
    • setContent

      public void setContent(byte[] content)
      The content of the source.
    • isCompressed

      public boolean isCompressed()
    • setCompressed

      public void setCompressed(boolean compressed)
      If the content of the source is compressed.
    • toString

      public String toString()
      Overrides:
      toString in class Object