org.apache.camel.component.restlet
Class RestletEndpoint
java.lang.Object
org.apache.camel.support.ServiceSupport
org.apache.camel.impl.DefaultEndpoint
org.apache.camel.component.restlet.RestletEndpoint
- 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.spi.HeaderFilterStrategyAware, org.apache.camel.StatefulService, org.apache.camel.SuspendableService
public class RestletEndpoint
- extends org.apache.camel.impl.DefaultEndpoint
- implements org.apache.camel.spi.HeaderFilterStrategyAware
Represents a endpoint
- Version:
Fields inherited from class org.apache.camel.support.ServiceSupport |
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending |
Methods inherited from class org.apache.camel.impl.DefaultEndpoint |
configureConsumer, configurePollingConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getId, getPollingConsumerQueueSize, hashCode, isPollingConsumerBlockWhenFull, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toString |
Methods inherited from class org.apache.camel.support.ServiceSupport |
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend |
Methods inherited from interface org.apache.camel.Service |
start, stop |
RestletEndpoint
public RestletEndpoint(RestletComponent component,
String remaining)
throws Exception
- Throws:
Exception
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interface org.apache.camel.IsSingleton
isLenientProperties
public boolean isLenientProperties()
- Specified by:
isLenientProperties
in interface org.apache.camel.Endpoint
- Overrides:
isLenientProperties
in class org.apache.camel.impl.DefaultEndpoint
createConsumer
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
- Specified by:
createConsumer
in interface org.apache.camel.Endpoint
- Throws:
Exception
createProducer
public org.apache.camel.Producer createProducer()
throws Exception
- Specified by:
createProducer
in interface org.apache.camel.Endpoint
- Throws:
Exception
connect
public void connect(RestletConsumer restletConsumer)
throws Exception
- Throws:
Exception
disconnect
public void disconnect(RestletConsumer restletConsumer)
throws Exception
- Throws:
Exception
getRestletMethod
public org.restlet.data.Method getRestletMethod()
setRestletMethod
public void setRestletMethod(org.restlet.data.Method restletMethod)
getProtocol
public String getProtocol()
setProtocol
public void setProtocol(String protocol)
getHost
public String getHost()
setHost
public void setHost(String host)
getPort
public int getPort()
setPort
public void setPort(int port)
getSocketTimeout
public int getSocketTimeout()
setSocketTimeout
public void setSocketTimeout(int socketTimeout)
getConnectTimeout
public int getConnectTimeout()
setConnectTimeout
public void setConnectTimeout(int connectTimeout)
getUriPattern
public String getUriPattern()
setUriPattern
public void setUriPattern(String uriPattern)
getRestletBinding
public RestletBinding getRestletBinding()
setRestletBinding
public void setRestletBinding(RestletBinding restletBinding)
setHeaderFilterStrategy
public void setHeaderFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy)
- Specified by:
setHeaderFilterStrategy
in interface org.apache.camel.spi.HeaderFilterStrategyAware
getHeaderFilterStrategy
public org.apache.camel.spi.HeaderFilterStrategy getHeaderFilterStrategy()
- Specified by:
getHeaderFilterStrategy
in interface org.apache.camel.spi.HeaderFilterStrategyAware
setRestletRealm
public void setRestletRealm(Map<String,String> restletRealm)
getRestletRealm
public Map<String,String> getRestletRealm()
getExchangePattern
public org.apache.camel.ExchangePattern getExchangePattern()
- Overrides:
getExchangePattern
in class org.apache.camel.impl.DefaultEndpoint
setRestletMethods
public void setRestletMethods(org.restlet.data.Method[] restletMethods)
getRestletMethods
public org.restlet.data.Method[] getRestletMethods()
setRestletUriPatterns
public void setRestletUriPatterns(List<String> restletUriPatterns)
getRestletUriPatterns
public List<String> getRestletUriPatterns()
isThrowExceptionOnFailure
public boolean isThrowExceptionOnFailure()
setThrowExceptionOnFailure
public void setThrowExceptionOnFailure(boolean throwExceptionOnFailure)
updateEndpointUri
protected void updateEndpointUri()
doStart
protected void doStart()
throws Exception
- Overrides:
doStart
in class org.apache.camel.impl.DefaultEndpoint
- Throws:
Exception
doStop
protected void doStop()
throws Exception
- Overrides:
doStop
in class org.apache.camel.impl.DefaultEndpoint
- Throws:
Exception
Apache Camel