camel docs java
This commit is contained in:
parent
016eaffbfb
commit
2472e46263
39 changed files with 1479 additions and 15 deletions
18
akka-docs/java/code/docs/camel/CustomRouteBuilder.java
Normal file
18
akka-docs/java/code/docs/camel/CustomRouteBuilder.java
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
package docs.camel;
|
||||
//#CustomRoute
|
||||
import akka.actor.ActorRef;
|
||||
import akka.camel.internal.component.CamelPath;
|
||||
import org.apache.camel.builder.RouteBuilder;
|
||||
|
||||
public class CustomRouteBuilder extends RouteBuilder{
|
||||
private ActorRef responder;
|
||||
|
||||
public CustomRouteBuilder(ActorRef responder) {
|
||||
this.responder = responder;
|
||||
}
|
||||
|
||||
public void configure() throws Exception {
|
||||
from("jetty:http://localhost:8877/camel/custom").to(CamelPath.toCamelUri(responder));
|
||||
}
|
||||
}
|
||||
//#CustomRoute
|
||||
Loading…
Add table
Add a link
Reference in a new issue