Exemplo n.º 1
0
 /**
  * Returns the content type extension of a request (without an optional encoding).
  *
  * @return content type
  */
 public String contentTypeExt() {
   final String ct = req.getContentType();
   return ct != null ? ct.replaceFirst("^.*?;\\s*", "") : null;
 }