@Metadata(label="rest") public class RestsDefinition extends OptionalIdentifiedDefinition<RestsDefinition> implements RestContainer
Constructor and Description |
---|
RestsDefinition() |
Modifier and Type | Method and Description |
---|---|
protected RestDefinition |
createRest() |
org.apache.camel.CamelContext |
getCamelContext() |
String |
getLabel() |
List<RestDefinition> |
getRests()
Returns the RESTs
|
String |
getShortName() |
RestDefinition |
rest()
Creates a rest DSL
|
RestDefinition |
rest(RestDefinition rest)
Adds the
RestsDefinition |
RestDefinition |
rest(String uri)
Creates a rest DSL
|
void |
setCamelContext(org.apache.camel.CamelContext camelContext) |
void |
setRests(List<RestDefinition> rests)
The rest services
|
String |
toString() |
description, description, getCustomId, getDescription, getDescriptionText, getId, getParent, hasCustomIdAssigned, id, idOrCreate, setCustomId, setDescription, setId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getReadPropertyPlaceholderOptions, getWritePropertyPlaceholderOptions
public RestsDefinition()
public String getShortName()
getShortName
in interface org.apache.camel.NamedNode
public List<RestDefinition> getRests()
RestContainer
getRests
in interface RestContainer
public void setRests(List<RestDefinition> rests)
setRests
in interface RestContainer
rests
- the RESTspublic org.apache.camel.CamelContext getCamelContext()
public void setCamelContext(org.apache.camel.CamelContext camelContext)
public RestDefinition rest()
public RestDefinition rest(String uri)
uri
- the rest pathpublic RestDefinition rest(RestDefinition rest)
RestsDefinition
protected RestDefinition createRest()
Apache Camel