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()
boolean
void
setCompressed
(boolean compressed) If the content of the source is compressed.void
setContent
(byte[] content) The content of the source.void
Sets the idvoid
setInterceptors
(List<String> interceptors) Theorg.apache.camel.k.SourceLoader.Interceptor
that should be applied.void
setLanguage
(String language) The language use to define the source.void
TheSourceLoader
that should be used to load the content of the source.void
setLocation
(String location) The location of the source.void
The name of the source.void
setPropertyNames
(List<String> propertyNames) The list of properties names the source requires (used only for templates).void
setType
(SourceType type) TheSourceType
of the source.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.camel.spi.IdAware
setGeneratedId
-
Constructor Details
-
SourceDefinition
public SourceDefinition()
-
-
Method Details
-
getId
- Specified by:
getId
in interfaceorg.apache.camel.spi.HasId
-
setId
Sets the id- Specified by:
setId
in interfaceorg.apache.camel.spi.IdAware
-
getName
-
setName
The name of the source. -
getLanguage
-
setLanguage
The language use to define the source. -
getLoader
-
setLoader
TheSourceLoader
that should be used to load the content of the source. -
getInterceptors
-
setInterceptors
Theorg.apache.camel.k.SourceLoader.Interceptor
that should be applied. -
getType
-
setType
TheSourceType
of 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
-