geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r540642 - in /geronimo/server/trunk/modules: geronimo-jetty6/src/main/java/org/apache/geronimo/jetty6/JettyEJBWebServiceContext.java geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/TomcatEJBWebServiceContext.java
Date Tue, 22 May 2007 16:51:53 GMT
Author: gawor
Date: Tue May 22 09:51:48 2007
New Revision: 540642

URL: http://svn.apache.org/viewvc?view=rev&rev=540642
Log:
cleanup content-type stuff

Modified:
    geronimo/server/trunk/modules/geronimo-jetty6/src/main/java/org/apache/geronimo/jetty6/JettyEJBWebServiceContext.java
    geronimo/server/trunk/modules/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/TomcatEJBWebServiceContext.java

Modified: geronimo/server/trunk/modules/geronimo-jetty6/src/main/java/org/apache/geronimo/jetty6/JettyEJBWebServiceContext.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-jetty6/src/main/java/org/apache/geronimo/jetty6/JettyEJBWebServiceContext.java?view=diff&rev=540642&r1=540641&r2=540642
==============================================================================
--- geronimo/server/trunk/modules/geronimo-jetty6/src/main/java/org/apache/geronimo/jetty6/JettyEJBWebServiceContext.java
(original)
+++ geronimo/server/trunk/modules/geronimo-jetty6/src/main/java/org/apache/geronimo/jetty6/JettyEJBWebServiceContext.java
Tue May 22 09:51:48 2007
@@ -126,16 +126,13 @@
             throws IOException, ServletException
     {
         //TODO
-        //shouldn't set this on the request !
-        //req.setContentType("text/xml");
-
-        //TODO
         //do we need to check that this request should be handled by this handler?
         if (! target.startsWith(contextPath)) {
             return;
         }
         Request jettyRequest = (Request) req;
         Response jettyResponse = (Response) res;
+        res.setContentType("text/xml");
         RequestAdapter request = new RequestAdapter(jettyRequest);
         ResponseAdapter response = new ResponseAdapter(jettyResponse);
 

Modified: geronimo/server/trunk/modules/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/TomcatEJBWebServiceContext.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/TomcatEJBWebServiceContext.java?view=diff&rev=540642&r1=540641&r2=540642
==============================================================================
--- geronimo/server/trunk/modules/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/TomcatEJBWebServiceContext.java
(original)
+++ geronimo/server/trunk/modules/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/TomcatEJBWebServiceContext.java
Tue May 22 09:51:48 2007
@@ -144,7 +144,7 @@
     public class EJBWebServiceValve extends ValveBase{
 
         public void invoke(Request req, Response res) throws IOException, ServletException
{
-            req.setContentType("text/xml");
+            res.setContentType("text/xml");            
             RequestAdapter request = new RequestAdapter(req);
             ResponseAdapter response = new ResponseAdapter(res);
 



Mime
View raw message