org.apache.camel.component.jcr
Class JcrEndpoint

java.lang.Object
  extended by org.apache.camel.impl.DefaultEndpoint
      extended by org.apache.camel.component.jcr.JcrEndpoint
All Implemented Interfaces:
CamelContextAware, Endpoint, IsSingleton

public class JcrEndpoint
extends DefaultEndpoint

A JCR endpoint


Constructor Summary
protected JcrEndpoint(String endpointUri, JcrComponent component)
           
  JcrEndpoint(String endpointUri, String base, javax.jcr.Credentials credentials, javax.jcr.Repository repository)
           
 
Method Summary
 Consumer createConsumer(Processor processor)
          Currently unsupported
 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, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, createScheduledExecutorService, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, getExecutorService, getScheduledExecutorService, hashCode, isLenientProperties, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setExecutorService, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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 Consumer createConsumer(Processor processor)
                        throws Exception
Currently unsupported

Throws:
RuntimeCamelException
Exception

createProducer

public 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


Copyright © 2007-2009 The Apache Software Foundation. All Rights Reserved.