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
@Configurer public class SourceDefinition extends Object implements org.apache.camel.spi.IdAware
-
-
Constructor Summary
Constructors Constructor Description SourceDefinition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getContent()
String
getId()
List<String>
getInterceptors()
String
getLanguage()
String
getLoader()
String
getLocation()
String
getName()
List<String>
getPropertyNames()
SourceType
getType()
boolean
isCompressed()
void
setCompressed(boolean compressed)
If the content of the source is compressed.void
setContent(byte[] content)
The content of the source.void
setId(String id)
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
setLoader(String loader)
TheSourceLoader
that should be used to load the content of the source.void
setLocation(String location)
The location of the source.void
setName(String name)
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.String
toString()
-
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getId
in interfaceorg.apache.camel.spi.HasId
-
setId
public void setId(String id)
Sets the id- Specified by:
setId
in interfaceorg.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)
TheSourceLoader
that should be used to load the content of the source.
-
setInterceptors
public void setInterceptors(List<String> interceptors)
Theorg.apache.camel.k.SourceLoader.Interceptor
that should be applied.
-
getType
public SourceType getType()
-
setType
public void setType(SourceType type)
TheSourceType
of the source.
-
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.
-
-