You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by al...@apache.org on 2021/11/09 11:02:14 UTC
[camel] 05/06: CAMEL-17178: Fix wrong HTTP links to Jackson JSON
Views
This is an automated email from the ASF dual-hosted git repository.
aldettinger pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 79aab5dcf7154477886b4abbf3e9212b58c91db3
Author: aldettinger <al...@gmail.com>
AuthorDate: Tue Nov 9 10:56:37 2021 +0100
CAMEL-17178: Fix wrong HTTP links to Jackson JSON Views
---
.../apache/camel/component/jackson/AbstractJacksonDataFormat.java | 4 ++--
.../camel-jacksonxml/src/main/docs/jacksonxml-dataformat.adoc | 4 ++--
.../org/apache/camel/component/jacksonxml/JacksonXMLDataFormat.java | 6 +++---
3 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/AbstractJacksonDataFormat.java b/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/AbstractJacksonDataFormat.java
index 377b720..d5c62ce 100644
--- a/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/AbstractJacksonDataFormat.java
+++ b/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/AbstractJacksonDataFormat.java
@@ -102,7 +102,7 @@ public abstract class AbstractJacksonDataFormat extends ServiceSupport
*
* @param unmarshalType the custom unmarshal type
* @param jsonView marker class to specify properties to be included during marshalling. See also
- * https://github.com/FasterXML/JacksonJsonViews
+ * https://github.com/FasterXML/jackson-annotations/blob/master/src/main/java/com/fasterxml/jackson/annotation/JsonView.java
*/
public AbstractJacksonDataFormat(Class<?> unmarshalType, Class<?> jsonView) {
this.unmarshalType = unmarshalType;
@@ -125,7 +125,7 @@ public abstract class AbstractJacksonDataFormat extends ServiceSupport
* @param mapper the custom mapper
* @param unmarshalType the custom unmarshal type
* @param jsonView marker class to specify properties to be included during marshalling. See also
- * https://github.com/FasterXML/JacksonJsonViews
+ * https://github.com/FasterXML/jackson-annotations/blob/master/src/main/java/com/fasterxml/jackson/annotation/JsonView.java
*/
public AbstractJacksonDataFormat(ObjectMapper mapper, Class<?> unmarshalType, Class<?> jsonView) {
this.objectMapper = mapper;
diff --git a/components/camel-jacksonxml/src/main/docs/jacksonxml-dataformat.adoc b/components/camel-jacksonxml/src/main/docs/jacksonxml-dataformat.adoc
index f1dc23f..2cb7d50 100644
--- a/components/camel-jacksonxml/src/main/docs/jacksonxml-dataformat.adoc
+++ b/components/camel-jacksonxml/src/main/docs/jacksonxml-dataformat.adoc
@@ -78,7 +78,7 @@ And then you can refer to this id in the route:
When marshalling a POJO to XML you might want to exclude certain fields
from the XML output. With Jackson you can
-use https://github.com/FasterXML/JacksonJsonViews[JSON views] to accomplish
+use https://github.com/FasterXML/jackson-annotations/blob/master/src/main/java/com/fasterxml/jackson/annotation/JsonView.java[JSON views] to accomplish
this. First create one or more marker classes.
Use the marker classes with the `@JsonView` annotation to
@@ -105,7 +105,7 @@ from("direct:inPojoAgeView").
marshal(ageViewFormat);
---------------------------------------------------------------------------------------------------
-Directly specify your https://github.com/FasterXML/JacksonJsonViews[JSON
+Directly specify your https://github.com/FasterXML/jackson-annotations/blob/master/src/main/java/com/fasterxml/jackson/annotation/JsonView.java[JSON
view] inside the Java DSL as:
[source,java]
diff --git a/components/camel-jacksonxml/src/main/java/org/apache/camel/component/jacksonxml/JacksonXMLDataFormat.java b/components/camel-jacksonxml/src/main/java/org/apache/camel/component/jacksonxml/JacksonXMLDataFormat.java
index 141a5cc..b901186 100644
--- a/components/camel-jacksonxml/src/main/java/org/apache/camel/component/jacksonxml/JacksonXMLDataFormat.java
+++ b/components/camel-jacksonxml/src/main/java/org/apache/camel/component/jacksonxml/JacksonXMLDataFormat.java
@@ -102,7 +102,7 @@ public class JacksonXMLDataFormat extends ServiceSupport
*
* @param unmarshalType the custom unmarshal type
* @param jsonView marker class to specify properties to be included during marshalling. See also
- * https://github.com/FasterXML/JacksonJsonViews
+ * https://github.com/FasterXML/jackson-annotations/blob/master/src/main/java/com/fasterxml/jackson/annotation/JsonView.java
*/
public JacksonXMLDataFormat(Class<?> unmarshalType, Class<?> jsonView) {
this(unmarshalType, jsonView, true);
@@ -113,7 +113,7 @@ public class JacksonXMLDataFormat extends ServiceSupport
*
* @param unmarshalType the custom unmarshal type
* @param jsonView marker class to specify properties to be included during marshalling. See also
- * https://github.com/FasterXML/JacksonJsonViews
+ * https://github.com/FasterXML/jackson-annotations/blob/master/src/main/java/com/fasterxml/jackson/annotation/JsonView.java
* @param enableJaxbAnnotationModule if it is true, will enable the JaxbAnnotationModule.
*/
public JacksonXMLDataFormat(Class<?> unmarshalType, Class<?> jsonView, boolean enableJaxbAnnotationModule) {
@@ -138,7 +138,7 @@ public class JacksonXMLDataFormat extends ServiceSupport
* @param mapper the custom mapper
* @param unmarshalType the custom unmarshal type
* @param jsonView marker class to specify properties to be included during marshalling. See also
- * https://github.com/FasterXML/JacksonJsonViews
+ * https://github.com/FasterXML/jackson-annotations/blob/master/src/main/java/com/fasterxml/jackson/annotation/JsonView.java
*/
public JacksonXMLDataFormat(XmlMapper mapper, Class<?> unmarshalType, Class<?> jsonView) {
this.xmlMapper = mapper;