com.aspose.html.net.headers

Class NameValueHeaderValue

  • java.lang.Object
    • com.aspose.html.net.headers.NameValueHeaderValue
  • Direct Known Subclasses:
    ContentTypeHeaderValue


    public class NameValueHeaderValue
    extends java.lang.Object

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

    • Constructor Summary

      Constructors 
      Constructor and Description
      NameValueHeaderValue(java.lang.String name, com.aspose.ms.System.Collections.Specialized.NameValueCollection collection)
      Initializes a new instance of the NameValueHeaderValue class.
      NameValueHeaderValue(java.lang.String name, java.lang.String value) 
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      static NameValueHeaderValue find(com.aspose.ms.System.Collections.Generic.List<NameValueHeaderValue> values, java.lang.String name) 
      java.lang.String getName()
      Gets the parameter name.
      java.lang.String getValue()
      Gets or sets the parameter value.
      void setValue(java.lang.String value)
      Gets or sets the parameter value.
      java.lang.String toString()
      Returns a System.String that represents this instance.
      static void toString(com.aspose.ms.System.Collections.Generic.List<NameValueHeaderValue> values, char separator, boolean leadingSeparator, com.aspose.ms.System.Text.msStringBuilder destination) 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • NameValueHeaderValue

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

        Initializes a new instance of the NameValueHeaderValue class.

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

        public NameValueHeaderValue(java.lang.String name,
                                    java.lang.String value)
    • Method Detail

      • toString

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

        public java.lang.String getName()

        Gets the parameter name.

        Value: The name.
      • getValue

        public java.lang.String getValue()

        Gets or sets the parameter value.

        Value: The value.
      • setValue

        public void setValue(java.lang.String value)

        Gets or sets the parameter value.

        Value: The value.
      • toString

        public java.lang.String toString()

        Returns a System.String that represents this instance.

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