org.apache.camel.component.restlet
Class RestletEndpoint

java.lang.Object
  extended by org.apache.camel.support.ServiceSupport
      extended by org.apache.camel.impl.DefaultEndpoint
          extended by 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:

Field Summary
 
Fields inherited from class org.apache.camel.support.ServiceSupport
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
 
Constructor Summary
RestletEndpoint(RestletComponent component, String remaining)
           
 
Method Summary
 void connect(RestletConsumer restletConsumer)
           
 org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
           
 org.apache.camel.Producer createProducer()
           
 void disconnect(RestletConsumer restletConsumer)
           
protected  void doStart()
           
protected  void doStop()
           
 int getConnectTimeout()
           
 org.apache.camel.ExchangePattern getExchangePattern()
           
 org.apache.camel.spi.HeaderFilterStrategy getHeaderFilterStrategy()
           
 String getHost()
           
 int getPort()
           
 String getProtocol()
           
 RestletBinding getRestletBinding()
           
 org.restlet.data.Method getRestletMethod()
           
 org.restlet.data.Method[] getRestletMethods()
           
 Map<String,String> getRestletRealm()
           
 List<String> getRestletUriPatterns()
           
 int getSocketTimeout()
           
 String getUriPattern()
           
 boolean isLenientProperties()
           
 boolean isSingleton()
           
 boolean isThrowExceptionOnFailure()
           
 void setConnectTimeout(int connectTimeout)
           
 void setHeaderFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy)
           
 void setHost(String host)
           
 void setPort(int port)
           
 void setProtocol(String protocol)
           
 void setRestletBinding(RestletBinding restletBinding)
           
 void setRestletMethod(org.restlet.data.Method restletMethod)
           
 void setRestletMethods(org.restlet.data.Method[] restletMethods)
           
 void setRestletRealm(Map<String,String> restletRealm)
           
 void setRestletUriPatterns(List<String> restletUriPatterns)
           
 void setSocketTimeout(int socketTimeout)
           
 void setThrowExceptionOnFailure(boolean throwExceptionOnFailure)
           
 void setUriPattern(String uriPattern)
           
protected  void updateEndpointUri()
           
 
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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Constructor Detail

RestletEndpoint

public RestletEndpoint(RestletComponent component,
                       String remaining)
                throws Exception
Throws:
Exception
Method Detail

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