Constructor.parampattern the pattern to search for // Note: comparison is case-insensitive super(pattern);
// Note: comparison is case-insensitive super(pattern);
Equality comparison. if (!(obj instanceof SubjectTerm)) return false; return super.equals(obj);
if (!(obj instanceof SubjectTerm)) return false; return super.equals(obj);
The match method.parammsg the pattern match is applied to this Message's subject headerreturntrue if the pattern match succeeds, otherwise false String subj; try { subj = msg.getSubject(); } catch (Exception e) { return false; } if (subj == null) return false; return super.match(subj);
String subj; try { subj = msg.getSubject(); } catch (Exception e) { return false; } if (subj == null) return false; return super.match(subj);