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.HasCamelContext,org.apache.camel.spi.HasId,org.apache.camel.spi.IdAware,org.apache.camel.spi.ResourceAware
@Metadata(label="rest")
public class RestsDefinition
extends OptionalIdentifiedDefinition<RestsDefinition>
implements RestContainer, org.apache.camel.spi.ResourceAware
A series of rest services defined using the rest-dsl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected RestDefinitiongetLabel()org.apache.camel.spi.ResourcegetRests()Returns the RESTsrest()Creates a rest DSLCreates a rest DSLrest(RestDefinition rest) Adds theRestsDefinitionvoidsetResource(org.apache.camel.spi.Resource resource) voidsetRests(List<RestDefinition> rests) The rest servicestoString()Methods inherited from class org.apache.camel.model.OptionalIdentifiedDefinition
description, getCamelContext, getCustomId, getDescription, getDescriptionText, getId, getLineNumber, getLocation, getNodePrefixId, getParent, hasCustomIdAssigned, id, idOrCreate, setCamelContext, setCustomId, setDescription, setGeneratedId, setId, setLineNumber, setLocationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.camel.NamedNode
acceptDebugger
-
Constructor Details
-
RestsDefinition
public RestsDefinition()
-
-
Method Details
-
toString
-
getShortName
- Specified by:
getShortNamein interfaceorg.apache.camel.NamedNode
-
getLabel
- Specified by:
getLabelin interfaceorg.apache.camel.NamedNode
-
getRests
Description copied from interface:RestContainerReturns the RESTs- Specified by:
getRestsin interfaceRestContainer- Returns:
- the RESTs
-
setRests
The rest services- Specified by:
setRestsin interfaceRestContainer- Parameters:
rests- the RESTs
-
getResource
public org.apache.camel.spi.Resource getResource()- Specified by:
getResourcein interfaceorg.apache.camel.spi.ResourceAware
-
setResource
public void setResource(org.apache.camel.spi.Resource resource) - Specified by:
setResourcein interfaceorg.apache.camel.spi.ResourceAware
-
rest
Creates a rest DSL -
rest
Creates a rest DSL- Parameters:
uri- the rest path
-
rest
Adds theRestsDefinition -
createRest
-