@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)
Sets the RESTs to use
|
String |
toString() |
description, description, getCustomId, getDescription, getDescriptionText, getId, getShortName, hasCustomIdAssigned, id, idOrCreate, setCustomId, setDescription, setId
public RestsDefinition()
public String getLabel()
NamedNode
public List<RestDefinition> getRests()
RestContainer
getRests
in interface RestContainer
public void setRests(List<RestDefinition> rests)
RestContainer
setRests
in interface RestContainer
rests
- 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)
RestsDefinition
protected RestDefinition createRest()
Apache Camel