@UriEndpoint(scheme="rest") public class RestEndpoint extends DefaultEndpoint
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
Constructor and Description |
---|
RestEndpoint(String endpointUri,
RestComponent component) |
Modifier and Type | Method and Description |
---|---|
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
|
RestComponent |
getComponent()
Returns the component that created this endpoint.
|
String |
getComponentName() |
String |
getConsumes() |
String |
getDescription() |
String |
getInType() |
String |
getMethod() |
String |
getOutType() |
Map<String,Object> |
getParameters() |
String |
getPath() |
String |
getProduces() |
String |
getRouteId() |
String |
getUriTemplate() |
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 |
setComponentName(String componentName) |
void |
setConsumes(String consumes) |
void |
setDescription(String description) |
void |
setInType(String inType) |
void |
setMethod(String method) |
void |
setOutType(String outType) |
void |
setParameters(Map<String,Object> parameters) |
void |
setPath(String path) |
void |
setProduces(String produces) |
void |
setRouteId(String routeId) |
void |
setUriTemplate(String uriTemplate) |
configureConsumer, configurePollingConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, getPollingConsumerQueueSize, hashCode, isPollingConsumerBlockWhenFull, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toString
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend
public RestEndpoint(String endpointUri, RestComponent component)
public RestComponent getComponent()
DefaultEndpoint
getComponent
in class DefaultEndpoint
public String getUriTemplate()
public void setUriTemplate(String uriTemplate)
public String getConsumes()
public void setConsumes(String consumes)
public String getProduces()
public void setProduces(String produces)
public String getComponentName()
public void setComponentName(String componentName)
public String getOutType()
public void setOutType(String outType)
public String getRouteId()
public void setRouteId(String routeId)
public String getDescription()
public void setDescription(String description)
public Map<String,Object> getParameters()
public void setParameters(Map<String,Object> parameters)
public Producer createProducer() throws Exception
Endpoint
Exception
- can be thrownpublic Consumer createConsumer(Processor processor) throws Exception
Endpoint
processor
- the given processorException
- can be thrownpublic boolean isSingleton()
IsSingleton
public boolean isLenientProperties()
Endpoint
isLenientProperties
in interface Endpoint
isLenientProperties
in class DefaultEndpoint
Apache Camel