|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.model.OptionalIdentifiedDefinition<RestsDefinition>
org.apache.camel.model.rest.RestsDefinition
public class RestsDefinition
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 |
|---|
public RestsDefinition()
| Method Detail |
|---|
public String toString()
toString in class Objectpublic String getShortName()
OptionalIdentifiedDefinition
getShortName in interface NamedNodegetShortName in class OptionalIdentifiedDefinition<RestsDefinition>public String getLabel()
NamedNode
getLabel in interface NamedNodepublic List<RestDefinition> getRests()
RestContainer
getRests in interface RestContainerpublic void setRests(List<RestDefinition> rests)
RestContainer
setRests in interface RestContainerrests - the RESTspublic ModelCamelContext getCamelContext()
public void setCamelContext(ModelCamelContext camelContext)
public RestDefinition rest()
public RestDefinition rest(String uri)
uri - the rest pathpublic RestDefinition rest(RestDefinition rest)
RestsDefinition
protected RestDefinition createRest()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||