This is an automated email from the ASF dual-hosted git repository. gnodet pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
commit af2d076fc218d5dc0fe5be634e7c867bd13fff44 Author: Guillaume Nodet <gno...@gmail.com> AuthorDate: Tue Jun 16 15:32:45 2020 +0200 Fix typo: recieve -> receive --- .../apache/camel/component/as2/api/AS2MessageTest.java | 2 +- .../component/aws/swf/CamelWorkflowDefinition.java | 4 ++-- .../camel/component/aws/swf/SWFWorkflowConsumer.java | 4 ++-- .../bindy/fixed/converter/BindyConverterTest.java | 18 +++++++++--------- .../camel-browse/src/main/docs/browse-component.adoc | 2 +- .../flatpack/FlatpackDelimitedDataFormatTest.java | 2 +- .../mail/MailAttachmentDuplicateNamesTest.java | 2 +- .../camel/component/mail/MailHtmlAttachmentTest.java | 2 +- .../org/apache/camel/component/mail/MailRouteTest.java | 4 ++-- .../mina/MinaTcpLineDelimiterUsingPlainSocketTest.java | 6 +++--- .../mina/MinaTcpWithInOutUsingPlainSocketTest.java | 6 +++--- .../netty/NettyTcpWithInOutUsingPlainSocketTest.java | 6 +++--- .../camel/component/splunk/ConsumerStreamingTest.java | 6 +++--- .../apache/camel/component/splunk/ConsumerTest.java | 6 +++--- .../component/splunk/integration/NormalSearchTest.java | 6 +++--- .../splunk/integration/RealtimeSearchTest.java | 6 +++--- .../component/splunk/integration/SavedSearchTest.java | 6 +++--- .../splunk/integration/SplunkProducerTest.java | 2 +- .../RouteExclusionFromWithinSpringTestSupportTest.java | 2 +- .../spring/config/scan/SpringComponentScanTest.java | 2 +- .../config/scan/route/MyExcludedRouteBuilder.java | 2 +- .../org/apache/camel/component/undertow/undertow.json | 2 +- .../src/main/docs/undertow-component.adoc | 2 +- .../camel/component/undertow/UndertowConsumer.java | 8 ++++---- .../camel/component/undertow/UndertowEndpoint.java | 2 +- .../operations/FutureEventDrivenOperation.java | 4 ++-- .../endpoint/dsl/UndertowEndpointBuilderFactory.java | 12 ++++++------ .../modules/ROOT/pages/browse-component.adoc | 2 +- .../modules/ROOT/pages/undertow-component.adoc | 2 +- .../modules/ROOT/pages/exception-clause.adoc | 2 +- 30 files changed, 66 insertions(+), 66 deletions(-) diff --git a/components/camel-as2/camel-as2-api/src/test/java/org/apache/camel/component/as2/api/AS2MessageTest.java b/components/camel-as2/camel-as2-api/src/test/java/org/apache/camel/component/as2/api/AS2MessageTest.java index 0480858..ea5412f 100644 --- a/components/camel-as2/camel-as2-api/src/test/java/org/apache/camel/component/as2/api/AS2MessageTest.java +++ b/components/camel-as2/camel-as2-api/src/test/java/org/apache/camel/component/as2/api/AS2MessageTest.java @@ -662,7 +662,7 @@ public class AS2MessageTest { assertEquals(extensionFields, mdnEntity.getExtensionFields(), "Unexpected value for Extension Fields"); ReceivedContentMic expectedMic = MicUtils.createReceivedContentMic(request, null); ReceivedContentMic mdnMic = mdnEntity.getReceivedContentMic(); - assertEquals(expectedMic.getEncodedMessageDigest(), mdnMic.getEncodedMessageDigest(), "Unexpected value for Recieved Content Mic"); + assertEquals(expectedMic.getEncodedMessageDigest(), mdnMic.getEncodedMessageDigest(), "Unexpected value for Received Content Mic"); LOG.debug("\r\n" + AS2Utils.printMessage(mndRequest)); } diff --git a/components/camel-aws-swf/src/main/java/org/apache/camel/component/aws/swf/CamelWorkflowDefinition.java b/components/camel-aws-swf/src/main/java/org/apache/camel/component/aws/swf/CamelWorkflowDefinition.java index a183191..a0ac64c 100644 --- a/components/camel-aws-swf/src/main/java/org/apache/camel/component/aws/swf/CamelWorkflowDefinition.java +++ b/components/camel-aws-swf/src/main/java/org/apache/camel/component/aws/swf/CamelWorkflowDefinition.java @@ -96,9 +96,9 @@ public class CamelWorkflowDefinition extends WorkflowDefinition { public void signalRecieved(String signalName, String input) throws WorkflowException { Object[] parameters = dataConverter.fromData(input, Object[].class); try { - LOGGER.debug("Processing workflow signalRecieved"); + LOGGER.debug("Processing workflow signalReceived"); - swfWorkflowConsumer.signalRecieved(parameters); + swfWorkflowConsumer.signalReceived(parameters); } catch (Throwable e) { throwWorkflowException(dataConverter, e); throw new IllegalStateException("Unreacheable"); diff --git a/components/camel-aws-swf/src/main/java/org/apache/camel/component/aws/swf/SWFWorkflowConsumer.java b/components/camel-aws-swf/src/main/java/org/apache/camel/component/aws/swf/SWFWorkflowConsumer.java index 014dc0c..edc0c93 100644 --- a/components/camel-aws-swf/src/main/java/org/apache/camel/component/aws/swf/SWFWorkflowConsumer.java +++ b/components/camel-aws-swf/src/main/java/org/apache/camel/component/aws/swf/SWFWorkflowConsumer.java @@ -52,8 +52,8 @@ public class SWFWorkflowConsumer extends DefaultConsumer { return endpoint.getResult(exchange); } - public void signalRecieved(Object[] parameters) throws Exception { - LOGGER.debug("signalRecieved: " + Arrays.toString(parameters)); + public void signalReceived(Object[] parameters) throws Exception { + LOGGER.debug("signalReceived: " + Arrays.toString(parameters)); Exchange exchange = endpoint.createExchange(parameters, SWFConstants.SIGNAL_RECEIVED_ACTION); exchange.setPattern(InOnly); diff --git a/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/fixed/converter/BindyConverterTest.java b/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/fixed/converter/BindyConverterTest.java index f39368b..c238de2 100644 --- a/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/fixed/converter/BindyConverterTest.java +++ b/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/fixed/converter/BindyConverterTest.java @@ -101,7 +101,7 @@ public class BindyConverterTest extends CamelTestSupport { @Test @DirtiesContext public void testRightAlignedNotTrimmed() throws Exception { - AllCombinations data = sendAndRecieveAllCombinations(); + AllCombinations data = sendAndReceiveAllCombinations(); assertThat("Right aligned, padding not trimmed", data.field1, Is.is("!!!f1")); } @@ -109,7 +109,7 @@ public class BindyConverterTest extends CamelTestSupport { @Test @DirtiesContext public void testLeftAlignedNotTrimmed() throws Exception { - AllCombinations data = sendAndRecieveAllCombinations(); + AllCombinations data = sendAndReceiveAllCombinations(); assertThat("Left aligned, padding not trimmed", data.field2, Is.is("f2!!!")); } @@ -117,7 +117,7 @@ public class BindyConverterTest extends CamelTestSupport { @Test @DirtiesContext public void testRightAlignedTrimmed() throws Exception { - AllCombinations data = sendAndRecieveAllCombinations(); + AllCombinations data = sendAndReceiveAllCombinations(); assertThat("Right aligned, padding trimmed", data.field3, Is.is("f3")); } @@ -125,7 +125,7 @@ public class BindyConverterTest extends CamelTestSupport { @Test @DirtiesContext public void testLeftAlignedTrimmed() throws Exception { - AllCombinations data = sendAndRecieveAllCombinations(); + AllCombinations data = sendAndReceiveAllCombinations(); assertThat("Left aligned, padding trimmed", data.field4, Is.is("f4")); } @@ -133,7 +133,7 @@ public class BindyConverterTest extends CamelTestSupport { @Test @DirtiesContext public void testRightAlignedRecordPaddingNotTrimmed() throws Exception { - AllCombinations data = sendAndRecieveAllCombinations(); + AllCombinations data = sendAndReceiveAllCombinations(); assertThat("Right aligned, padding not trimmed", data.field5, Is.is("###f5")); } @@ -141,7 +141,7 @@ public class BindyConverterTest extends CamelTestSupport { @Test @DirtiesContext public void testLeftAlignedRecordPaddingNotTrimmed() throws Exception { - AllCombinations data = sendAndRecieveAllCombinations(); + AllCombinations data = sendAndReceiveAllCombinations(); assertThat("Left aligned, padding not trimmed", data.field6, Is.is("f6###")); } @@ -149,7 +149,7 @@ public class BindyConverterTest extends CamelTestSupport { @Test @DirtiesContext public void testRightAlignedRecordPaddingTrimmed() throws Exception { - AllCombinations data = sendAndRecieveAllCombinations(); + AllCombinations data = sendAndReceiveAllCombinations(); assertThat("Right aligned, padding trimmed", data.field7, Is.is("f7")); } @@ -157,12 +157,12 @@ public class BindyConverterTest extends CamelTestSupport { @Test @DirtiesContext public void testLeftAlignedRecordPaddingTrimmed() throws Exception { - AllCombinations data = sendAndRecieveAllCombinations(); + AllCombinations data = sendAndReceiveAllCombinations(); assertThat("Left aligned, padding trimmed", data.field8, Is.is("f8")); } - private AllCombinations sendAndRecieveAllCombinations() throws InterruptedException { + private AllCombinations sendAndReceiveAllCombinations() throws InterruptedException { AllCombinations all = new AllCombinations(); all.field1 = "f1"; all.field2 = "f2"; diff --git a/components/camel-browse/src/main/docs/browse-component.adoc b/components/camel-browse/src/main/docs/browse-component.adoc index 2c44a46..4752ed1 100644 --- a/components/camel-browse/src/main/docs/browse-component.adoc +++ b/components/camel-browse/src/main/docs/browse-component.adoc @@ -97,7 +97,7 @@ We can now inspect the received exchanges from within the Java code: ---- private CamelContext context; -public void inspectRecievedOrders() { +public void inspectReceivedOrders() { BrowsableEndpoint browse = context.getEndpoint("browse:orderReceived", BrowsableEndpoint.class); List<Exchange> exchanges = browse.getExchanges(); diff --git a/components/camel-flatpack/src/test/java/org/apache/camel/component/flatpack/FlatpackDelimitedDataFormatTest.java b/components/camel-flatpack/src/test/java/org/apache/camel/component/flatpack/FlatpackDelimitedDataFormatTest.java index b9ea96f..75e9f82 100644 --- a/components/camel-flatpack/src/test/java/org/apache/camel/component/flatpack/FlatpackDelimitedDataFormatTest.java +++ b/components/camel-flatpack/src/test/java/org/apache/camel/component/flatpack/FlatpackDelimitedDataFormatTest.java @@ -114,7 +114,7 @@ public class FlatpackDelimitedDataFormatTest extends CamelTestSupport { // with the definition from("direct:marshal").marshal(df).convertBodyTo(String.class).to("mock:marshal"); - // without the definition (will auto add column names from the recieved data) + // without the definition (will auto add column names from the received data) FlatpackDataFormat df2 = new FlatpackDataFormat(); from("direct:marshal2").marshal(df2).convertBodyTo(String.class).to("mock:marshal2"); } diff --git a/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailAttachmentDuplicateNamesTest.java b/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailAttachmentDuplicateNamesTest.java index 0a9b406..b25e5d2 100644 --- a/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailAttachmentDuplicateNamesTest.java +++ b/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailAttachmentDuplicateNamesTest.java @@ -37,7 +37,7 @@ import org.jvnet.mock_javamail.Mailbox; public class MailAttachmentDuplicateNamesTest extends CamelTestSupport { @Test - public void testSendAndRecieveMailWithAttachmentsWithDuplicateNames() throws Exception { + public void testSendAndReceiveMailWithAttachmentsWithDuplicateNames() throws Exception { // clear mailbox Mailbox.clearAll(); diff --git a/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailHtmlAttachmentTest.java b/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailHtmlAttachmentTest.java index 51fa0cd..2eaad5c 100644 --- a/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailHtmlAttachmentTest.java +++ b/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailHtmlAttachmentTest.java @@ -37,7 +37,7 @@ import org.jvnet.mock_javamail.Mailbox; public class MailHtmlAttachmentTest extends CamelTestSupport { @Test - public void testSendAndRecieveMailWithAttachments() throws Exception { + public void testSendAndReceiveMailWithAttachments() throws Exception { // clear mailbox Mailbox.clearAll(); diff --git a/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailRouteTest.java b/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailRouteTest.java index 427c8f4..ff840a7 100644 --- a/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailRouteTest.java +++ b/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailRouteTest.java @@ -114,10 +114,10 @@ public class MailRouteTest extends CamelTestSupport { from("pop3://route-test-james@localhost?initialDelay=100&delay=100").to("direct:a"); // must use fixed to option to send the mail to the given - // reciever, as we have polled + // receiver, as we have polled // a mail from a mailbox where it already has the 'old' To as // header value - // here we send the mail to 2 recievers. notice we can use a + // here we send the mail to 2 receivers. notice we can use a // plain string with semi colon // to seperate the mail addresses from("direct:a") diff --git a/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaTcpLineDelimiterUsingPlainSocketTest.java b/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaTcpLineDelimiterUsingPlainSocketTest.java index 75b57d3..5218cca 100644 --- a/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaTcpLineDelimiterUsingPlainSocketTest.java +++ b/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaTcpLineDelimiterUsingPlainSocketTest.java @@ -53,16 +53,16 @@ public class MinaTcpLineDelimiterUsingPlainSocketTest extends BaseMinaTest { @Test public void testReceiveNoResponseSinceOutBodyIsNull() throws Exception { String out = sendAndReceive("force-null-out-body"); - assertNull("no data should be recieved", out); + assertNull("no data should be received", out); } @Test public void testReceiveNoResponseSinceOutBodyIsNullTwice() throws Exception { String out = sendAndReceive("force-null-out-body"); - assertNull("no data should be recieved", out); + assertNull("no data should be received", out); out = sendAndReceive("force-null-out-body"); - assertNull("no data should be recieved", out); + assertNull("no data should be received", out); } @Test diff --git a/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaTcpWithInOutUsingPlainSocketTest.java b/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaTcpWithInOutUsingPlainSocketTest.java index 46f1b93..79522a1 100644 --- a/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaTcpWithInOutUsingPlainSocketTest.java +++ b/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaTcpWithInOutUsingPlainSocketTest.java @@ -53,16 +53,16 @@ public class MinaTcpWithInOutUsingPlainSocketTest extends BaseMinaTest { @Test public void testReceiveNoResponseSinceOutBodyIsNull() throws Exception { String out = sendAndReceive("force-null-out-body"); - assertNull("no data should be recieved", out); + assertNull("no data should be received", out); } @Test public void testReceiveNoResponseSinceOutBodyIsNullTwice() throws Exception { String out = sendAndReceive("force-null-out-body"); - assertNull("no data should be recieved", out); + assertNull("no data should be received", out); out = sendAndReceive("force-null-out-body"); - assertNull("no data should be recieved", out); + assertNull("no data should be received", out); } @Test diff --git a/components/camel-netty/src/test/java/org/apache/camel/component/netty/NettyTcpWithInOutUsingPlainSocketTest.java b/components/camel-netty/src/test/java/org/apache/camel/component/netty/NettyTcpWithInOutUsingPlainSocketTest.java index aee89fe..299b963 100644 --- a/components/camel-netty/src/test/java/org/apache/camel/component/netty/NettyTcpWithInOutUsingPlainSocketTest.java +++ b/components/camel-netty/src/test/java/org/apache/camel/component/netty/NettyTcpWithInOutUsingPlainSocketTest.java @@ -51,16 +51,16 @@ public class NettyTcpWithInOutUsingPlainSocketTest extends BaseNettyTest { @Test public void testReceiveNoResponseSinceOutBodyIsNull() throws Exception { String out = sendAndReceive("force-null-out-body"); - assertNull("no data should be recieved", out); + assertNull("no data should be received", out); } @Test public void testReceiveNoResponseSinceOutBodyIsNullTwice() throws Exception { String out = sendAndReceive("force-null-out-body"); - assertNull("no data should be recieved", out); + assertNull("no data should be received", out); out = sendAndReceive("force-null-out-body"); - assertNull("no data should be recieved", out); + assertNull("no data should be received", out); } @Test diff --git a/components/camel-splunk/src/test/java/org/apache/camel/component/splunk/ConsumerStreamingTest.java b/components/camel-splunk/src/test/java/org/apache/camel/component/splunk/ConsumerStreamingTest.java index 086dd9f..d975024 100644 --- a/components/camel-splunk/src/test/java/org/apache/camel/component/splunk/ConsumerStreamingTest.java +++ b/components/camel-splunk/src/test/java/org/apache/camel/component/splunk/ConsumerStreamingTest.java @@ -54,9 +54,9 @@ public class ConsumerStreamingTest extends SplunkMockTestSupport { when(jobMock.getResults(any())).thenReturn(stream); assertMockEndpointsSatisfied(); - SplunkEvent recieved = searchMock.getReceivedExchanges().get(0).getIn().getBody(SplunkEvent.class); - assertNotNull(recieved); - Map<String, String> data = recieved.getEventData(); + SplunkEvent received = searchMock.getReceivedExchanges().get(0).getIn().getBody(SplunkEvent.class); + assertNotNull(received); + Map<String, String> data = received.getEventData(); assertEquals("indexertpool", data.get("name")); stream.close(); } diff --git a/components/camel-splunk/src/test/java/org/apache/camel/component/splunk/ConsumerTest.java b/components/camel-splunk/src/test/java/org/apache/camel/component/splunk/ConsumerTest.java index 3f635dc..d1f639e 100644 --- a/components/camel-splunk/src/test/java/org/apache/camel/component/splunk/ConsumerTest.java +++ b/components/camel-splunk/src/test/java/org/apache/camel/component/splunk/ConsumerTest.java @@ -56,9 +56,9 @@ public class ConsumerTest extends SplunkMockTestSupport { when(jobMock.getResults(any())).thenReturn(stream); assertMockEndpointsSatisfied(); - SplunkEvent recieved = searchMock.getReceivedExchanges().get(0).getIn().getBody(SplunkEvent.class); - assertNotNull(recieved); - Map<String, String> data = recieved.getEventData(); + SplunkEvent received = searchMock.getReceivedExchanges().get(0).getIn().getBody(SplunkEvent.class); + assertNotNull(received); + Map<String, String> data = received.getEventData(); assertEquals("indexertpool", data.get("name")); assertEquals(true, searchMock.getReceivedExchanges().get(2).getProperty(Exchange.BATCH_COMPLETE, Boolean.class)); stream.close(); diff --git a/components/camel-splunk/src/test/java/org/apache/camel/component/splunk/integration/NormalSearchTest.java b/components/camel-splunk/src/test/java/org/apache/camel/component/splunk/integration/NormalSearchTest.java index 9bd10b9..8745f64 100644 --- a/components/camel-splunk/src/test/java/org/apache/camel/component/splunk/integration/NormalSearchTest.java +++ b/components/camel-splunk/src/test/java/org/apache/camel/component/splunk/integration/NormalSearchTest.java @@ -35,9 +35,9 @@ public class NormalSearchTest extends SplunkTest { getMockEndpoint("mock:submit-result").expectedMessageCount(1); assertMockEndpointsSatisfied(20, TimeUnit.SECONDS); - SplunkEvent recieved = searchMock.getReceivedExchanges().get(0).getIn().getBody(SplunkEvent.class); - assertNotNull(recieved); - Map<String, String> data = recieved.getEventData(); + SplunkEvent received = searchMock.getReceivedExchanges().get(0).getIn().getBody(SplunkEvent.class); + assertNotNull(received); + Map<String, String> data = received.getEventData(); assertEquals("value1", data.get("key1")); assertEquals("value2", data.get("key2")); assertEquals("value3", data.get("key3")); diff --git a/components/camel-splunk/src/test/java/org/apache/camel/component/splunk/integration/RealtimeSearchTest.java b/components/camel-splunk/src/test/java/org/apache/camel/component/splunk/integration/RealtimeSearchTest.java index 80db504..c03395a 100644 --- a/components/camel-splunk/src/test/java/org/apache/camel/component/splunk/integration/RealtimeSearchTest.java +++ b/components/camel-splunk/src/test/java/org/apache/camel/component/splunk/integration/RealtimeSearchTest.java @@ -33,9 +33,9 @@ public class RealtimeSearchTest extends SplunkTest { searchMock.expectedMessageCount(1); assertMockEndpointsSatisfied(); - SplunkEvent recieved = searchMock.getReceivedExchanges().get(0).getIn().getBody(SplunkEvent.class); - assertNotNull(recieved); - Map<String, String> data = recieved.getEventData(); + SplunkEvent received = searchMock.getReceivedExchanges().get(0).getIn().getBody(SplunkEvent.class); + assertNotNull(received); + Map<String, String> data = received.getEventData(); assertEquals("value1", data.get("key1")); assertEquals("value2", data.get("key2")); assertEquals("value3", data.get("key3")); diff --git a/components/camel-splunk/src/test/java/org/apache/camel/component/splunk/integration/SavedSearchTest.java b/components/camel-splunk/src/test/java/org/apache/camel/component/splunk/integration/SavedSearchTest.java index bebb7ee..4d0ce93 100644 --- a/components/camel-splunk/src/test/java/org/apache/camel/component/splunk/integration/SavedSearchTest.java +++ b/components/camel-splunk/src/test/java/org/apache/camel/component/splunk/integration/SavedSearchTest.java @@ -36,9 +36,9 @@ public class SavedSearchTest extends SplunkTest { searchMock.expectedMessageCount(1); assertMockEndpointsSatisfied(20, TimeUnit.SECONDS); - SplunkEvent recieved = searchMock.getReceivedExchanges().get(0).getIn().getBody(SplunkEvent.class); - assertNotNull(recieved); - Map<String, String> data = recieved.getEventData(); + SplunkEvent received = searchMock.getReceivedExchanges().get(0).getIn().getBody(SplunkEvent.class); + assertNotNull(received); + Map<String, String> data = received.getEventData(); assertEquals("value1", data.get("key1")); assertEquals("value2", data.get("key2")); assertEquals("value3", data.get("key3")); diff --git a/components/camel-splunk/src/test/java/org/apache/camel/component/splunk/integration/SplunkProducerTest.java b/components/camel-splunk/src/test/java/org/apache/camel/component/splunk/integration/SplunkProducerTest.java index c89644a..ae16e59 100644 --- a/components/camel-splunk/src/test/java/org/apache/camel/component/splunk/integration/SplunkProducerTest.java +++ b/components/camel-splunk/src/test/java/org/apache/camel/component/splunk/integration/SplunkProducerTest.java @@ -25,7 +25,7 @@ import org.junit.Test; @Ignore("run manually since it requires a running local splunk server") public class SplunkProducerTest extends SplunkTest { - // Splunk tcp reciever port configured in Splunk + // Splunk tcp receiver port configured in Splunk private static final String TCP_RECIEVER_PORT = "9997"; @Test diff --git a/components/camel-spring/src/test/java/org/apache/camel/spring/config/scan/RouteExclusionFromWithinSpringTestSupportTest.java b/components/camel-spring/src/test/java/org/apache/camel/spring/config/scan/RouteExclusionFromWithinSpringTestSupportTest.java index 054ba53..f1bc4d4 100644 --- a/components/camel-spring/src/test/java/org/apache/camel/spring/config/scan/RouteExclusionFromWithinSpringTestSupportTest.java +++ b/components/camel-spring/src/test/java/org/apache/camel/spring/config/scan/RouteExclusionFromWithinSpringTestSupportTest.java @@ -40,7 +40,7 @@ public class RouteExclusionFromWithinSpringTestSupportTest extends SpringTestSup MockEndpoint mock = getMockEndpoint("mock:definitelyShouldNeverReceiveExchange"); mock.expectedMessageCount(0); - sendBody("seda:shouldNeverRecieveExchange", "dropped like a hot rock"); + sendBody("seda:shouldNeverReceiveExchange", "dropped like a hot rock"); mock.await(500, TimeUnit.MILLISECONDS); mock.assertIsSatisfied(); } diff --git a/components/camel-spring/src/test/java/org/apache/camel/spring/config/scan/SpringComponentScanTest.java b/components/camel-spring/src/test/java/org/apache/camel/spring/config/scan/SpringComponentScanTest.java index fa08ca1..8eea42e 100644 --- a/components/camel-spring/src/test/java/org/apache/camel/spring/config/scan/SpringComponentScanTest.java +++ b/components/camel-spring/src/test/java/org/apache/camel/spring/config/scan/SpringComponentScanTest.java @@ -61,7 +61,7 @@ public class SpringComponentScanTest extends ContextTestSupport { MockEndpoint mock = getMockEndpoint("mock:definitelyShouldNeverReceiveExchange"); mock.expectedMessageCount(0); - sendBody("seda:shouldNeverRecieveExchange", "dropped like a hot rock"); + sendBody("seda:shouldNeverReceiveExchange", "dropped like a hot rock"); mock.await(500, TimeUnit.MILLISECONDS); mock.assertIsSatisfied(); } diff --git a/components/camel-spring/src/test/java/org/apache/camel/spring/config/scan/route/MyExcludedRouteBuilder.java b/components/camel-spring/src/test/java/org/apache/camel/spring/config/scan/route/MyExcludedRouteBuilder.java index 411c495..af87b71 100644 --- a/components/camel-spring/src/test/java/org/apache/camel/spring/config/scan/route/MyExcludedRouteBuilder.java +++ b/components/camel-spring/src/test/java/org/apache/camel/spring/config/scan/route/MyExcludedRouteBuilder.java @@ -22,6 +22,6 @@ public class MyExcludedRouteBuilder extends RouteBuilder { @Override public void configure() throws Exception { - from("direct:shouldNeverRecieveExchange").to("mock:definitelyShouldNeverReceiveExchange"); + from("direct:shouldNeverReceiveExchange").to("mock:definitelyShouldNeverReceiveExchange"); } } diff --git a/components/camel-undertow/src/generated/resources/org/apache/camel/component/undertow/undertow.json b/components/camel-undertow/src/generated/resources/org/apache/camel/component/undertow/undertow.json index ec15c62..4c8cb9c 100644 --- a/components/camel-undertow/src/generated/resources/org/apache/camel/component/undertow/undertow.json +++ b/components/camel-undertow/src/generated/resources/org/apache/camel/component/undertow/undertow.json @@ -55,7 +55,7 @@ "tcpNoDelay": { "kind": "parameter", "displayName": "Tcp No Delay", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "secret": false, "defaultValue": "true", "description": "Setting to improve TCP protocol performance" }, "throwExceptionOnFailure": { "kind": "parameter", "displayName": "Throw Exception On Failure", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "secret": false, "defaultValue": "true", "description": "Option to disable throwing the HttpOperationFailedException in case of failed responses from the remote server. This allows you to get all responses regardless of the HTTP status code." }, "transferException": { "kind": "parameter", "displayName": "Transfer Exception", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "secret": false, "defaultValue": "false", "description": "If enabled and an Exchange failed processing on the consumer side and if the caused Exception was send back serialized in the response as a application\/x-java-serialized-object content type. On the producer side th [...] - "accessLogReceiver": { "kind": "parameter", "displayName": "Access Log Receiver", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "io.undertow.server.handlers.accesslog.AccessLogReceiver", "deprecated": false, "secret": false, "description": "Which Undertow AccessLogReciever should be used Will use JBossLoggingAccessLogReceiver if not specifid" }, + "accessLogReceiver": { "kind": "parameter", "displayName": "Access Log Receiver", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "io.undertow.server.handlers.accesslog.AccessLogReceiver", "deprecated": false, "secret": false, "description": "Which Undertow AccessLogReceiver should be used Will use JBossLoggingAccessLogReceiver if not specifid" }, "basicPropertyBinding": { "kind": "parameter", "displayName": "Basic Property Binding", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Whether the endpoint should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities" }, "headerFilterStrategy": { "kind": "parameter", "displayName": "Header Filter Strategy", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.camel.spi.HeaderFilterStrategy", "deprecated": false, "secret": false, "description": "To use a custom HeaderFilterStrategy to filter header to and from Camel message." }, "synchronous": { "kind": "parameter", "displayName": "Synchronous", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": "false", "description": "Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported)." }, diff --git a/components/camel-undertow/src/main/docs/undertow-component.adoc b/components/camel-undertow/src/main/docs/undertow-component.adoc index 20db802..920dc1d 100644 --- a/components/camel-undertow/src/main/docs/undertow-component.adoc +++ b/components/camel-undertow/src/main/docs/undertow-component.adoc @@ -117,7 +117,7 @@ with the following path and query parameters: | *tcpNoDelay* (producer) | Setting to improve TCP protocol performance | true | Boolean | *throwExceptionOnFailure* (producer) | Option to disable throwing the HttpOperationFailedException in case of failed responses from the remote server. This allows you to get all responses regardless of the HTTP status code. | true | Boolean | *transferException* (producer) | If enabled and an Exchange failed processing on the consumer side and if the caused Exception was send back serialized in the response as a application/x-java-serialized-object content type. On the producer side the exception will be deserialized and thrown as is instead of the HttpOperationFailedException. The caused exception is required to be serialized. This is by default turned off. If you enable this then be aware that Java will deserialize the in [...] -| *accessLogReceiver* (advanced) | Which Undertow AccessLogReciever should be used Will use JBossLoggingAccessLogReceiver if not specifid | | AccessLogReceiver +| *accessLogReceiver* (advanced) | Which Undertow AccessLogReceiver should be used Will use JBossLoggingAccessLogReceiver if not specifid | | AccessLogReceiver | *basicPropertyBinding* (advanced) | Whether the endpoint should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities | false | boolean | *headerFilterStrategy* (advanced) | To use a custom HeaderFilterStrategy to filter header to and from Camel message. | | HeaderFilterStrategy | *synchronous* (advanced) | Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). | false | boolean diff --git a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowConsumer.java b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowConsumer.java index 508cdc6..245b064 100644 --- a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowConsumer.java +++ b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowConsumer.java @@ -108,14 +108,14 @@ public class UndertowConsumer extends DefaultConsumer implements HttpHandler, Su // allow for HTTP 1.1 continue HttpHandler httpHandler = new EagerFormParsingHandler().setNext(UndertowConsumer.this); if (endpoint.getAccessLog()) { - AccessLogReceiver accessLogReciever = null; + AccessLogReceiver accessLogReceiver = null; if (endpoint.getAccessLogReceiver() != null) { - accessLogReciever = endpoint.getAccessLogReceiver(); + accessLogReceiver = endpoint.getAccessLogReceiver(); } else { - accessLogReciever = new JBossLoggingAccessLogReceiver(); + accessLogReceiver = new JBossLoggingAccessLogReceiver(); } httpHandler = new AccessLogHandler(httpHandler, - accessLogReciever, + accessLogReceiver, "common", AccessLogHandler.class.getClassLoader()); } diff --git a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowEndpoint.java b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowEndpoint.java index 1973321..5d5b42e 100644 --- a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowEndpoint.java +++ b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowEndpoint.java @@ -604,7 +604,7 @@ public class UndertowEndpoint extends DefaultEndpoint implements AsyncEndpoint, } /** - * Which Undertow AccessLogReciever should be used + * Which Undertow AccessLogReceiver should be used * Will use JBossLoggingAccessLogReceiver if not specifid */ public void setAccessLogReceiver(AccessLogReceiver accessLogReceiver) { diff --git a/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/operations/FutureEventDrivenOperation.java b/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/operations/FutureEventDrivenOperation.java index 88bc6e3..c46e31f 100644 --- a/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/operations/FutureEventDrivenOperation.java +++ b/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/operations/FutureEventDrivenOperation.java @@ -52,7 +52,7 @@ public abstract class FutureEventDrivenOperation<ResultType> extends ZooKeeperOp this.event = event; EventType received = event.getType(); if (LOG.isDebugEnabled()) { - LOG.debug(format("Recieved event of type %s for node '%s'", received, event.getPath())); + LOG.debug(format("Received event of type %s for node '%s'", received, event.getPath())); } for (EventType watched : awaitedTypes) { @@ -71,7 +71,7 @@ public abstract class FutureEventDrivenOperation<ResultType> extends ZooKeeperOp if (b.length() > 0) { b.setLength(b.length() - 2); } - LOG.trace(String.format("Recieved event of type %s did not match any watched types %s", received, Arrays.toString(awaitedTypes))); + LOG.trace(String.format("Received event of type %s did not match any watched types %s", received, Arrays.toString(awaitedTypes))); } } diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/UndertowEndpointBuilderFactory.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/UndertowEndpointBuilderFactory.java index b0ab71e..090e789 100644 --- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/UndertowEndpointBuilderFactory.java +++ b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/UndertowEndpointBuilderFactory.java @@ -478,7 +478,7 @@ public interface UndertowEndpointBuilderFactory { return this; } /** - * Which Undertow AccessLogReciever should be used Will use + * Which Undertow AccessLogReceiver should be used Will use * JBossLoggingAccessLogReceiver if not specifid. * * The option is a: @@ -493,7 +493,7 @@ public interface UndertowEndpointBuilderFactory { return this; } /** - * Which Undertow AccessLogReciever should be used Will use + * Which Undertow AccessLogReceiver should be used Will use * JBossLoggingAccessLogReceiver if not specifid. * * The option will be converted to a @@ -1122,7 +1122,7 @@ public interface UndertowEndpointBuilderFactory { return (UndertowEndpointProducerBuilder) this; } /** - * Which Undertow AccessLogReciever should be used Will use + * Which Undertow AccessLogReceiver should be used Will use * JBossLoggingAccessLogReceiver if not specifid. * * The option is a: @@ -1137,7 +1137,7 @@ public interface UndertowEndpointBuilderFactory { return this; } /** - * Which Undertow AccessLogReciever should be used Will use + * Which Undertow AccessLogReceiver should be used Will use * JBossLoggingAccessLogReceiver if not specifid. * * The option will be converted to a @@ -1422,7 +1422,7 @@ public interface UndertowEndpointBuilderFactory { return (UndertowEndpointBuilder) this; } /** - * Which Undertow AccessLogReciever should be used Will use + * Which Undertow AccessLogReceiver should be used Will use * JBossLoggingAccessLogReceiver if not specifid. * * The option is a: @@ -1437,7 +1437,7 @@ public interface UndertowEndpointBuilderFactory { return this; } /** - * Which Undertow AccessLogReciever should be used Will use + * Which Undertow AccessLogReceiver should be used Will use * JBossLoggingAccessLogReceiver if not specifid. * * The option will be converted to a diff --git a/docs/components/modules/ROOT/pages/browse-component.adoc b/docs/components/modules/ROOT/pages/browse-component.adoc index c8fc72d..cb5bf0c 100644 --- a/docs/components/modules/ROOT/pages/browse-component.adoc +++ b/docs/components/modules/ROOT/pages/browse-component.adoc @@ -99,7 +99,7 @@ We can now inspect the received exchanges from within the Java code: ---- private CamelContext context; -public void inspectRecievedOrders() { +public void inspectReceivedOrders() { BrowsableEndpoint browse = context.getEndpoint("browse:orderReceived", BrowsableEndpoint.class); List<Exchange> exchanges = browse.getExchanges(); diff --git a/docs/components/modules/ROOT/pages/undertow-component.adoc b/docs/components/modules/ROOT/pages/undertow-component.adoc index 282c603..aef7161 100644 --- a/docs/components/modules/ROOT/pages/undertow-component.adoc +++ b/docs/components/modules/ROOT/pages/undertow-component.adoc @@ -119,7 +119,7 @@ with the following path and query parameters: | *tcpNoDelay* (producer) | Setting to improve TCP protocol performance | true | Boolean | *throwExceptionOnFailure* (producer) | Option to disable throwing the HttpOperationFailedException in case of failed responses from the remote server. This allows you to get all responses regardless of the HTTP status code. | true | Boolean | *transferException* (producer) | If enabled and an Exchange failed processing on the consumer side and if the caused Exception was send back serialized in the response as a application/x-java-serialized-object content type. On the producer side the exception will be deserialized and thrown as is instead of the HttpOperationFailedException. The caused exception is required to be serialized. This is by default turned off. If you enable this then be aware that Java will deserialize the in [...] -| *accessLogReceiver* (advanced) | Which Undertow AccessLogReciever should be used Will use JBossLoggingAccessLogReceiver if not specifid | | AccessLogReceiver +| *accessLogReceiver* (advanced) | Which Undertow AccessLogReceiver should be used Will use JBossLoggingAccessLogReceiver if not specifid | | AccessLogReceiver | *basicPropertyBinding* (advanced) | Whether the endpoint should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities | false | boolean | *headerFilterStrategy* (advanced) | To use a custom HeaderFilterStrategy to filter header to and from Camel message. | | HeaderFilterStrategy | *synchronous* (advanced) | Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). | false | boolean diff --git a/docs/user-manual/modules/ROOT/pages/exception-clause.adoc b/docs/user-manual/modules/ROOT/pages/exception-clause.adoc index 35474cb..2c52cff 100644 --- a/docs/user-manual/modules/ROOT/pages/exception-clause.adoc +++ b/docs/user-manual/modules/ROOT/pages/exception-clause.adoc @@ -747,7 +747,7 @@ from("jms:queue:order:input") .to("bean:handleOrder"); ---- -Then the message has been enriched with a header named application after the original message was recieved in the JMS endpoint. And in case of an error then the `onException` +Then the message has been enriched with a header named application after the original message was received in the JMS endpoint. And in case of an error then the `onException` will handle the exception and use the original message body and the headers from the current message as-is, which means the headers will include the application header. [[ExceptionClause-AdvancedUsageofExceptionClause]]