org.apache.camel.model.rest
Class RestsDefinition

java.lang.Object
  extended by org.apache.camel.model.OptionalIdentifiedDefinition<RestsDefinition>
      extended by org.apache.camel.model.rest.RestsDefinition
All Implemented Interfaces:
RestContainer, NamedNode

public class RestsDefinition
extends OptionalIdentifiedDefinition<RestsDefinition>
implements RestContainer

Represents a collection of REST's


Constructor Summary
RestsDefinition()
           
 
Method Summary
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
 String getShortName()
          Returns a short name for this node which can be useful for ID generation or referring to related resources like images
 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()
           
 
Methods inherited from class org.apache.camel.model.OptionalIdentifiedDefinition
description, description, getDescription, getDescriptionText, getId, hasCustomIdAssigned, id, idOrCreate, isCustomId, setCustomId, setDescription, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RestsDefinition

public RestsDefinition()
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getShortName

public String getShortName()
Description copied from class: OptionalIdentifiedDefinition
Returns a short name for this node which can be useful for ID generation or referring to related resources like images

Specified by:
getShortName in interface NamedNode
Overrides:
getShortName in class OptionalIdentifiedDefinition<RestsDefinition>
Returns:
defaults to "node" but derived nodes should overload this to provide a unique name

getLabel

public String getLabel()
Description copied from interface: NamedNode
Returns a label to describe this node such as the expression if some kind of expression node

Specified by:
getLabel in interface NamedNode

getRests

public List<RestDefinition> getRests()
Description copied from interface: RestContainer
Returns the RESTs

Specified by:
getRests in interface RestContainer
Returns:
the RESTs

setRests

public void setRests(List<RestDefinition> rests)
Description copied from interface: RestContainer
Sets the RESTs to use

Specified by:
setRests in interface RestContainer
Parameters:
rests - the RESTs

getCamelContext

public ModelCamelContext getCamelContext()

setCamelContext

public void setCamelContext(ModelCamelContext camelContext)

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 the RestsDefinition


createRest

protected RestDefinition createRest()


Apache Camel