|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.impl.DefaultEndpoint
org.apache.camel.component.restlet.RestletEndpoint
public class RestletEndpoint
Represents a endpoint
| Constructor Summary | |
|---|---|
RestletEndpoint(RestletComponent component,
String remaining)
|
|
| Method Summary | |
|---|---|
void |
connect(RestletConsumer restletConsumer)
|
Consumer |
createConsumer(Processor processor)
Creates a new Event Driven Consumer which consumes messages from the endpoint using the given processor |
Producer |
createProducer()
Creates a new producer which is used send messages into the endpoint |
void |
disconnect(RestletConsumer restletConsumer)
|
ExchangePattern |
getExchangePattern()
|
HeaderFilterStrategy |
getHeaderFilterStrategy()
Gets the header filter strategy used |
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()
|
String |
getUriPattern()
|
boolean |
isLenientProperties()
Should all properties be known or does the endpoint allow unknown options? lenient = false means that the endpoint should validate that all given options is known and configured properly. |
boolean |
isSingleton()
Whether this class supports being singleton or not. |
void |
setHeaderFilterStrategy(HeaderFilterStrategy headerFilterStrategy)
Sets the header filter strategy to use |
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 |
setUriPattern(String uriPattern)
|
void |
start()
Starts the service |
void |
stop()
Stops the service |
| Methods inherited from class org.apache.camel.impl.DefaultEndpoint |
|---|
configureProperties, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangeType, getId, hashCode, isSynchronous, sanitizeUri, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RestletEndpoint(RestletComponent component,
String remaining)
throws Exception
Exception| Method Detail |
|---|
public boolean isSingleton()
IsSingleton
isSingleton in interface IsSingletonpublic boolean isLenientProperties()
Endpoint
isLenientProperties in interface EndpointisLenientProperties in class DefaultEndpoint
public Consumer createConsumer(Processor processor)
throws Exception
Endpoint
createConsumer in interface Endpointprocessor - the given processor
Exception - can be thrown
public Producer createProducer()
throws Exception
Endpoint
createProducer in interface EndpointException - can be thrown
public void connect(RestletConsumer restletConsumer)
throws Exception
Exception
public void disconnect(RestletConsumer restletConsumer)
throws Exception
Exceptionpublic org.restlet.data.Method getRestletMethod()
public void setRestletMethod(org.restlet.data.Method restletMethod)
public String getProtocol()
public void setProtocol(String protocol)
public String getHost()
public void setHost(String host)
public int getPort()
public void setPort(int port)
public String getUriPattern()
public void setUriPattern(String uriPattern)
public RestletBinding getRestletBinding()
public void setRestletBinding(RestletBinding restletBinding)
public void setHeaderFilterStrategy(HeaderFilterStrategy headerFilterStrategy)
HeaderFilterStrategyAware
setHeaderFilterStrategy in interface HeaderFilterStrategyAwareheaderFilterStrategy - the strategypublic HeaderFilterStrategy getHeaderFilterStrategy()
HeaderFilterStrategyAware
getHeaderFilterStrategy in interface HeaderFilterStrategyAwarepublic void setRestletRealm(Map<String,String> restletRealm)
public Map<String,String> getRestletRealm()
public ExchangePattern getExchangePattern()
getExchangePattern in class DefaultEndpointpublic void setRestletMethods(org.restlet.data.Method[] restletMethods)
public org.restlet.data.Method[] getRestletMethods()
public void setRestletUriPatterns(List<String> restletUriPatterns)
public List<String> getRestletUriPatterns()
public void start()
throws Exception
Service
start in interface Servicestart in class DefaultEndpointException - is thrown if starting failed
public void stop()
throws Exception
Service
stop in interface Servicestop in class DefaultEndpointException - is thrown if stopping failed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||