org.apache.camel.component.jcr
Class JcrEndpoint

java.lang.Object
  extended by org.apache.camel.support.ServiceSupport
      extended by org.apache.camel.impl.DefaultEndpoint
          extended by org.apache.camel.component.jcr.JcrEndpoint
All Implemented Interfaces:
org.apache.camel.CamelContextAware, org.apache.camel.Endpoint, org.apache.camel.IsSingleton, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.HasId, org.apache.camel.StatefulService, org.apache.camel.SuspendableService

public class JcrEndpoint
extends org.apache.camel.impl.DefaultEndpoint

A JCR endpoint


Field Summary
 
Fields inherited from class org.apache.camel.support.ServiceSupport
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
 
Constructor Summary
protected JcrEndpoint(String endpointUri, JcrComponent component)
           
  JcrEndpoint(String endpointUri, String base, javax.jcr.Credentials credentials, javax.jcr.Repository repository)
           
 
Method Summary
 org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
          Currently unsupported
 org.apache.camel.Producer createProducer()
           
protected  String getBase()
          Get the base node when accessing the reposititory
protected  javax.jcr.Credentials getCredentials()
          Get the Credentials for establishing the JCR repository connection
protected  javax.jcr.Repository getRepository()
          Get the Repository
 boolean isSingleton()
           
 
Methods inherited from class org.apache.camel.impl.DefaultEndpoint
configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getComponent, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, hashCode, isLenientProperties, isSynchronous, setCamelContext, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, toString
 
Methods inherited from class org.apache.camel.support.ServiceSupport
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, resume, shutdown, start, stop, suspend
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Constructor Detail

JcrEndpoint

protected JcrEndpoint(String endpointUri,
                      JcrComponent component)

JcrEndpoint

public JcrEndpoint(String endpointUri,
                   String base,
                   javax.jcr.Credentials credentials,
                   javax.jcr.Repository repository)
Method Detail

createConsumer

public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
                                         throws Exception
Currently unsupported

Throws:
org.apache.camel.RuntimeCamelException
Exception

createProducer

public org.apache.camel.Producer createProducer()
                                         throws Exception
Throws:
Exception

isSingleton

public boolean isSingleton()

getRepository

protected javax.jcr.Repository getRepository()
Get the Repository

Returns:
the repository

getCredentials

protected javax.jcr.Credentials getCredentials()
Get the Credentials for establishing the JCR repository connection

Returns:
the credentials

getBase

protected String getBase()
Get the base node when accessing the reposititory

Returns:
the base node


Apache CAMEL