public static final class ContentType.Parameter
extends java.lang.Object
parameter := attribute "=" value
attribute := token
; Matching of attributes
; is ALWAYS case-insensitive.
value := token / quoted-string
token := 1*
tspecials := "(" / ")" / "<" / ">" / "@" /
"," / ";" / ":" / "\" / <">
"/" / "[" / "]" / "?" / "="
; Must be in quoted-string,
; to use within parameter values
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
attribute |
java.lang.String |
value |
| Constructor and Description |
|---|
Parameter(java.lang.String paramString)
Create a new parameter from parsing a parameter string that looks like.
|
Parameter(java.lang.String key,
java.lang.String value)
Create a new parameter from a key value pair.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.lang.String |
toString() |
public final java.lang.String attribute
public final java.lang.String value
public Parameter(java.lang.String paramString)
parameter := attribute "=" value
paramString - The parameter string.public Parameter(java.lang.String key,
java.lang.String value)
key - The key.value - The value.