geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xuhaih...@apache.org
Subject svn commit: r918912 - /geronimo/server/branches/2.1/plugins/cxf/geronimo-cxf/src/main/java/org/apache/geronimo/cxf/GeronimoDestination.java
Date Thu, 04 Mar 2010 09:41:49 GMT
Author: xuhaihong
Date: Thu Mar  4 09:41:49 2010
New Revision: 918912

URL: http://svn.apache.org/viewvc?rev=918912&view=rev
Log:
GERONIMO-5162 Remove unused copyRequestHeaders method

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

Modified: geronimo/server/branches/2.1/plugins/cxf/geronimo-cxf/src/main/java/org/apache/geronimo/cxf/GeronimoDestination.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.1/plugins/cxf/geronimo-cxf/src/main/java/org/apache/geronimo/cxf/GeronimoDestination.java?rev=918912&r1=918911&r2=918912&view=diff
==============================================================================
--- geronimo/server/branches/2.1/plugins/cxf/geronimo-cxf/src/main/java/org/apache/geronimo/cxf/GeronimoDestination.java
(original)
+++ geronimo/server/branches/2.1/plugins/cxf/geronimo-cxf/src/main/java/org/apache/geronimo/cxf/GeronimoDestination.java
Thu Mar  4 09:41:49 2010
@@ -82,15 +82,15 @@
 
         final HttpServletRequest servletRequest = 
             (HttpServletRequest)request.getAttribute(WebServiceContainer.SERVLET_REQUEST);
-        message.put("HTTP.REQUEST", servletRequest);
+        message.put(HTTP_REQUEST, servletRequest);
         
         HttpServletResponse servletResponse =
             (HttpServletResponse)request.getAttribute(WebServiceContainer.SERVLET_RESPONSE);
-        message.put("HTTP.RESPONSE", servletResponse);
+        message.put(HTTP_RESPONSE, servletResponse);
         
         ServletContext servletContext = 
             (ServletContext)request.getAttribute(WebServiceContainer.SERVLET_CONTEXT);
-        message.put("HTTP.CONTEXT", servletContext);
+        message.put(HTTP_CONTEXT, servletContext);
         
         if (this.passSecurityContext) {
             message.put(SecurityContext.class, new SecurityContext() {
@@ -126,29 +126,7 @@
             }
         }
         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