Class AddressParser.ParameterMap

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<java.lang.String>, java.util.Map<java.lang.String,​java.lang.String>
    Enclosing class:
    AddressParser

    private class AddressParser.ParameterMap
    extends KeyMap<java.lang.String>
    The ParameterMap is uses to store the parameters that are to be encoded in to the address. This will append all of the parameters to the end of the path. These can later be extracted by parsing the address.
    • 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>
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ParameterMap()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private java.lang.String encode()
      This will return the parameters encoded in such a way that it can be appended to the end of the path.
      java.lang.String toString()
      This will return the parameters encoded in such a way that it can be appended to the end of the path.
      • Methods inherited from class java.util.LinkedHashMap

        clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
      • Methods inherited from class java.util.HashMap

        clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
      • Methods inherited from class java.util.AbstractMap

        equals, hashCode
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
      • Methods inherited from interface java.util.Map

        compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
    • Constructor Detail

      • ParameterMap

        private ParameterMap()
    • Method Detail

      • encode

        private java.lang.String encode()
        This will return the parameters encoded in such a way that it can be appended to the end of the path. These parameters can be added to the address such that they do not form a query parameter. Values such as session identifiers are often added as the path parameters to the address.
        Returns:
        this returns the representation of the parameters
      • toString

        public java.lang.String toString()
        This will return the parameters encoded in such a way that it can be appended to the end of the path. These parameters can be added to the address such that they do not form a query parameter. Values such as session identifiers are often added as the path parameters to the address.
        Overrides:
        toString in class java.util.AbstractMap<java.lang.String,​java.lang.String>
        Returns:
        this returns the representation of the parameters