diff --git a/components/camel-http/src/main/java/org/apache/camel/component/http/HttpComponent.java b/components/camel-http/src/main/java/org/apache/camel/component/http/HttpComponent.java index a2ccd51250da8..851b42b18f4d2 100644 --- a/components/camel-http/src/main/java/org/apache/camel/component/http/HttpComponent.java +++ b/components/camel-http/src/main/java/org/apache/camel/component/http/HttpComponent.java @@ -349,23 +349,12 @@ public void setHttpConfiguration(HttpConfiguration httpConfiguration) { this.httpConfiguration = httpConfiguration; } - public boolean isAllowJavaSerializedObject() { - return allowJavaSerializedObject; - } - public void setAllowJavaSerializedObject(boolean allowJavaSerializedObject) { this.allowJavaSerializedObject = allowJavaSerializedObject; } - /** - * Whether to allow java serialization when a request uses context-type=application/x-java-serialized-object - *

- * This is by default turned off. If you enable this then be aware that Java will deserialize the incoming - * data from the request to Java and that can be a potential security risk. - */ - @Override - public void setAllowJavaSerializedObject(boolean allowJavaSerializedObject) { - // need to override and call super for component docs - super.setAllowJavaSerializedObject(allowJavaSerializedObject); + public boolean isAllowJavaSerializedObject() { + return allowJavaSerializedObject; } + }