@Metadata(label="rest") public class VerbDefinition extends OptionalIdentifiedDefinition<VerbDefinition>
Constructor and Description |
---|
VerbDefinition() |
Modifier and Type | Method and Description |
---|---|
String |
asVerb() |
RestDefinition |
delete() |
RestDefinition |
delete(String uri) |
RestDefinition |
get() |
RestDefinition |
get(String uri) |
RestBindingMode |
getBindingMode() |
String |
getConsumes() |
Boolean |
getEnableCORS() |
String |
getLabel()
Returns a label to describe this node such as the expression if some kind of expression node
|
String |
getMethod() |
String |
getOutType() |
String |
getProduces() |
RestDefinition |
getRest() |
RouteDefinition |
getRoute() |
Boolean |
getSkipBindingOnErrorCode() |
ToDefinition |
getTo() |
OptionalIdentifiedDefinition<?> |
getToOrRoute() |
String |
getType() |
String |
getUri() |
RestDefinition |
head() |
RestDefinition |
head(String uri) |
RestDefinition |
post() |
RestDefinition |
post(String uri) |
RestDefinition |
put() |
RestDefinition |
put(String uri) |
void |
setBindingMode(RestBindingMode bindingMode)
Sets the binding mode to use.
|
void |
setConsumes(String consumes)
To define the content type what the REST service consumes (accept as input), such as application/xml or application/json.
|
void |
setEnableCORS(Boolean enableCORS)
Whether to enable CORS headers in the HTTP response.
|
void |
setMethod(String method)
The HTTP verb such as GET or POST
|
void |
setOutType(String outType)
Sets the class name to use for binding from POJO to output for the outgoing data
This option will override what may be configured on a parent level
|
void |
setProduces(String produces)
To define the content type what the REST service produces (uses for output), such as application/xml or application/json
This option will override what may be configured on a parent level
|
void |
setRest(RestDefinition rest) |
void |
setRoute(RouteDefinition route) |
void |
setSkipBindingOnErrorCode(Boolean skipBindingOnErrorCode)
Whether to skip binding on output if there is a custom HTTP error code header.
|
void |
setTo(ToDefinition to) |
void |
setToOrRoute(OptionalIdentifiedDefinition<?> toOrRoute)
To route from this REST service to a Camel endpoint, or an inlined route
|
void |
setType(String type)
Sets the class name to use for binding from input to POJO for the incoming data
This option will override what may be configured on a parent level
|
void |
setUri(String uri)
Uri template of this REST service such as /{id}.
|
RestDefinition |
verb(String verb) |
RestDefinition |
verb(String verb,
String uri) |
description, description, getCustomId, getDescription, getDescriptionText, getId, getShortName, hasCustomIdAssigned, id, idOrCreate, setCustomId, setDescription, setId
public VerbDefinition()
public String getLabel()
NamedNode
public String getConsumes()
public void setConsumes(String consumes)
public String getProduces()
public void setProduces(String produces)
public RestBindingMode getBindingMode()
public void setBindingMode(RestBindingMode bindingMode)
public Boolean getSkipBindingOnErrorCode()
public void setSkipBindingOnErrorCode(Boolean skipBindingOnErrorCode)
public Boolean getEnableCORS()
public void setEnableCORS(Boolean enableCORS)
public void setType(String type)
public String getOutType()
public void setOutType(String outType)
public RestDefinition getRest()
public void setRest(RestDefinition rest)
public RouteDefinition getRoute()
public void setRoute(RouteDefinition route)
public ToDefinition getTo()
public void setTo(ToDefinition to)
public OptionalIdentifiedDefinition<?> getToOrRoute()
public void setToOrRoute(OptionalIdentifiedDefinition<?> toOrRoute)
public RestDefinition get()
public RestDefinition get(String uri)
public RestDefinition post()
public RestDefinition post(String uri)
public RestDefinition put()
public RestDefinition put(String uri)
public RestDefinition delete()
public RestDefinition delete(String uri)
public RestDefinition head()
public RestDefinition head(String uri)
public RestDefinition verb(String verb)
public RestDefinition verb(String verb, String uri)
Apache Camel