@Immutable public class MimeTypeParameter extends Object implements Serializable
| Constructor and Description |
|---|
MimeTypeParameter(String sAttribute,
String sValue)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getAttribute() |
String |
getValue() |
String |
getValueQuotedIfNecessary(EMimeQuoting eQuotingAlgorithm) |
int |
hashCode() |
boolean |
isValueRequiringQuoting() |
String |
toString() |
public MimeTypeParameter(@Nonnull@Nonempty String sAttribute, @Nonnull@Nonempty String sValue)
sAttribute - Parameter name. Must neither be null nor empty and must
match MimeTypeParser.isToken(String).sValue - The value to use. May neither be null nor empty. Must
not be a valid MIME token.@Nonnull @Nonempty public String getAttribute()
null nor empty and
confirmed to be a valid MIME token.@Nonnull @Nonempty public String getValue()
null nor empty. No
quoting or escaping is applied to this value!public boolean isValueRequiringQuoting()
true if the value required quoting/escaping. This is
determined by checking, if the value is a valid MIME token in which
case no quoting is necessary.@Nonnull @Nonempty public String getValueQuotedIfNecessary(@Nonnull EMimeQuoting eQuotingAlgorithm)
eQuotingAlgorithm - The quoting algorithm to be used. May not be null.null nor empty. If
necessary, quoting is applied according to the passed algorithm.Copyright © 2006–2015 phloc systems. All rights reserved.