abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r441222 - /incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/MimeTypeHelper.java
Date Thu, 07 Sep 2006 20:52:00 GMT
Author: jmsnell
Date: Thu Sep  7 13:51:59 2006
New Revision: 441222

URL: http://svn.apache.org/viewvc?view=rev&rev=441222
Log:
Use the constant for "application/xml"

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=441222&r1=441221&r2=441222
==============================================================================
--- 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
Thu Sep  7 13:51:59 2006
@@ -39,7 +39,7 @@
   }
   
   public static boolean isXml(String a) {
-    boolean answer = isMatch("application/xml", a) || isMatch("text/xml", a);
+    boolean answer = isMatch(Constants.XML_MEDIA_TYPE, a) || isMatch("text/xml", a);
     if (!answer) {
       try { 
         MimeType mta = new MimeType(a);



Mime
View raw message