|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.support.ServiceSupport
org.apache.camel.impl.DefaultEndpoint
org.apache.camel.impl.ScheduledPollEndpoint
org.apache.camel.impl.DefaultPollingEndpoint
org.apache.camel.impl.ProcessorEndpoint
org.apache.camel.component.ResourceBasedEndpoint
ResourceEndpoint
. Will be removed in Camel 3.0.
@Deprecated public abstract class ResourceBasedEndpoint
A useful base class for endpoints which depend on a resource such as things like Velocity or XQuery based components.
Field Summary | |
---|---|
protected org.slf4j.Logger |
log
Deprecated. |
Fields inherited from class org.apache.camel.support.ServiceSupport |
---|
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending |
Constructor Summary | |
---|---|
|
ResourceBasedEndpoint()
Deprecated. |
|
ResourceBasedEndpoint(String endpointUri,
org.apache.camel.Component component,
String resourceUri,
org.apache.camel.Processor processor)
Deprecated. |
protected |
ResourceBasedEndpoint(String endpointUri,
org.apache.camel.Processor processor,
String resourceUri)
Deprecated. |
Method Summary | |
---|---|
org.springframework.core.io.Resource |
getResource()
Deprecated. |
InputStream |
getResourceAsInputStream()
Deprecated. Gets the resource as an input stream considering the cache flag as well. |
protected InputStream |
getResourceAsInputStreamWithoutCache()
Deprecated. |
org.springframework.core.io.ResourceLoader |
getResourceLoader()
Deprecated. |
String |
getResourceUri()
Deprecated. |
boolean |
isContentCache()
Deprecated. |
void |
setContentCache(boolean contentCache)
Deprecated. Sets whether to use resource content cache or not - default is false. |
void |
setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
Deprecated. |
void |
setResourceUri(String resourceUri)
Deprecated. |
Methods inherited from class org.apache.camel.impl.ProcessorEndpoint |
---|
createPollingConsumer, createProcessor, createProducer, getProcessor, isSingleton, onExchange, setProcessor |
Methods inherited from class org.apache.camel.impl.DefaultPollingEndpoint |
---|
createConsumer |
Methods inherited from class org.apache.camel.impl.ScheduledPollEndpoint |
---|
configureProperties |
Methods inherited from class org.apache.camel.impl.DefaultEndpoint |
---|
configureConsumer, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, doStart, doStop, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, hashCode, isLenientProperties, isSynchronous, setCamelContext, setConsumerProperties, 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 |
Field Detail |
---|
protected final transient org.slf4j.Logger log
Constructor Detail |
---|
public ResourceBasedEndpoint()
public ResourceBasedEndpoint(String endpointUri, org.apache.camel.Component component, String resourceUri, org.apache.camel.Processor processor)
protected ResourceBasedEndpoint(String endpointUri, org.apache.camel.Processor processor, String resourceUri)
Method Detail |
---|
public org.springframework.core.io.Resource getResource()
public InputStream getResourceAsInputStream() throws IOException
IOException
- is thrown if error loading the content of the resource to the local cache bufferprotected InputStream getResourceAsInputStreamWithoutCache() throws IOException
IOException
public boolean isContentCache()
public void setContentCache(boolean contentCache)
getResourceAsInputStream()
public org.springframework.core.io.ResourceLoader getResourceLoader()
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
public String getResourceUri()
public void setResourceUri(String resourceUri)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |