Package org.apache.camel.k
Class SourceDefinition
java.lang.Object
org.apache.camel.k.SourceDefinition
- All Implemented Interfaces:
org.apache.camel.spi.HasId,org.apache.camel.spi.IdAware
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getId()getName()getType()booleanvoidsetCompressed(boolean compressed) If the content of the source is compressed.voidsetContent(byte[] content) The content of the source.voidSets the idvoidsetInterceptors(List<String> interceptors) Theorg.apache.camel.k.SourceLoader.Interceptorthat should be applied.voidsetLanguage(String language) The language use to define the source.voidTheSourceLoaderthat should be used to load the content of the source.voidsetLocation(String location) The location of the source.voidThe name of the source.voidsetPropertyNames(List<String> propertyNames) The list of properties names the source requires (used only for templates).voidsetType(SourceType type) TheSourceTypeof the source.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.camel.spi.IdAware
setGeneratedId
-
Constructor Details
-
SourceDefinition
public SourceDefinition()
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceorg.apache.camel.spi.HasId
-
setId
Sets the id- Specified by:
setIdin interfaceorg.apache.camel.spi.IdAware
-
getName
-
setName
The name of the source. -
getLanguage
-
setLanguage
The language use to define the source. -
getLoader
-
setLoader
TheSourceLoaderthat should be used to load the content of the source. -
getInterceptors
-
setInterceptors
Theorg.apache.camel.k.SourceLoader.Interceptorthat should be applied. -
getType
-
setType
TheSourceTypeof the source. -
getPropertyNames
-
setPropertyNames
The list of properties names the source requires (used only for templates). -
getLocation
-
setLocation
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
-