@@ -68,7 +68,7 @@ public class JacksonDataFormat extends ServiceSupport implements DataFormat, Dat
68
68
private String enableFeatures ;
69
69
private String disableFeatures ;
70
70
private boolean enableJacksonTypeConverter ;
71
- private boolean allowJacksonUnmarshallType ;
71
+ private boolean allowUnmarshallType ;
72
72
73
73
/**
74
74
* Use the default Jackson {@link ObjectMapper} and {@link Object}
@@ -160,7 +160,7 @@ public Object unmarshal(Exchange exchange, InputStream stream) throws Exception
160
160
// is there a header with the unmarshal type?
161
161
Class <?> clazz = unmarshalType ;
162
162
String type = null ;
163
- if (allowJacksonUnmarshallType ) {
163
+ if (allowUnmarshallType ) {
164
164
type = exchange .getIn ().getHeader (JacksonConstants .UNMARSHAL_TYPE , String .class );
165
165
}
166
166
if (type == null && isAllowJmsType ()) {
@@ -331,17 +331,17 @@ public void setEnableJacksonTypeConverter(boolean enableJacksonTypeConverter) {
331
331
this .enableJacksonTypeConverter = enableJacksonTypeConverter ;
332
332
}
333
333
334
- public boolean isAllowJacksonUnmarshallType () {
335
- return allowJacksonUnmarshallType ;
334
+ public boolean isAllowUnmarshallType () {
335
+ return allowUnmarshallType ;
336
336
}
337
337
338
338
/**
339
339
* If enabled then Jackson is allowed to attempt to use the CamelJacksonUnmarshalType header during the unmarshalling.
340
340
* <p/>
341
341
* This should only be enabled when desired to be used.
342
342
*/
343
- public void setAllowJacksonUnmarshallType (boolean allowJacksonUnmarshallType ) {
344
- this .allowJacksonUnmarshallType = allowJacksonUnmarshallType ;
343
+ public void setAllowUnmarshallType (boolean allowJacksonUnmarshallType ) {
344
+ this .allowUnmarshallType = allowJacksonUnmarshallType ;
345
345
}
346
346
347
347
public String getEnableFeatures () {
0 commit comments