From 9cbd5867fe73ef07ecba6f16d64689632e3f2a16 Mon Sep 17 00:00:00 2001 From: Claus Ibsen Date: Thu, 12 Nov 2015 19:02:38 +0100 Subject: [PATCH] CAMEL-9309: Make it easier to turn on|off java transport over http --- .../camel/component/http/HttpComponent.java | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) 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; } + }