Package org.apache.camel.model.rest
Class RestsDefinition
- java.lang.Object
-
- org.apache.camel.model.OptionalIdentifiedDefinition<RestsDefinition>
-
- org.apache.camel.model.rest.RestsDefinition
-
- All Implemented Interfaces:
org.apache.camel.CamelContextAware
,org.apache.camel.LineNumberAware
,RestContainer
,org.apache.camel.NamedNode
,org.apache.camel.spi.HasId
,org.apache.camel.spi.IdAware
@Metadata(label="rest") public class RestsDefinition extends OptionalIdentifiedDefinition<RestsDefinition> implements RestContainer
A series of rest services defined using the rest-dsl
-
-
Constructor Summary
Constructors Constructor Description RestsDefinition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RestDefinition
createRest()
String
getLabel()
List<RestDefinition>
getRests()
Returns the RESTsString
getShortName()
RestDefinition
rest()
Creates a rest DSLRestDefinition
rest(String uri)
Creates a rest DSLRestDefinition
rest(RestDefinition rest)
Adds theRestsDefinition
void
setRests(List<RestDefinition> rests)
The rest servicesString
toString()
-
Methods inherited from class org.apache.camel.model.OptionalIdentifiedDefinition
description, description, getCamelContext, getCustomId, getDescription, getDescriptionText, getId, getLineNumber, getLocation, getParent, hasCustomIdAssigned, id, idOrCreate, setCamelContext, setCustomId, setDescription, setGeneratedId, setId, setLineNumber, setLocation
-
-
-
-
Method Detail
-
getShortName
public String getShortName()
- Specified by:
getShortName
in interfaceorg.apache.camel.NamedNode
-
getLabel
public String getLabel()
- Specified by:
getLabel
in interfaceorg.apache.camel.NamedNode
-
getRests
public List<RestDefinition> getRests()
Description copied from interface:RestContainer
Returns the RESTs- Specified by:
getRests
in interfaceRestContainer
- Returns:
- the RESTs
-
setRests
public void setRests(List<RestDefinition> rests)
The rest services- Specified by:
setRests
in interfaceRestContainer
- Parameters:
rests
- the RESTs
-
rest
public RestDefinition rest()
Creates a rest DSL
-
rest
public RestDefinition rest(String uri)
Creates a rest DSL- Parameters:
uri
- the rest path
-
rest
public RestDefinition rest(RestDefinition rest)
Adds theRestsDefinition
-
createRest
protected RestDefinition createRest()
-
-