Class 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 Details

    • RestsDefinition

      public RestsDefinition()
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getShortName

      public String getShortName()
      Specified by:
      getShortName in interface org.apache.camel.NamedNode
    • getLabel

      public String getLabel()
      Specified by:
      getLabel in interface org.apache.camel.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)
      The rest services
      Specified by:
      setRests in interface RestContainer
      Parameters:
      rests - the RESTs
    • getResource

      public org.apache.camel.spi.Resource getResource()
      Specified by:
      getResource in interface org.apache.camel.spi.ResourceAware
    • setResource

      public void setResource(org.apache.camel.spi.Resource resource)
      Specified by:
      setResource in interface org.apache.camel.spi.ResourceAware
    • 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)
    • createRest

      protected RestDefinition createRest()