Package | Description |
---|---|
org.apache.camel |
The core Camel API.
|
org.apache.camel.builder | |
org.apache.camel.impl |
Default implementation classes for Camel Core
|
org.apache.camel.model |
The JAXB POJOs for the
XML Configuration
of the routing rules.
|
org.apache.camel.model.rest |
The JAXB POJOs for the REST DSL
|
Modifier and Type | Method and Description |
---|---|
List<RestDefinition> |
CamelContext.getRestDefinitions()
Returns a list of the current REST definitions
|
Modifier and Type | Method and Description |
---|---|
void |
CamelContext.addRestDefinitions(Collection<RestDefinition> restDefinitions)
Adds a collection of rest definitions to the context
|
Modifier and Type | Method and Description |
---|---|
RestDefinition |
RouteBuilder.rest()
Creates a new REST service
|
RestDefinition |
RouteBuilder.rest(String path)
Creates a new REST service
|
Modifier and Type | Method and Description |
---|---|
protected void |
RouteBuilder.configureRest(RestDefinition rest) |
Modifier and Type | Method and Description |
---|---|
List<RestDefinition> |
DefaultCamelContext.getRestDefinitions() |
Modifier and Type | Method and Description |
---|---|
void |
DefaultCamelContext.addRestDefinitions(Collection<RestDefinition> restDefinitions) |
Modifier and Type | Method and Description |
---|---|
RestDefinition |
ProcessorDefinition.endRest()
Ends the current block and returns back to the
rest() DSL. |
RestDefinition |
RouteDefinition.getRestDefinition() |
Modifier and Type | Method and Description |
---|---|
List<RestDefinition> |
ModelCamelContext.getRestDefinitions()
Returns a list of the current REST definitions
|
List<RestDefinition> |
RestContextRefDefinition.lookupRests(ModelCamelContext camelContext) |
static List<RestDefinition> |
RestContextRefDefinitionHelper.lookupRests(ModelCamelContext camelContext,
String ref)
Lookup the rests from the
RestContextRefDefinition . |
Modifier and Type | Method and Description |
---|---|
void |
RouteDefinition.setRestDefinition(RestDefinition restDefinition) |
Modifier and Type | Method and Description |
---|---|
void |
ModelCamelContext.addRestDefinitions(Collection<RestDefinition> restDefinitions)
Adds a collection of rest definitions to the context
|
Modifier and Type | Method and Description |
---|---|
RestDefinition |
RestDefinition.apiDocs(Boolean apiDocs)
Include or exclude the current Rest Definition in API documentation.
|
RestDefinition |
RestDefinition.bindingMode(RestBindingMode mode) |
RestDefinition |
RestDefinition.clientRequestValidation(boolean clientRequestValidation) |
RestDefinition |
RestDefinition.consumes(String mediaType) |
protected RestDefinition |
RestsDefinition.createRest() |
RestDefinition |
VerbDefinition.delete() |
RestDefinition |
RestDefinition.delete() |
RestDefinition |
VerbDefinition.delete(String uri) |
RestDefinition |
RestDefinition.delete(String uri) |
RestDefinition |
RestDefinition.description(String text) |
RestDefinition |
RestDefinition.description(String id,
String text,
String lang) |
RestDefinition |
RestDefinition.enableCORS(boolean enableCORS) |
RestDefinition |
RestSecuritiesDefinition.end() |
RestDefinition |
RestOperationParamDefinition.endParam()
Ends the configuration of this parameter
|
RestDefinition |
RestOperationResponseMsgDefinition.endResponseMessage()
Ends the configuration of this response message
|
RestDefinition |
RestSecurityDefinition.endSecurityDefinition()
Ends the configuration of this security
|
RestDefinition |
VerbDefinition.get() |
RestDefinition |
RestDefinition.get() |
RestDefinition |
VerbDefinition.get(String uri) |
RestDefinition |
RestDefinition.get(String uri) |
RestDefinition |
VerbDefinition.getRest() |
RestDefinition |
VerbDefinition.head() |
RestDefinition |
RestDefinition.head() |
RestDefinition |
VerbDefinition.head(String uri) |
RestDefinition |
RestDefinition.head(String uri) |
RestDefinition |
RestDefinition.id(String id) |
RestDefinition |
RestDefinition.options()
Deprecated.
|
RestDefinition |
RestDefinition.options(String uri)
Deprecated.
|
RestDefinition |
RestDefinition.outType(Class<?> classType) |
RestDefinition |
RestDefinition.outTypeList(Class<?> classType)
Deprecated.
as of 2.19.0. Replaced wtih
outType(Class) with [] appended to canonical class name
, e.g. outType(MyClass[].class |
RestDefinition |
RestDefinition.param(RestOperationParamDefinition param) |
RestDefinition |
RestDefinition.params(List<RestOperationParamDefinition> params) |
RestDefinition |
RestDefinition.patch() |
RestDefinition |
RestDefinition.patch(String uri) |
RestDefinition |
RestDefinition.path(String path)
To set the base path of this REST service
|
RestDefinition |
VerbDefinition.post() |
RestDefinition |
RestDefinition.post() |
RestDefinition |
VerbDefinition.post(String uri) |
RestDefinition |
RestDefinition.post(String uri) |
RestDefinition |
RestDefinition.produces(String mediaType) |
RestDefinition |
VerbDefinition.put() |
RestDefinition |
RestDefinition.put() |
RestDefinition |
VerbDefinition.put(String uri) |
RestDefinition |
RestDefinition.put(String uri) |
RestDefinition |
RestDefinition.responseMessage(RestOperationResponseMsgDefinition msg) |
RestDefinition |
RestDefinition.responseMessages(List<RestOperationResponseMsgDefinition> msgs) |
RestDefinition |
RestsDefinition.rest()
Creates a rest DSL
|
RestDefinition |
RestsDefinition.rest(RestDefinition rest)
Adds the
RestsDefinition |
RestDefinition |
RestsDefinition.rest(String uri)
Creates a rest DSL
|
RestDefinition |
RestDefinition.security(String key)
Sets the security setting for this verb.
|
RestDefinition |
RestDefinition.security(String key,
String scopes)
Sets the security setting for this verb.
|
RestDefinition |
RestDefinition.skipBindingOnErrorCode(boolean skipBindingOnErrorCode) |
RestDefinition |
RestDefinition.tag(String tag)
To set the tag to use of this REST service
|
RestDefinition |
RestDefinition.to(String uri)
Routes directly to the given static endpoint.
|
RestDefinition |
RestDefinition.toD(String uri)
Routes directly to the given dynamic endpoint.
|
RestDefinition |
RestDefinition.type(Class<?> classType) |
RestDefinition |
RestDefinition.typeList(Class<?> classType)
Deprecated.
as of 2.19.0. Replaced wtih
type(Class) with [] appended to canonical class name
, e.g. type(MyClass[].class |
RestDefinition |
VerbDefinition.verb(String verb) |
RestDefinition |
RestDefinition.verb(String verb) |
RestDefinition |
VerbDefinition.verb(String verb,
String uri) |
RestDefinition |
RestDefinition.verb(String verb,
String uri) |
Modifier and Type | Method and Description |
---|---|
List<RestDefinition> |
RestContainer.getRests()
Returns the RESTs
|
List<RestDefinition> |
RestsDefinition.getRests() |
Modifier and Type | Method and Description |
---|---|
RestDefinition |
RestsDefinition.rest(RestDefinition rest)
Adds the
RestsDefinition |
void |
VerbDefinition.setRest(RestDefinition rest) |
Modifier and Type | Method and Description |
---|---|
void |
RestContainer.setRests(List<RestDefinition> rests)
Sets the RESTs to use
|
void |
RestsDefinition.setRests(List<RestDefinition> rests)
The rest services
|
Constructor and Description |
---|
RestSecuritiesDefinition(RestDefinition rest) |
RestSecurityApiKey(RestDefinition rest) |
RestSecurityBasicAuth(RestDefinition rest) |
RestSecurityDefinition(RestDefinition rest) |
RestSecurityOAuth2(RestDefinition rest) |
Apache Camel