pub mod bundle;
pub mod component;
pub mod component_context;
pub mod consumer;
pub mod endpoint;
pub mod producer;
pub mod registrar;
pub use bundle::ComponentBundle;
pub use component::Component;
pub use component_context::{ComponentContext, NoOpComponentContext};
pub use consumer::{ConcurrencyModel, Consumer, ConsumerContext, ExchangeEnvelope};
pub use endpoint::{Endpoint, PollingConsumer};
pub use producer::ProducerContext;
pub use registrar::ComponentRegistrar;
pub use camel_api::{
Body, BodyType, BoxProcessor, CamelError, Exchange, Message, RouteAction, RouteStatus,
RuntimeCommand, RuntimeCommandBus, RuntimeCommandResult, RuntimeHandle, RuntimeQuery,
RuntimeQueryBus, RuntimeQueryResult, StreamBody, StreamMetadata, Value,
};
pub use camel_endpoint::{UriComponents, UriConfig, parse_uri};
pub mod uri {
pub fn parse_bool_param(s: &str) -> Result<bool, String> {
match s.to_lowercase().as_str() {
"true" | "1" | "yes" => Ok(true),
"false" | "0" | "no" => Ok(false),
_ => Err(format!("invalid boolean value: '{}'", s)),
}
}
}