geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r698379 - /geronimo/server/trunk/plugins/cxf/geronimo-cxf/src/main/java/org/apache/geronimo/cxf/GeronimoDestination.java
Date Tue, 23 Sep 2008 22:37:39 GMT
Author: gawor
Date: Tue Sep 23 15:37:38 2008
New Revision: 698379

URL: http://svn.apache.org/viewvc?rev=698379&view=rev
Log:
no need to override it anymore

Modified:
    geronimo/server/trunk/plugins/cxf/geronimo-cxf/src/main/java/org/apache/geronimo/cxf/GeronimoDestination.java

Modified: geronimo/server/trunk/plugins/cxf/geronimo-cxf/src/main/java/org/apache/geronimo/cxf/GeronimoDestination.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/cxf/geronimo-cxf/src/main/java/org/apache/geronimo/cxf/GeronimoDestination.java?rev=698379&r1=698378&r2=698379&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/cxf/geronimo-cxf/src/main/java/org/apache/geronimo/cxf/GeronimoDestination.java
(original)
+++ geronimo/server/trunk/plugins/cxf/geronimo-cxf/src/main/java/org/apache/geronimo/cxf/GeronimoDestination.java
Tue Sep 23 15:37:38 2008
@@ -17,21 +17,19 @@
 package org.apache.geronimo.cxf;
 
 import java.io.IOException;
+import java.io.InputStream;
 import java.io.OutputStream;
 import java.io.Serializable;
-import java.io.InputStream;
 import java.net.HttpURLConnection;
 import java.security.Principal;
 import java.util.Iterator;
-import java.util.ArrayList;
 import java.util.List;
 import java.util.Map;
-import java.util.Enumeration;
 import java.util.logging.Logger;
+
 import javax.servlet.ServletContext;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
-import javax.xml.ws.handler.MessageContext;
 
 import org.apache.cxf.Bus;
 import org.apache.cxf.binding.Binding;
@@ -141,28 +139,6 @@
         return encoding;
     }
     
-    protected void copyRequestHeaders(Message message, Map<String, List<String>>
headers) {
-        HttpServletRequest servletRequest = (HttpServletRequest)message.get(MessageContext.SERVLET_REQUEST);
-        if (servletRequest != null) {
-            Enumeration names = servletRequest.getHeaderNames();
-            while(names.hasMoreElements()) {
-                String name = (String)names.nextElement();
-                
-                List<String> headerValues = headers.get(name);
-                if (headerValues == null) {
-                    headerValues = new ArrayList<String>();
-                    headers.put(name, headerValues);
-                }
-                
-                Enumeration values = servletRequest.getHeaders(name);
-                while(values.hasMoreElements()) {
-                    String value = (String)values.nextElement();
-                    headerValues.add(value);
-                }
-            }
-        }
-    }
-
     public Logger getLogger() {
         return Logger.getLogger(GeronimoDestination.class.getName());
     }



Mime
View raw message