Package org.apache.james.jdkim.tagvalue
Class TagValue
java.lang.Object
org.apache.james.jdkim.tagvalue.TagValue
- Direct Known Subclasses:
PublicKeyRecordImpl,SignatureRecordImpl
This class handle a tag=value list string as defined by DKIM specification It
also supports mandatoryTags and default values as a commodity to subclasses.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected Map<String,CharSequence> protected static final boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancontainsTag(String tag) protected voidbooleanprotected CharSequencegetDefault(String key) getTags()protected CharSequenceinthashCode()protected voidinit()protected booleanisInListCaseInsensitive(CharSequence hash, List<CharSequence> hashes) protected Map<String,CharSequence> protected voidsubclasses have to make sure tagValues is initialized during init().protected voidprotected List<CharSequence>stringToColonSeparatedList(String h, Pattern pattern) tagSet()toString()protected CharSequencetrimFWS(CharSequence data, int tStart, int tStop, boolean trimWSP) voidvalidate()
-
Field Details
-
debug
protected boolean debug -
VALIDATION
protected static final boolean VALIDATION- See Also:
-
mandatoryTags
-
defaults
-
-
Constructor Details
-
TagValue
-
-
Method Details
-
tagSet
-
containsTag
-
trimFWS
-
newTagValue
-
init
protected void init() -
parse
subclasses have to make sure tagValues is initialized during init().- Parameters:
data- the string to be parsed
-
hashCode
public int hashCode() -
equals
-
getTags
-
getValue
-
setValue
-
getDefault
-
validate
public void validate() -
stringToColonSeparatedList
-
isInListCaseInsensitive
-
toString
-
debugMsg
- Parameters:
msg- the message
-