abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r550712 - /incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/provider/AbstractProvider.java
Date Tue, 26 Jun 2007 06:46:35 GMT
Author: jmsnell
Date: Mon Jun 25 23:46:34 2007
New Revision: 550712

URL: http://svn.apache.org/viewvc?view=rev&rev=550712
Log:
proper forbidden and unauthorized utility methods

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=550712&r1=550711&r2=550712
==============================================================================
--- 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
Mon Jun 25 23:46:34 2007
@@ -94,6 +94,20 @@
     String reason) {
       return returnBase(
         createErrorDocument(
+          abdera, 401, 
+          reason, null), 
+        401, null);
+  }
+  
+  /**
+   * Return an unauthorized error
+   */
+  protected ResponseContext forbidden(
+    Abdera abdera,
+    RequestContext request,
+    String reason) {
+      return returnBase(
+        createErrorDocument(
           abdera, 403, 
           reason, null), 
         403, null);



Mime
View raw message