Class Form

    • Method Detail

      • create

        public static Form create()
        Create an empty Form.
      • add

        public Form add​(String paramName,
                        String paramValue)
        Add a parameter entry to the Form.
      • toUrlEncodedString

        public String toUrlEncodedString()
        Encode the Form using the "application/x-www-form-urlencoded" Content-Type. Each form parameter is represented as "key=value" where both key and value are url-encoded.
        Returns:
        the url-encoded representation of the form.