@Metadata(label="rest") public class RestsDefinition extends OptionalIdentifiedDefinition<RestsDefinition> implements RestContainer
| Constructor and Description |
|---|
RestsDefinition() |
| Modifier and Type | Method and Description |
|---|---|
protected RestDefinition |
createRest() |
ModelCamelContext |
getCamelContext() |
String |
getLabel()
Returns a label to describe this node such as the expression if some kind of expression node
|
List<RestDefinition> |
getRests()
Returns the RESTs
|
RestDefinition |
rest()
Creates a rest DSL
|
RestDefinition |
rest(RestDefinition rest)
Adds the
RestsDefinition |
RestDefinition |
rest(String uri)
Creates a rest DSL
|
void |
setCamelContext(ModelCamelContext camelContext) |
void |
setRests(List<RestDefinition> rests)
The rest services
|
String |
toString() |
description, description, getCustomId, getDescription, getDescriptionText, getId, getShortName, hasCustomIdAssigned, id, idOrCreate, setCustomId, setDescription, setIdpublic RestsDefinition()
public String getLabel()
NamedNodepublic List<RestDefinition> getRests()
RestContainergetRests in interface RestContainerpublic void setRests(List<RestDefinition> rests)
setRests in interface RestContainerrests - the RESTspublic ModelCamelContext getCamelContext()
public void setCamelContext(ModelCamelContext camelContext)
public RestDefinition rest()
public RestDefinition rest(String uri)
uri - the rest pathpublic RestDefinition rest(RestDefinition rest)
RestsDefinitionprotected RestDefinition createRest()
Apache Camel