abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r442777 - /incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/MimeTypeHelper.java
Date Wed, 13 Sep 2006 00:49:32 GMT
Author: jmsnell
Date: Tue Sep 12 17:49:31 2006
New Revision: 442777

URL: http://svn.apache.org/viewvc?view=rev&rev=442777
Log:
Add isAtom and isApp checks

Modified:
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/MimeTypeHelper.java

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/MimeTypeHelper.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/MimeTypeHelper.java?view=diff&rev=442777&r1=442776&r2=442777
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/MimeTypeHelper.java
(original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/MimeTypeHelper.java
Tue Sep 12 17:49:31 2006
@@ -38,6 +38,14 @@
     return answer;
   }
   
+  public static boolean isApp(String a) {
+    return isMatch(Constants.APP_MEDIA_TYPE, a);
+  }
+  
+  public static boolean isAtom(String a) {
+    return isMatch(Constants.ATOM_MEDIA_TYPE, a);
+  }
+  
   public static boolean isXml(String a) {
     boolean answer = isMatch(Constants.XML_MEDIA_TYPE, a) || isMatch("text/xml", a);
     if (!answer) {



Mime
View raw message