Package 

Class URLBuilder


  • 
    public final class URLBuilder
    
                        

    URL builder that automaticaly manage GET parameters

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public enum URLBuilder.CryptorMode

      Mode to crypt get parameters

    • Method Summary

      Modifier and Type Method Description
      static Map<String, String> parseQuery(String query) Parse GET parameters string
      void addGETParameter(String key, String value) Add a GET parameter to the query, if this parameter is already set, it will be overriddenThis method do not URL encode the key or value !
      void removeGETParameter(String key) Remove the GET parameter with the given key
      URL build() Build the query to an URL object
      URL build(PatternURLSorter sorter, Cryptor cryptor) Build the query according to a sorter.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • addGETParameter

         void addGETParameter(String key, String value)

        Add a GET parameter to the query, if this parameter is already set, it will be overriddenThis method do not URL encode the key or value !

      • build

         URL build()

        Build the query to an URL object

      • build

         URL build(PatternURLSorter sorter, Cryptor cryptor)

        Build the query according to a sorter.