@Test public void testExtension() throws MimeTypeException { MimeType doc = types.forName("application/vnd.ms-word"); patterns.add("*.doc", doc); assertEquals(".doc", doc.getExtension()); }
public void add(String pattern, MimeType type) throws MimeTypeException { this.add(pattern, false, type); }
Patterns implements Serializable { public void add(String pattern, MimeType type) throws MimeTypeException { this.add(pattern, false, type); } }
Patterns implements Serializable { public void add(String pattern, MimeType type) throws MimeTypeException { this.add(pattern, false, type); } Patterns(MediaTypeRegistry registry); }
Patterns implements Serializable { public void add(String pattern, MimeType type) throws MimeTypeException { this.add(pattern, false, type); } Patterns(MediaTypeRegistry registry); void add(String pattern, MimeType type); void add(String pattern, boolean isJavaRegex, MimeType type); MimeType matches(String name); }
Patterns implements Serializable { public void add(String pattern, MimeType type) throws MimeTypeException { this.add(pattern, false, type); } Patterns(MediaTypeRegistry registry); void add(String pattern, MimeType type); void add(String pattern, boolean isJavaRegex, MimeType type); MimeType matches(String name);  }