public static final class ContentType.Parameter extends Object
parameter
definition in RFC 2045.
Immutable class.Constructor and Description |
---|
ContentType.Parameter(String attribute,
String value)
Constructs a new Parameter.
|
Modifier and Type | Method and Description |
---|---|
String |
getAttribute()
Returns attribute.
|
String |
getQuoteValue()
Returns the quoted value of this parameter.
|
String |
getValue()
Returns value, unquoted.
|
String |
toString()
Returns a formatted
attribute=value string. |
public ContentType.Parameter(String attribute, String value)
attribute
- valid attribute tokenvalue
- unquoted, raw valueIllegalArgumentException
- if attribute or value is invalidCopyright © 2012. All Rights Reserved.