abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r425267 - in /incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/server/servlet: AbderaServlet.java ServletRequestContext.java
Date Tue, 25 Jul 2006 03:35:58 GMT
Author: jmsnell
Date: Mon Jul 24 20:35:57 2006
New Revision: 425267

URL: http://svn.apache.org/viewvc?rev=425267&view=rev
Log:
changed my mind, post tunneling doesn't belong here

Modified:
    incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/server/servlet/AbderaServlet.java
    incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/server/servlet/ServletRequestContext.java

Modified: incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/server/servlet/AbderaServlet.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/server/servlet/AbderaServlet.java?rev=425267&r1=425266&r2=425267&view=diff
==============================================================================
--- incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/server/servlet/AbderaServlet.java
(original)
+++ incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/server/servlet/AbderaServlet.java
Mon Jul 24 20:35:57 2006
@@ -44,7 +44,7 @@
     HttpServletRequest request, 
     HttpServletResponse response) 
       throws ServletException, IOException {
-    RequestContext requestContext = new ServletRequestContext(request, true);
+    RequestContext requestContext = new ServletRequestContext(request);
     ResponseContext responseContext = null;
     RequestHandler handler = null;
     try {

Modified: incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/server/servlet/ServletRequestContext.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/server/servlet/ServletRequestContext.java?rev=425267&r1=425266&r2=425267&view=diff
==============================================================================
--- incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/server/servlet/ServletRequestContext.java
(original)
+++ incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/server/servlet/ServletRequestContext.java
Mon Jul 24 20:35:57 2006
@@ -35,32 +35,14 @@
   public static final String X_OVERRIDE_HEADER = "X-Method-Override";
   
   private HttpServletRequest servletRequest = null;
-  private boolean use_post_tunnel = true;
-  private String method = null;
   
   public ServletRequestContext(
     HttpServletRequest request) {
       this.servletRequest = request;
   }
   
-  public ServletRequestContext(
-    HttpServletRequest request, 
-    boolean use_post_tunnel) {
-      this(request);
-      this.use_post_tunnel = use_post_tunnel;
-  }
-  
   public String getMethod() {
-    if (method == null) {
-      method = servletRequest.getMethod();
-      if (use_post_tunnel && method.equalsIgnoreCase("POST")) {
-        String override = servletRequest.getHeader(X_OVERRIDE_HEADER);
-        if(override != null) {
-          method = override.toUpperCase();
-        }
-      }
-    }
-    return method;
+    return servletRequest.getMethod();
   }
   
   public URI getRequestUri() {



Mime
View raw message