abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r628805 - in /incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server: context/AbstractRequestContext.java impl/AbstractTarget.java
Date Mon, 18 Feb 2008 16:45:33 GMT
Author: jmsnell
Date: Mon Feb 18 08:45:32 2008
New Revision: 628805

URL: http://svn.apache.org/viewvc?rev=628805&view=rev
Log:
per https://issues.apache.org/jira/browse/ABDERA-124

Modified:
    incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/context/AbstractRequestContext.java
    incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractTarget.java

Modified: incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/context/AbstractRequestContext.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/context/AbstractRequestContext.java?rev=628805&r1=628804&r2=628805&view=diff
==============================================================================
--- incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/context/AbstractRequestContext.java
(original)
+++ incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/context/AbstractRequestContext.java
Mon Feb 18 08:45:32 2008
@@ -69,7 +69,7 @@
   protected Target initTarget() {
     try {
       Target target = provider.resolveTarget(this);
-      return target != null ? target : new UnknownTarget(this);
+      return target != null ? target : new AbstractTarget(TargetType.TYPE_NOT_FOUND, this);
     } catch (Exception e) {
       throw new RuntimeException(e);
     }
@@ -189,11 +189,4 @@
       return getResolvedUri().resolve(
         urlFor(key,param)).toString();
     }
-  
-  public static class UnknownTarget 
-    extends AbstractTarget {
-    public UnknownTarget(RequestContext context) {
-      super(TargetType.TYPE_UNKNOWN, context);
-    }
-  }
 }

Modified: incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractTarget.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractTarget.java?rev=628805&r1=628804&r2=628805&view=diff
==============================================================================
--- incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractTarget.java
(original)
+++ incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractTarget.java
Mon Feb 18 08:45:32 2008
@@ -23,7 +23,7 @@
 import org.apache.abdera.protocol.server.Target;
 import org.apache.abdera.protocol.server.TargetType;
 
-public abstract class AbstractTarget 
+public class AbstractTarget
   implements Target {
 
   protected final TargetType type;



Mime
View raw message