diff --git a/source/net/yacy/cora/protocol/HeaderFramework.java b/source/net/yacy/cora/protocol/HeaderFramework.java index 415eb4937..f3a7033b1 100644 --- a/source/net/yacy/cora/protocol/HeaderFramework.java +++ b/source/net/yacy/cora/protocol/HeaderFramework.java @@ -47,9 +47,6 @@ import net.yacy.cora.util.ConcurrentLog; * keys are not compared by the equal() method, but are always * treated as string and compared as * key.uppercase().equal(.uppercase(comparator)) - * You use this class by first creation of a static HashMap - * that then is used a the reverse mapping cache for every new - * instance of this class. */ public class HeaderFramework extends TreeMap implements Map { @@ -211,26 +208,13 @@ public class HeaderFramework extends TreeMap implements Map reverseMappingCache; - public HeaderFramework() { - this(null); - } - - public HeaderFramework(final Map reverseMappingCache) { - // this creates a new TreeMap with a case insensitive mapping - // to provide a put-method that translates given keys into their - // 'proper' appearance, a translation cache is needed. - // upon instantiation, such a mapping cache can be handed over - // If the reverseMappingCache is null, none is used super(ASCII.insensitiveASCIIComparator); - this.reverseMappingCache = reverseMappingCache; } - public HeaderFramework(final Map reverseMappingCache, final Map othermap) { + public HeaderFramework(final Map othermap) { // creates a case insensitive map from another map super(ASCII.insensitiveASCIIComparator); - this.reverseMappingCache = reverseMappingCache; // load with data if (othermap != null) putAll(othermap); @@ -304,26 +288,6 @@ public class HeaderFramework extends TreeMap implements Map reverseMappingCache) { - super(reverseMappingCache); - this.put(HeaderFramework.STATUS_CODE, Integer.toString(statusCode)); - } - - public ResponseHeader(final HashMap reverseMappingCache, final Map othermap) { - super(reverseMappingCache, othermap); + public ResponseHeader(final Map othermap) { + super(othermap); } public int getStatusCode() {