camel_component_api/
lib.rs1pub mod bundle;
11pub mod component;
12pub mod component_context;
13pub mod consumer;
14pub mod endpoint;
15pub mod producer;
16pub mod registrar;
17
18pub use bundle::ComponentBundle;
19pub use component::Component;
20pub use component_context::{ComponentContext, NoOpComponentContext};
21pub use consumer::{ConcurrencyModel, Consumer, ConsumerContext, ExchangeEnvelope};
22pub use endpoint::{Endpoint, PollingConsumer};
23pub use producer::ProducerContext;
24pub use registrar::ComponentRegistrar;
25
26pub use camel_api::{
28 Body, BodyType, BoxProcessor, CamelError, Exchange, Message, RouteAction, RouteStatus,
29 RuntimeCommand, RuntimeCommandBus, RuntimeCommandResult, RuntimeHandle, RuntimeQuery,
30 RuntimeQueryBus, RuntimeQueryResult, StreamBody, StreamMetadata, Value,
31};
32
33pub use camel_endpoint::{UriComponents, UriConfig, parse_uri};
35pub mod uri {
38 pub fn parse_bool_param(s: &str) -> Result<bool, String> {
41 match s.to_lowercase().as_str() {
42 "true" | "1" | "yes" => Ok(true),
43 "false" | "0" | "no" => Ok(false),
44 _ => Err(format!("invalid boolean value: '{}'", s)),
45 }
46 }
47}