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, validateTimePatternclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasEndpointUri, asEndpointUri, asEndpointUriXml, asEndpointUriXml, endpointComponentName, endpointLenientProperties, endpointProperties, getJSonSchemaResolver, getSuggestionStrategy, setJSonSchemaResolver, setSuggestionStrategy, validateEndpointProperties, validateEndpointProperties, validateEndpointProperties, validateLanguageExpression, validateLanguagePredicate, validateSimpleExpression, validateSimpleExpression, validateSimplePredicate, validateSimplePredicate, validateTimePatternpublic DefaultCamelCatalog()
CamelCatalog without caching enabled.public DefaultCamelCatalog(boolean caching)
CamelCatalogcaching - whether to use cachepublic RuntimeProvider getRuntimeProvider()
CamelCatalogRuntimeProvider in use.getRuntimeProvider in interface CamelCatalogpublic void setRuntimeProvider(RuntimeProvider runtimeProvider)
CamelCatalogRuntimeProvider that amends the catalog to only include information that is supported on the runtime.setRuntimeProvider in interface CamelCatalogpublic void enableCache()
CamelCatalogenableCache in interface CamelCatalogpublic boolean isCaching()
CamelCatalogisCaching in interface CamelCatalogpublic void setVersionManager(VersionManager versionManager)
CamelCatalogVersionManager to load other versions of Camel the catalog should use.setVersionManager in interface CamelCatalogpublic VersionManager getVersionManager()
CamelCatalogVersionManager in usegetVersionManager in interface CamelCatalogpublic void addComponent(String name, String className)
CamelCatalogaddComponent in interface CamelCatalogname - the component nameclassName - the fully qualified class name for the component classpublic void addComponent(String name, String className, String jsonSchema)
CamelCatalogaddComponent in interface CamelCatalogname - the component nameclassName - the fully qualified class name for the component classjsonSchema - the component JSon schemapublic void addDataFormat(String name, String className)
CamelCatalogaddDataFormat in interface CamelCatalogname - the data format nameclassName - the fully qualified class name for the data format classpublic void addDataFormat(String name, String className, String jsonSchema)
CamelCatalogaddDataFormat in interface CamelCatalogname - the data format nameclassName - the fully qualified class name for the data format classjsonSchema - the data format JSon schemapublic String getCatalogVersion()
CamelCataloggetCatalogVersion in interface CamelCatalogpublic boolean loadVersion(String version)
CamelCatalogCamelCatalog.loadVersion(String).loadVersion in interface CamelCatalogversion - the Camel version such as 2.17.1public String getLoadedVersion()
CamelCataloggetLoadedVersion in interface CamelCatalogpublic String getRuntimeProviderLoadedVersion()
CamelCataloggetRuntimeProviderLoadedVersion in interface CamelCatalogpublic boolean loadRuntimeProviderVersion(String groupId, String artifactId, String version)
CamelCatalogCamelCatalog.loadVersion(String).loadRuntimeProviderVersion in interface CamelCataloggroupId - the runtime provider Maven groupIdartifactId - the runtime provider Maven artifactIdversion - the runtime provider Maven versionpublic List<String> findComponentNames()
CamelCatalogfindComponentNames in interface CamelCatalogpublic List<String> findDataFormatNames()
CamelCatalogfindDataFormatNames in interface CamelCatalogpublic List<String> findLanguageNames()
CamelCatalogfindLanguageNames in interface CamelCatalogpublic List<String> findModelNames()
CamelCatalogfindModelNames in interface CamelCatalogpublic List<String> findOtherNames()
CamelCatalogfindOtherNames in interface CamelCatalogpublic List<String> findModelNames(String filter)
CamelCatalogfindModelNames in interface CamelCatalogpublic List<String> findComponentNames(String filter)
CamelCatalogfindComponentNames in interface CamelCatalogpublic List<String> findDataFormatNames(String filter)
CamelCatalogfindDataFormatNames in interface CamelCatalogpublic List<String> findLanguageNames(String filter)
CamelCatalogfindLanguageNames in interface CamelCatalogpublic List<String> findOtherNames(String filter)
CamelCatalogfindOtherNames in interface CamelCatalogpublic String modelJSonSchema(String name)
CamelCatalogmodelJSonSchema in interface CamelCatalogname - the model namepublic String componentJSonSchema(String name)
CamelCatalogcomponentJSonSchema in interface CamelCatalogname - the component namepublic String dataFormatJSonSchema(String name)
CamelCatalogdataFormatJSonSchema in interface CamelCatalogname - the data format namepublic String languageJSonSchema(String name)
CamelCataloglanguageJSonSchema in interface CamelCatalogname - the language namepublic String otherJSonSchema(String name)
CamelCatalogotherJSonSchema in interface CamelCatalogname - the other (miscellaneous) namepublic String componentAsciiDoc(String name)
CamelCatalogcomponentAsciiDoc in interface CamelCatalogname - the component namepublic String componentHtmlDoc(String name)
CamelCatalogcomponentHtmlDoc in interface CamelCatalogname - the component namepublic String dataFormatAsciiDoc(String name)
CamelCatalogdataFormatAsciiDoc in interface CamelCatalogname - the data format namepublic String dataFormatHtmlDoc(String name)
CamelCatalogdataFormatHtmlDoc in interface CamelCatalogname - the data format namepublic String languageAsciiDoc(String name)
CamelCataloglanguageAsciiDoc in interface CamelCatalogname - the language namepublic String languageHtmlDoc(String name)
CamelCataloglanguageHtmlDoc in interface CamelCatalogname - the language namepublic String otherAsciiDoc(String name)
CamelCatalogotherAsciiDoc in interface CamelCatalogname - the other (miscellaneous) namepublic String otherHtmlDoc(String name)
CamelCatalogotherHtmlDoc in interface CamelCatalogname - the other (miscellaneous) namepublic Set<String> findModelLabels()
CamelCatalogfindModelLabels in interface CamelCatalogpublic Set<String> findComponentLabels()
CamelCatalogfindComponentLabels in interface CamelCatalogpublic Set<String> findDataFormatLabels()
CamelCatalogfindDataFormatLabels in interface CamelCatalogpublic Set<String> findLanguageLabels()
CamelCatalogfindLanguageLabels in interface CamelCatalogpublic Set<String> findOtherLabels()
CamelCatalogfindOtherLabels in interface CamelCatalogpublic String archetypeCatalogAsXml()
CamelCatalogarchetypeCatalogAsXml in interface CamelCatalogpublic String springSchemaAsXml()
CamelCatalogspringSchemaAsXml in interface CamelCatalogpublic String blueprintSchemaAsXml()
CamelCatalogblueprintSchemaAsXml in interface CamelCatalogpublic String listComponentsAsJson()
CamelCataloglistComponentsAsJson in interface CamelCatalogpublic String listDataFormatsAsJson()
CamelCataloglistDataFormatsAsJson in interface CamelCatalogpublic String listLanguagesAsJson()
CamelCataloglistLanguagesAsJson in interface CamelCatalogpublic String listModelsAsJson()
CamelCataloglistModelsAsJson in interface CamelCatalogpublic String listOthersAsJson()
CamelCataloglistOthersAsJson in interface CamelCatalogpublic String summaryAsJson()
CamelCatalogsummaryAsJson in interface CamelCatalogApache Camel