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 RestDefinitioncreateRest()StringgetLabel()List<RestDefinition>getRests()Returns the RESTsStringgetShortName()RestDefinitionrest()Creates a rest DSLRestDefinitionrest(String uri)Creates a rest DSLRestDefinitionrest(RestDefinition rest)Adds theRestsDefinitionvoidsetRests(List<RestDefinition> rests)The rest servicesStringtoString()-
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:
getShortNamein interfaceorg.apache.camel.NamedNode
-
getLabel
public String getLabel()
- Specified by:
getLabelin interfaceorg.apache.camel.NamedNode
-
getRests
public List<RestDefinition> getRests()
Description copied from interface:RestContainerReturns the RESTs- Specified by:
getRestsin interfaceRestContainer- Returns:
- the RESTs
-
setRests
public void setRests(List<RestDefinition> rests)
The rest services- Specified by:
setRestsin 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()
-
-