abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r523449 - /incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/servlet/HttpServletRequestContext.java
Date Wed, 28 Mar 2007 20:10:58 GMT
Author: jmsnell
Date: Wed Mar 28 13:10:57 2007
New Revision: 523449

URL: http://svn.apache.org/viewvc?view=rev&rev=523449
Log:
Some bugs....

getPort was using the local port instead of the port specified in the request...

getAttributeNames was not returning the right results for request scope vs session scope

Modified:
    incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/servlet/HttpServletRequestContext.java

Modified: incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/servlet/HttpServletRequestContext.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/servlet/HttpServletRequestContext.java?view=diff&rev=523449&r1=523448&r2=523449
==============================================================================
--- incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/servlet/HttpServletRequestContext.java
(original)
+++ incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/servlet/HttpServletRequestContext.java
Wed Mar 28 13:10:57 2007
@@ -124,7 +124,7 @@
   @SuppressWarnings("unchecked")
   public String[] getAttributeNames(Scope scope) {
     switch(scope) {
-      case REQUEST: enum2array(request.getAttributeNames());
+      case REQUEST: return enum2array(request.getAttributeNames());
       case SESSION: return (session != null) ? enum2array(session.getAttributeNames()) :
null;
     }
     return null;
@@ -188,7 +188,7 @@
         "org.apache.abdera.protocol.server.Port");
       return (port != null) ? 
         Integer.parseInt(port) : 
-        request.getLocalPort();
+        request.getServerPort();
   }
   
   private static IRI initBaseUri(



Mime
View raw message