abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r550937 - /incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/provider/AbstractProvider.java
Date Tue, 26 Jun 2007 20:40:33 GMT
Author: jmsnell
Date: Tue Jun 26 13:40:32 2007
New Revision: 550937

URL: http://svn.apache.org/viewvc?view=rev&rev=550937
Log:
Add preconditionfailed error response

Modified:
    incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/provider/AbstractProvider.java

Modified: incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/provider/AbstractProvider.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/provider/AbstractProvider.java?view=diff&rev=550937&r1=550936&r2=550937
==============================================================================
--- incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/provider/AbstractProvider.java
(original)
+++ incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/provider/AbstractProvider.java
Tue Jun 26 13:40:32 2007
@@ -198,6 +198,16 @@
         304, null);
   }
 
+  protected ResponseContext preconditionfailed(
+    Abdera abdera, 
+    RequestContext request,
+    String reason) {
+      return returnBase(
+        createErrorDocument(
+          abdera, 412, 
+          reason, null), 
+        412, null);
+  }
   
   /**
    * Return a 415 media type not-supported error



Mime
View raw message