com.aspose.html

Interface IUrlSearchParams

  • All Superinterfaces:
    com.aspose.ms.System.Collections.IEnumerable<String[]>, com.aspose.ms.System.Collections.Generic.IGenericEnumerable<String[]>, Iterable<String[]>


    @DOMObjectAttribute
     @DOMNameAttribute(name="UrlSearchParams")
    public interface IUrlSearchParams
    extends com.aspose.ms.System.Collections.Generic.IGenericEnumerable<String[]>

    Provides methods to work with URLs query string.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void append(String name, String value)
      Appends a new name-value pair whose name is name and value is value.
      void delete(String name)
      Removes all name-value pairs whose name is name.
      String get(String name)
      Returns value of the first name-value pair whose name is name.
      com.aspose.ms.System.Collections.Generic.List<String> getAll(String name)
      Returns all values whose name is name.
      boolean has(String name)
      Checks if there is a name-value pair whose name is name in list.
      void set(String name, String value)
      Sets value of the first found name-value pair to the specified value and removes the others.
      void sort()
      Sorts all name-value pairs, if any, by their names.
      • Methods inherited from interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable

        iterator
    • Method Detail

      • append

        @DOMNameAttribute(name="append")
        void append(String name,
                                                      String value)

        Appends a new name-value pair whose name is name and value is value.

        Parameters:
        name - Name of the new name-value pair.
        value - Value of the new name-value pair.
      • delete

        @DOMNameAttribute(name="delete")
        void delete(String name)

        Removes all name-value pairs whose name is name.

        Parameters:
        name - Key which will be used to find name-value pairs.
      • get

        @DOMNameAttribute(name="get")
        String get(String name)

        Returns value of the first name-value pair whose name is name.

        Parameters:
        name - Key which will be used to find name-value pair.
        Returns:
        Value of the first name-value pair whose name is name or null if there is none.
      • getAll

        @DOMNameAttribute(name="getAll")
        com.aspose.ms.System.Collections.Generic.List<String> getAll(String name)

        Returns all values whose name is name.

        Parameters:
        name - Key which will be used to find name-value pair.
        Returns:
        List containing all values whose name is name.
      • has

        @DOMNameAttribute(name="has")
        boolean has(String name)

        Checks if there is a name-value pair whose name is name in list.

        Parameters:
        name - Key which will be used to find name-value pair.
        Returns:
        True if there is a name-value pair whose name is name in list, and false otherwise.
      • set

        @DOMNameAttribute(name="set")
        void set(String name,
                                                String value)

        Sets value of the first found name-value pair to the specified value and removes the others. If no name-value pairs with the specified name are found, new one will be appended to the list.

        Parameters:
        name - Key which will be used to find name-value pairs.
        value - Value which will be set.