pub mod bundle;
pub mod component;
pub mod component_context;
pub mod consumer;
pub mod endpoint;
pub mod health_registry;
pub mod runtime_observability;
pub mod network_retry;
pub mod producer;
pub mod registrar;
#[cfg(any(test, feature = "test-support"))]
pub mod test_support;
pub use bundle::ComponentBundle;
pub use component::Component;
pub use component_context::{ComponentContext, NoOpComponentContext};
pub use consumer::{
ConcurrencyModel, Consumer, ConsumerContext, ExchangeEnvelope, SecurityContext,
};
pub use endpoint::{Endpoint, PollingConsumer};
pub use health_registry::{
HealthCheckRegistry, NoOpHealthCheckRegistry, noop_health_check_registry,
};
pub use runtime_observability::RuntimeObservability;
pub use network_retry::{
NetworkRetryPolicy, is_retryable_camel_error, retry_async, retry_async_cancelable,
};
pub use producer::ProducerContext;
pub use registrar::ComponentRegistrar;
#[cfg(any(test, feature = "test-support"))]
pub use test_support::PanicRuntimeObservability;
pub use camel_api::{
AsyncHealthCheck, Body, BodyType, BoxProcessor, CamelError, CheckResult, Exchange,
HealthStatus, 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)),
}
}
}