public class NameValueHeaderValue extends Object
Represents a name/value pair that describe a header value.
Constructor and Description |
---|
NameValueHeaderValue(String name,
com.aspose.html.internal.ms.System.Collections.Specialized.NameValueCollection collection)
Initializes a new instance of the
NameValueHeaderValue class. |
NameValueHeaderValue(String name,
String value) |
Modifier and Type | Method and Description |
---|---|
static NameValueHeaderValue |
find(com.aspose.html.internal.ms.System.Collections.Generic.List<NameValueHeaderValue> values,
String name) |
String |
getName()
Gets the parameter name.
|
String |
getValue()
Gets or sets the parameter value.
|
void |
setValue(String value)
Gets or sets the parameter value.
|
String |
toString()
Returns a
System.String that represents this instance. |
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) |
public NameValueHeaderValue(String name, com.aspose.html.internal.ms.System.Collections.Specialized.NameValueCollection collection)
Initializes a new instance of the NameValueHeaderValue
class.
name
- The name.collection
- The collection.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)
public static NameValueHeaderValue find(com.aspose.html.internal.ms.System.Collections.Generic.List<NameValueHeaderValue> values, String name)
public String getName()
Gets the parameter name.
Value: The name.public String getValue()
Gets or sets the parameter value.
Value: The value.public void setValue(String value)
Gets or sets the parameter value.
Value: The value.