Package org.apache.camel.processor

Examples of org.apache.camel.processor.DefaultExchangeFormatter


                    setProperties(exchangeFormatter, parameters);
                }
            }
            // if no formatter is available in the Registry, create a local one of the default type, for a single use
            if (localFormatter == null) {
                localFormatter = new DefaultExchangeFormatter();
                setProperties(localFormatter, parameters);
            }
            logger = new CamelLogProcessor(camelLogger, localFormatter);
        }
View Full Code Here


                    setProperties(exchangeFormatter, parameters);
                }
            }
            // if no formatter is available in the Registry, create a local one of the default type, for a single use
            if (localFormatter == null) {
                localFormatter = new DefaultExchangeFormatter();
                setProperties(localFormatter, parameters);
            }
            logger = new CamelLogProcessor(camelLogger, localFormatter);
        }
View Full Code Here

        producer.process(exchange);
        producer.stop();
    }

    public void testConfiguration() {
        DefaultExchangeFormatter formatter = new DefaultExchangeFormatter();

        assertFalse(formatter.isShowExchangeId());
        assertFalse(formatter.isShowProperties());
        assertFalse(formatter.isShowHeaders());
        assertTrue(formatter.isShowBodyType());
        assertTrue(formatter.isShowBody());
        assertFalse(formatter.isShowOut());
        assertFalse(formatter.isShowException());
        assertFalse(formatter.isShowCaughtException());
        assertFalse(formatter.isShowStackTrace());
        assertFalse(formatter.isShowAll());
        assertFalse(formatter.isMultiline());
        assertEquals(10000, formatter.getMaxChars());
    }
View Full Code Here

            // do not set properties, the exchangeFormatter is explicitly set, thefore the
            // user would have set its properties explicitly too
            localFormatter = exchangeFormatter;
        } else {
            // if no formatter is available in the Registry, create a local one of the default type, for a single use
            localFormatter = new DefaultExchangeFormatter();
            setProperties(localFormatter, parameters);
        }
        endpoint.setLocalFormatter(localFormatter);
        return endpoint;
    }
View Full Code Here

                setProperties(exchangeFormatter, parameters);
            }
        }
        // if no formatter is available in the Registry, create a local one of the default type, for a single use
        if (localFormatter == null) {
            localFormatter = new DefaultExchangeFormatter();
            setProperties(localFormatter, parameters);
        }
        endpoint.setLocalFormatter(localFormatter);
        return endpoint;
    }
View Full Code Here

                    setProperties(exchangeFormatter, parameters);
                }
            }
            // if no formatter is available in the Registry, create a local one of the default type, for a single use
            if (localFormatter == null) {
                localFormatter = new DefaultExchangeFormatter();
                setProperties(localFormatter, parameters);
            }
            logger = new CamelLogProcessor(camelLogger, localFormatter);
        }
View Full Code Here

TOP

Related Classes of org.apache.camel.processor.DefaultExchangeFormatter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.