geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r789782 - /geronimo/server/trunk/plugins/jetty7/geronimo-jetty7/src/main/java/org/apache/geronimo/jetty7/handler/EJBServletHandler.java
Date Tue, 30 Jun 2009 15:03:43 GMT
Author: gawor
Date: Tue Jun 30 15:03:43 2009
New Revision: 789782

URL: http://svn.apache.org/viewvc?rev=789782&view=rev
Log:
recognized wsdl requests better

Modified:
    geronimo/server/trunk/plugins/jetty7/geronimo-jetty7/src/main/java/org/apache/geronimo/jetty7/handler/EJBServletHandler.java

Modified: geronimo/server/trunk/plugins/jetty7/geronimo-jetty7/src/main/java/org/apache/geronimo/jetty7/handler/EJBServletHandler.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/jetty7/geronimo-jetty7/src/main/java/org/apache/geronimo/jetty7/handler/EJBServletHandler.java?rev=789782&r1=789781&r2=789782&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/jetty7/geronimo-jetty7/src/main/java/org/apache/geronimo/jetty7/handler/EJBServletHandler.java
(original)
+++ geronimo/server/trunk/plugins/jetty7/geronimo-jetty7/src/main/java/org/apache/geronimo/jetty7/handler/EJBServletHandler.java
Tue Jun 30 15:03:43 2009
@@ -76,7 +76,7 @@
         // TODO: add support for context
         request.setAttribute(WebServiceContainer.SERVLET_CONTEXT, null);
 
-        if (req.getParameter("wsdl") != null) {
+        if (isWSDLRequest(req)) {
             try {
                 webServiceContainer.getWsdl(request, response);
                 baseRequest.setHandled(true);
@@ -97,6 +97,10 @@
         }
     }
 
+    private boolean isWSDLRequest(HttpServletRequest req) {
+        return ("GET".equals(req.getMethod()) && (req.getParameter("wsdl") != null
|| req.getParameter("xsd") != null));            
+    }
+
     public static class RequestAdapter implements WebServiceContainer.Request {
         private final Request request;
         private URI uri;



Mime
View raw message