abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dand...@apache.org
Subject svn commit: r618683 - in /incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server: TargetType.java impl/AbstractProvider.java
Date Tue, 05 Feb 2008 16:11:50 GMT
Author: dandiep
Date: Tue Feb  5 08:11:42 2008
New Revision: 618683

URL: http://svn.apache.org/viewvc?rev=618683&view=rev
Log:
Make a not found target type which results in a 404.

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

Modified: incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/TargetType.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/TargetType.java?rev=618683&r1=618682&r2=618683&view=diff
==============================================================================
--- incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/TargetType.java
(original)
+++ incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/TargetType.java
Tue Feb  5 08:11:42 2008
@@ -26,6 +26,7 @@
 public final class TargetType {
 
   public static final String UNKNOWN = "UNKNOWN";
+  public static final String NOT_FOUND = "NOT_FOUND";
   public static final String SERVICE = "SERVICE";
   public static final String COLLECTION = "COLLECTION";
   public static final String ENTRY = "ENTRY";
@@ -39,6 +40,10 @@
    * An unknown target type
    */
   public static final TargetType TYPE_UNKNOWN = new TargetType(UNKNOWN);
+  /**
+   * A not found target type
+   */
+  public static final TargetType TYPE_NOT_FOUND = new TargetType(NOT_FOUND);
   /**
    * An Atompub Service Document
    */

Modified: incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractProvider.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractProvider.java?rev=618683&r1=618682&r2=618683&view=diff
==============================================================================
--- incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractProvider.java
(original)
+++ incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractProvider.java
Tue Feb  5 08:11:42 2008
@@ -167,6 +167,8 @@
           } else {
             response = ProviderHelper.notsupported(request);
           }
+        } else if (type == TargetType.TYPE_NOT_FOUND) {
+          response = ProviderHelper.notfound(request);
         } else {
           response = adapter.extensionRequest(request);
         }



Mime
View raw message