com.aspose.html.net.headers

Class NameValueHeaderValue

  • Direct Known Subclasses:
    ContentTypeHeaderValue


    public class NameValueHeaderValue
    extends Object

    Represents a name/value pair that describe a header value.

    • Constructor Detail

      • NameValueHeaderValue

        public NameValueHeaderValue(String name,
                                    com.aspose.html.internal.ms.System.Collections.Specialized.NameValueCollection collection)

        Initializes a new instance of the NameValueHeaderValue class.

        Parameters:
        name - The name.
        collection - The collection.
      • NameValueHeaderValue

        public NameValueHeaderValue(String name,
                                    String value)
    • Method Detail

      • toString

        public static void toString(com.aspose.html.internal.ms.System.Collections.Generic.List<NameValueHeaderValue> values,
                                    char separator,
                                    boolean leadingSeparator,
                                    com.aspose.html.internal.ms.System.Text.msStringBuilder destination)
      • getName

        public String getName()

        Gets the parameter name.

        Value: The name.
      • getValue

        public String getValue()

        Gets or sets the parameter value.

        Value: The value.
      • setValue

        public void setValue(String value)

        Gets or sets the parameter value.

        Value: The value.
      • toString

        public String toString()

        Returns a System.String that represents this instance.

        Overrides:
        toString in class Object
        Returns:
        A System.String that represents this instance.