public class MimeMatcher<T>
extends java.lang.Object
| Constructor and Description |
|---|
MimeMatcher() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRule(java.lang.String ruleExpression,
T resultIfMatched)
Add a matching rule in the canonical MIME T form such as "image/*" or a MIME T
literal such as "text/html".
|
void |
clear() |
T |
match(java.lang.String mimeT) |
public void addRule(java.lang.String ruleExpression,
T resultIfMatched)
ruleExpression - Expression to match, in the order it was added.resultIfMatched - Result if this expression matches.public void clear()
public T match(java.lang.String mimeT)