org.apache.camel.web.resources
Class CamelContextResource

java.lang.Object
  extended by org.apache.camel.web.resources.CamelContextResource

@Singleton
public class CamelContextResource
extends Object

The root Camel resource from which all other resources can be navigated such as for endpoints or routes

Version:

Constructor Summary
CamelContextResource(CamelContext camelContext)
           
 
Method Summary
 void close()
           
 Camel getCamel()
          Returns the XML or JSON representation of the CamelContext
 CamelContext getCamelContext()
           
 ComponentsResource getComponents()
          Returns the active components
 ConvertersResource getConvertersResource()
          Returns the active type converters
 EndpointsResource getEndpointsResource()
          Returns the active endpoints
 LanguagesResource getLanguages()
          Returns the active languages
 String getName()
           
 RoutesResource getRoutesResource()
          Returns the active routes
 Map<Object,Object> getSystemProperties()
          Returns the system properties
 ProducerTemplate getTemplate()
           
 String getVersion()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CamelContextResource

public CamelContextResource(@InjectParam
                            CamelContext camelContext)
                     throws Exception
Throws:
Exception
Method Detail

getCamelContext

public CamelContext getCamelContext()

getTemplate

public ProducerTemplate getTemplate()

getName

public String getName()

getVersion

public String getVersion()

close

@PreDestroy
public void close()
           throws Exception
Throws:
Exception

getSystemProperties

public Map<Object,Object> getSystemProperties()
Returns the system properties


getCamel

public Camel getCamel()
Returns the XML or JSON representation of the CamelContext


getComponents

public ComponentsResource getComponents()
Returns the active components


getConvertersResource

public ConvertersResource getConvertersResource()
Returns the active type converters


getEndpointsResource

public EndpointsResource getEndpointsResource()
Returns the active endpoints


getLanguages

public LanguagesResource getLanguages()
Returns the active languages


getRoutesResource

public RoutesResource getRoutesResource()
Returns the active routes



Apache CAMEL