Package org.kissweb

Class URLBuilder

java.lang.Object
org.kissweb.URLBuilder

public class URLBuilder extends Object
A class used to process URL escape sequences.

Author: Blake McBride
Date: 12/20/21
  • Constructor Details

    • URLBuilder

      public URLBuilder(String url)
      Create a URLBuilder passing it the full URL minus any URL parameters.
      Parameters:
      url -
  • Method Details

    • addParameter

      public URLBuilder addParameter(String param, String value)
      Add a parameter to the URL. This method correctly escapes the arguments.
      Parameters:
      param -
      value -
      Returns:
    • build

      public String build()
      Return the final usable URL.
      Returns:
    • encodeURLString

      public static String encodeURLString(String s)
      URL encode a string.
      Parameters:
      s -
      Returns: