Search in sources :

Example 41 with JndiRegistry

use of org.apache.camel.impl.JndiRegistry in project camel by apache.

the class CamelReactiveStreamsTest method createRegistry.

@Override
protected JndiRegistry createRegistry() throws Exception {
    JndiRegistry registry = super.createRegistry();
    registry.bind("dummy", new ReactiveStreamsTestService("from-registry"));
    return registry;
}
Also used : JndiRegistry(org.apache.camel.impl.JndiRegistry) ReactiveStreamsTestService(org.apache.camel.component.reactive.streams.support.ReactiveStreamsTestService)

Example 42 with JndiRegistry

use of org.apache.camel.impl.JndiRegistry in project camel by apache.

the class XmlSignatureTest method createRegistry.

@Override
protected JndiRegistry createRegistry() throws Exception {
    JndiRegistry registry = super.createRegistry();
    registry.bind("accessor", getKeyAccessor(keyPair.getPrivate()));
    registry.bind("canonicalizationMethod1", getCanonicalizationMethod());
    registry.bind("selector", KeySelector.singletonKeySelector(keyPair.getPublic()));
    registry.bind("selectorKeyValue", getKeyValueKeySelector());
    registry.bind("transformsXPath2", getTransformsXPath2());
    registry.bind("transformsXsltXPath", getTransformsXsltXpath());
    registry.bind("uriDereferencer", getSameDocumentUriDereferencer());
    registry.bind("baseUri", getBaseUri());
    registry.bind("cryptoContextProperties", getCrytoContextProperties());
    registry.bind("keyAccessorDefault", getDefaultKeyAccessor());
    registry.bind("keySelectorDefault", getDefaultKeySelector());
    registry.bind("envelopingSignatureChecker", getEnvelopingXmlSignatureChecker());
    registry.bind("xmlSignature2MessageWithTimestampProperty", getXmlSignature2MessageWithTimestampdProperty());
    registry.bind("validationFailedHandlerIgnoreManifestFailures", getValidationFailedHandlerIgnoreManifestFailures());
    registry.bind("signatureProperties", getSignatureProperties());
    registry.bind("nodesearchxpath", getNodeSerachXPath());
    Map<String, String> namespaceMap = Collections.singletonMap("ns", "http://test");
    List<XPathFilterParameterSpec> xpaths = Collections.singletonList(XmlSignatureHelper.getXpathFilter("/ns:root/a/@ID", namespaceMap));
    registry.bind("xpathsToIdAttributes", xpaths);
    registry.bind("parentXpathBean", getParentXPathBean());
    return registry;
}
Also used : JndiRegistry(org.apache.camel.impl.JndiRegistry) XPathFilterParameterSpec(javax.xml.crypto.dsig.spec.XPathFilterParameterSpec)

Example 43 with JndiRegistry

use of org.apache.camel.impl.JndiRegistry in project camel by apache.

the class CafeRouteBuilder method createRegistry.

protected JndiRegistry createRegistry() throws Exception {
    JndiRegistry jndi = new JndiRegistry();
    jndi.bind("drinkRouter", new DrinkRouter());
    jndi.bind("orderSplitter", new OrderSplitter());
    jndi.bind("barista", new Barista());
    jndi.bind("waiter", new Waiter());
    jndi.bind("aggregatorStrategy", new CafeAggregationStrategy());
    return jndi;
}
Also used : JndiRegistry(org.apache.camel.impl.JndiRegistry) DrinkRouter(org.apache.camel.example.cafe.stuff.DrinkRouter) Barista(org.apache.camel.example.cafe.stuff.Barista) CafeAggregationStrategy(org.apache.camel.example.cafe.stuff.CafeAggregationStrategy) Waiter(org.apache.camel.example.cafe.stuff.Waiter) OrderSplitter(org.apache.camel.example.cafe.stuff.OrderSplitter)

Example 44 with JndiRegistry

use of org.apache.camel.impl.JndiRegistry in project camel by apache.

the class CafeRouteBuilderTest method createRegistry.

@Override
protected JndiRegistry createRegistry() throws Exception {
    JndiRegistry jndi = super.createRegistry();
    jndi.bind("drinkRouter", driverRouter);
    jndi.bind("orderSplitter", new OrderSplitter());
    jndi.bind("barista", new Barista());
    jndi.bind("waiter", waiter);
    jndi.bind("aggregatorStrategy", new CafeAggregationStrategy());
    return jndi;
}
Also used : JndiRegistry(org.apache.camel.impl.JndiRegistry) Barista(org.apache.camel.example.cafe.stuff.Barista) CafeAggregationStrategy(org.apache.camel.example.cafe.stuff.CafeAggregationStrategy) OrderSplitter(org.apache.camel.example.cafe.stuff.OrderSplitter)

Example 45 with JndiRegistry

use of org.apache.camel.impl.JndiRegistry in project camel by apache.

the class HttpAsyncDslTest method createRegistry.

@Override
protected JndiRegistry createRegistry() throws Exception {
    JndiRegistry jndi = super.createRegistry();
    jndi.bind("validateOrder", new MyValidateOrderBean());
    jndi.bind("handleOrder", new MyHandleOrderBean());
    return jndi;
}
Also used : JndiRegistry(org.apache.camel.impl.JndiRegistry)

Aggregations

JndiRegistry (org.apache.camel.impl.JndiRegistry)608 SSLContextParameters (org.apache.camel.util.jsse.SSLContextParameters)19 HttpUrlRewrite (org.apache.camel.component.urlrewrite.HttpUrlRewrite)18 KeyStoreParameters (org.apache.camel.util.jsse.KeyStoreParameters)17 DeadLetterChannelBuilder (org.apache.camel.builder.DeadLetterChannelBuilder)16 Properties (java.util.Properties)15 Test (org.junit.Test)14 TrustManagersParameters (org.apache.camel.util.jsse.TrustManagersParameters)13 ArrayList (java.util.ArrayList)11 KeyManagersParameters (org.apache.camel.util.jsse.KeyManagersParameters)11 EmbeddedDatabaseBuilder (org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder)11 File (java.io.File)10 RouteBuilder (org.apache.camel.builder.RouteBuilder)8 ExchangeCookieHandler (org.apache.camel.http.common.cookie.ExchangeCookieHandler)8 InstanceCookieHandler (org.apache.camel.http.common.cookie.InstanceCookieHandler)8 CamelContext (org.apache.camel.CamelContext)6 MockEndpoint (org.apache.camel.component.mock.MockEndpoint)6 BookCatalog (org.apache.camel.component.routebox.demo.BookCatalog)5 SimpleRouteBuilder (org.apache.camel.component.routebox.demo.SimpleRouteBuilder)5 DefaultCamelContext (org.apache.camel.impl.DefaultCamelContext)5