Class AbstractHttpFields<T extends HttpFields<T>>

    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,V extends java.lang.Object>
      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,V extends java.lang.Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractHttpFields()
      Instantiates an empty instance.
      AbstractHttpFields​(java.util.Map<java.lang.String,java.util.List<java.lang.String>> aHttpFields)
      Initializes the instance with the fields provided by the given Map.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      protected static void copyHttpFields​(java.util.Map<java.lang.String,java.util.List<java.lang.String>> aFromFields, HttpFields<?> aToFields)
      Copies the provided "from" fields into the provided "to" fields.
      • Methods inherited from class java.util.AbstractMap

        equals, hashCode, toString
      • Methods inherited from class java.util.HashMap

        clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
      • Methods inherited from interface java.util.Map

        clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AbstractHttpFields

        public AbstractHttpFields()
        Instantiates an empty instance.
      • AbstractHttpFields

        public AbstractHttpFields​(java.util.Map<java.lang.String,java.util.List<java.lang.String>> aHttpFields)
        Initializes the instance with the fields provided by the given Map.
        Parameters:
        aHttpFields - The Map from which to get the keys and values for initializing this instance.
    • Method Detail

      • copyHttpFields

        protected static void copyHttpFields​(java.util.Map<java.lang.String,java.util.List<java.lang.String>> aFromFields,
                                             HttpFields<?> aToFields)
        Copies the provided "from" fields into the provided "to" fields. Omits empty or null values.
        Parameters:
        aFromFields - The fields from which to copy.
        aToFields - The fields to which to copy.