@Path(value="/ref") @ApplicationScoped public class RefResource extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) org.apache.camel.CamelContext |
camelContext |
(package private) org.apache.camel.ProducerTemplate |
producerTemplate |
| Constructor and Description |
|---|
RefResource() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.Endpoint |
myEndpoint() |
org.apache.camel.Expression |
myExpression() |
org.apache.camel.RoutesBuilder |
myRoute() |
String |
post(String message) |
@Inject org.apache.camel.CamelContext camelContext
@Inject org.apache.camel.ProducerTemplate producerTemplate
@Path(value="/post") @POST @Consumes(value="text/plain") @Produces(value="text/plain") public String post(String message)
@Singleton @Named(value="my-endpoint") @Produces public org.apache.camel.Endpoint myEndpoint()
@Singleton @Named(value="my-expression") @Produces public org.apache.camel.Expression myExpression()
@Singleton @Named(value="my-route") @Produces public org.apache.camel.RoutesBuilder myRoute()
Copyright © 2019–2020 The Apache Software Foundation. All rights reserved.