public class DefaultCamelCatalog extends AbstractCamelCatalog implements CamelCatalog
CamelCatalog
.Constructor and Description |
---|
DefaultCamelCatalog()
Creates the
CamelCatalog without caching enabled. |
DefaultCamelCatalog(boolean caching)
Creates the
CamelCatalog |
Modifier and Type | Method and Description |
---|---|
void |
addComponent(String name,
String className)
Adds a 3rd party component to this catalog.
|
void |
addComponent(String name,
String className,
String jsonSchema)
Adds a 3rd party component to this catalog.
|
void |
addDataFormat(String name,
String className)
Adds a 3rd party data format to this catalog.
|
void |
addDataFormat(String name,
String className,
String jsonSchema)
Adds a 3rd party data format to this catalog.
|
String |
archetypeCatalogAsXml()
Returns the Apache Camel Maven Archetype catalog in XML format.
|
String |
blueprintSchemaAsXml()
Returns the Camel Blueprint XML schema
|
String |
componentAsciiDoc(String name)
Returns the component documentation as Ascii doc format.
|
String |
componentHtmlDoc(String name)
Returns the component documentation as HTML format.
|
String |
componentJSonSchema(String name)
Returns the component information as JSon format.
|
String |
dataFormatAsciiDoc(String name)
Returns the data format documentation as Ascii doc format.
|
String |
dataFormatHtmlDoc(String name)
Returns the data format documentation as HTML format.
|
String |
dataFormatJSonSchema(String name)
Returns the data format information as JSon format.
|
void |
enableCache()
Enables caching of the resources which makes the catalog faster, but keeps data in memory during caching.
|
Set<String> |
findComponentLabels()
Find all the unique label names all the components are using.
|
List<String> |
findComponentNames()
Find all the component names from the Camel catalog
|
List<String> |
findComponentNames(String filter)
Find all the component names from the Camel catalog that matches the label
|
Set<String> |
findDataFormatLabels()
Find all the unique label names all the data formats are using.
|
List<String> |
findDataFormatNames()
Find all the data format names from the Camel catalog
|
List<String> |
findDataFormatNames(String filter)
Find all the data format names from the Camel catalog that matches the label
|
Set<String> |
findLanguageLabels()
Find all the unique label names all the languages are using.
|
List<String> |
findLanguageNames()
Find all the language names from the Camel catalog
|
List<String> |
findLanguageNames(String filter)
Find all the language names from the Camel catalog that matches the label
|
Set<String> |
findModelLabels()
Find all the unique label names all the models are using.
|
List<String> |
findModelNames()
Find all the model names from the Camel catalog
|
List<String> |
findModelNames(String filter)
Find all the model names from the Camel catalog that matches the label
|
Set<String> |
findOtherLabels()
Find all the unique label names all the other (miscellaneous) are using.
|
List<String> |
findOtherNames()
Find all the other (miscellaneous) names from the Camel catalog
|
List<String> |
findOtherNames(String filter)
Find all the other (miscellaneous) names from the Camel catalog that matches the label
|
String |
getCatalogVersion()
The version of this Camel Catalog
|
String |
getLoadedVersion()
Gets the current loaded Camel version used by the catalog.
|
RuntimeProvider |
getRuntimeProvider()
Gets the
RuntimeProvider in use. |
String |
getRuntimeProviderLoadedVersion()
Gets the current loaded runtime provider version used by the catalog.
|
VersionManager |
getVersionManager()
Gets the
VersionManager in use |
boolean |
isCaching()
Whether caching has been enabled.
|
String |
languageAsciiDoc(String name)
Returns the language documentation as Ascii doc format.
|
String |
languageHtmlDoc(String name)
Returns the language documentation as HTML format.
|
String |
languageJSonSchema(String name)
Returns the language information as JSon format.
|
String |
listComponentsAsJson()
Lists all the components summary details in JSon
|
String |
listDataFormatsAsJson()
Lists all the data formats summary details in JSon
|
String |
listLanguagesAsJson()
Lists all the languages summary details in JSon
|
String |
listModelsAsJson()
Lists all the models (EIPs) summary details in JSon
|
String |
listOthersAsJson()
Lists all the others (miscellaneous) summary details in JSon
|
boolean |
loadRuntimeProviderVersion(String groupId,
String artifactId,
String version)
Attempt to load the runtime provider version to be used by the catalog.
|
boolean |
loadVersion(String version)
Attempt to load the Camel version to be used by the catalog.
|
String |
modelJSonSchema(String name)
Returns the model information as JSon format.
|
String |
otherAsciiDoc(String name)
Returns the other (miscellaneous) documentation as Ascii doc format.
|
String |
otherHtmlDoc(String name)
Returns the other (miscellaneous) documentation as HTML format.
|
String |
otherJSonSchema(String name)
Returns the other (miscellaneous) information as JSon format.
|
void |
setRuntimeProvider(RuntimeProvider runtimeProvider)
To plugin a custom
RuntimeProvider that amends the catalog to only include information that is supported on the runtime. |
void |
setVersionManager(VersionManager versionManager)
To plugin a custom
VersionManager to load other versions of Camel the catalog should use. |
String |
springSchemaAsXml()
Returns the Camel Spring XML schema
|
String |
summaryAsJson()
Reports a summary what the catalog contains in JSon
|
asEndpointUri, asEndpointUri, asEndpointUriXml, asEndpointUriXml, endpointComponentName, endpointLenientProperties, endpointProperties, getJSonSchemaResolver, getSuggestionStrategy, setJSonSchemaResolver, setSuggestionStrategy, validateEndpointProperties, validateEndpointProperties, validateEndpointProperties, validateLanguageExpression, validateLanguagePredicate, validateProperties, validateSimpleExpression, validateSimpleExpression, validateSimplePredicate, validateSimplePredicate, validateTimePattern
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asEndpointUri, asEndpointUri, asEndpointUriXml, asEndpointUriXml, endpointComponentName, endpointLenientProperties, endpointProperties, getJSonSchemaResolver, getSuggestionStrategy, setJSonSchemaResolver, setSuggestionStrategy, validateEndpointProperties, validateEndpointProperties, validateEndpointProperties, validateLanguageExpression, validateLanguagePredicate, validateSimpleExpression, validateSimpleExpression, validateSimplePredicate, validateSimplePredicate, validateTimePattern
public DefaultCamelCatalog()
CamelCatalog
without caching enabled.public DefaultCamelCatalog(boolean caching)
CamelCatalog
caching
- whether to use cachepublic RuntimeProvider getRuntimeProvider()
CamelCatalog
RuntimeProvider
in use.getRuntimeProvider
in interface CamelCatalog
public void setRuntimeProvider(RuntimeProvider runtimeProvider)
CamelCatalog
RuntimeProvider
that amends the catalog to only include information that is supported on the runtime.setRuntimeProvider
in interface CamelCatalog
public void enableCache()
CamelCatalog
enableCache
in interface CamelCatalog
public boolean isCaching()
CamelCatalog
isCaching
in interface CamelCatalog
public void setVersionManager(VersionManager versionManager)
CamelCatalog
VersionManager
to load other versions of Camel the catalog should use.setVersionManager
in interface CamelCatalog
public VersionManager getVersionManager()
CamelCatalog
VersionManager
in usegetVersionManager
in interface CamelCatalog
public void addComponent(String name, String className)
CamelCatalog
addComponent
in interface CamelCatalog
name
- the component nameclassName
- the fully qualified class name for the component classpublic void addComponent(String name, String className, String jsonSchema)
CamelCatalog
addComponent
in interface CamelCatalog
name
- the component nameclassName
- the fully qualified class name for the component classjsonSchema
- the component JSon schemapublic void addDataFormat(String name, String className)
CamelCatalog
addDataFormat
in interface CamelCatalog
name
- the data format nameclassName
- the fully qualified class name for the data format classpublic void addDataFormat(String name, String className, String jsonSchema)
CamelCatalog
addDataFormat
in interface CamelCatalog
name
- the data format nameclassName
- the fully qualified class name for the data format classjsonSchema
- the data format JSon schemapublic String getCatalogVersion()
CamelCatalog
getCatalogVersion
in interface CamelCatalog
public boolean loadVersion(String version)
CamelCatalog
CamelCatalog.loadVersion(String)
.loadVersion
in interface CamelCatalog
version
- the Camel version such as 2.17.1public String getLoadedVersion()
CamelCatalog
getLoadedVersion
in interface CamelCatalog
public String getRuntimeProviderLoadedVersion()
CamelCatalog
getRuntimeProviderLoadedVersion
in interface CamelCatalog
public boolean loadRuntimeProviderVersion(String groupId, String artifactId, String version)
CamelCatalog
CamelCatalog.loadVersion(String)
.loadRuntimeProviderVersion
in interface CamelCatalog
groupId
- the runtime provider Maven groupIdartifactId
- the runtime provider Maven artifactIdversion
- the runtime provider Maven versionpublic List<String> findComponentNames()
CamelCatalog
findComponentNames
in interface CamelCatalog
public List<String> findDataFormatNames()
CamelCatalog
findDataFormatNames
in interface CamelCatalog
public List<String> findLanguageNames()
CamelCatalog
findLanguageNames
in interface CamelCatalog
public List<String> findModelNames()
CamelCatalog
findModelNames
in interface CamelCatalog
public List<String> findOtherNames()
CamelCatalog
findOtherNames
in interface CamelCatalog
public List<String> findModelNames(String filter)
CamelCatalog
findModelNames
in interface CamelCatalog
public List<String> findComponentNames(String filter)
CamelCatalog
findComponentNames
in interface CamelCatalog
public List<String> findDataFormatNames(String filter)
CamelCatalog
findDataFormatNames
in interface CamelCatalog
public List<String> findLanguageNames(String filter)
CamelCatalog
findLanguageNames
in interface CamelCatalog
public List<String> findOtherNames(String filter)
CamelCatalog
findOtherNames
in interface CamelCatalog
public String modelJSonSchema(String name)
CamelCatalog
modelJSonSchema
in interface CamelCatalog
name
- the model namepublic String componentJSonSchema(String name)
CamelCatalog
componentJSonSchema
in interface CamelCatalog
name
- the component namepublic String dataFormatJSonSchema(String name)
CamelCatalog
dataFormatJSonSchema
in interface CamelCatalog
name
- the data format namepublic String languageJSonSchema(String name)
CamelCatalog
languageJSonSchema
in interface CamelCatalog
name
- the language namepublic String otherJSonSchema(String name)
CamelCatalog
otherJSonSchema
in interface CamelCatalog
name
- the other (miscellaneous) namepublic String componentAsciiDoc(String name)
CamelCatalog
componentAsciiDoc
in interface CamelCatalog
name
- the component namepublic String componentHtmlDoc(String name)
CamelCatalog
componentHtmlDoc
in interface CamelCatalog
name
- the component namepublic String dataFormatAsciiDoc(String name)
CamelCatalog
dataFormatAsciiDoc
in interface CamelCatalog
name
- the data format namepublic String dataFormatHtmlDoc(String name)
CamelCatalog
dataFormatHtmlDoc
in interface CamelCatalog
name
- the data format namepublic String languageAsciiDoc(String name)
CamelCatalog
languageAsciiDoc
in interface CamelCatalog
name
- the language namepublic String languageHtmlDoc(String name)
CamelCatalog
languageHtmlDoc
in interface CamelCatalog
name
- the language namepublic String otherAsciiDoc(String name)
CamelCatalog
otherAsciiDoc
in interface CamelCatalog
name
- the other (miscellaneous) namepublic String otherHtmlDoc(String name)
CamelCatalog
otherHtmlDoc
in interface CamelCatalog
name
- the other (miscellaneous) namepublic Set<String> findModelLabels()
CamelCatalog
findModelLabels
in interface CamelCatalog
public Set<String> findComponentLabels()
CamelCatalog
findComponentLabels
in interface CamelCatalog
public Set<String> findDataFormatLabels()
CamelCatalog
findDataFormatLabels
in interface CamelCatalog
public Set<String> findLanguageLabels()
CamelCatalog
findLanguageLabels
in interface CamelCatalog
public Set<String> findOtherLabels()
CamelCatalog
findOtherLabels
in interface CamelCatalog
public String archetypeCatalogAsXml()
CamelCatalog
archetypeCatalogAsXml
in interface CamelCatalog
public String springSchemaAsXml()
CamelCatalog
springSchemaAsXml
in interface CamelCatalog
public String blueprintSchemaAsXml()
CamelCatalog
blueprintSchemaAsXml
in interface CamelCatalog
public String listComponentsAsJson()
CamelCatalog
listComponentsAsJson
in interface CamelCatalog
public String listDataFormatsAsJson()
CamelCatalog
listDataFormatsAsJson
in interface CamelCatalog
public String listLanguagesAsJson()
CamelCatalog
listLanguagesAsJson
in interface CamelCatalog
public String listModelsAsJson()
CamelCatalog
listModelsAsJson
in interface CamelCatalog
public String listOthersAsJson()
CamelCatalog
listOthersAsJson
in interface CamelCatalog
public String summaryAsJson()
CamelCatalog
summaryAsJson
in interface CamelCatalog
Apache Camel