public class NameValueHeaderValue
extends java.lang.Object
Represents a name/value pair that describe a header value.
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) |
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) |
public NameValueHeaderValue(java.lang.String name, com.aspose.ms.System.Collections.Specialized.NameValueCollection collection)
Initializes a new instance of the NameValueHeaderValue
class.
name
- The name.collection
- The collection.public NameValueHeaderValue(java.lang.String name, java.lang.String value)
public static void toString(com.aspose.ms.System.Collections.Generic.List<NameValueHeaderValue> values, char separator, boolean leadingSeparator, com.aspose.ms.System.Text.msStringBuilder destination)
public static NameValueHeaderValue find(com.aspose.ms.System.Collections.Generic.List<NameValueHeaderValue> values, java.lang.String name)
public java.lang.String getName()
Gets the parameter name.
Value: The name.public java.lang.String getValue()
Gets or sets the parameter value.
Value: The value.public void setValue(java.lang.String value)
Gets or sets the parameter value.
Value: The value.public java.lang.String toString()
Returns a System.String
that represents this instance.
toString
in class java.lang.Object
System.String
that represents this instance.