Class ParamSupport.ParamManager

  • Enclosing class:
    ParamSupport

    public static class ParamSupport.ParamManager
    extends java.lang.Object
    Provides support for aggregating query parameters in URLs. Specifically, accepts a series of parameters, ensuring that - newer parameters will precede older ones in the output URL - all supplied parameters precede those in the input URL
    • Constructor Summary

      Constructors 
      Constructor Description
      ParamManager()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addParameter​(java.lang.String name, java.lang.String value)
      Adds a new parameter to the list.
      java.lang.String aggregateParams​(java.lang.String url)
      Produces a new URL with the stored parameters, in the appropriate order.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ParamManager

        public ParamManager()
    • Method Detail

      • addParameter

        public void addParameter​(java.lang.String name,
                                 java.lang.String value)
        Adds a new parameter to the list.
      • aggregateParams

        public java.lang.String aggregateParams​(java.lang.String url)
        Produces a new URL with the stored parameters, in the appropriate order.