axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sami...@apache.org
Subject svn commit: r502183 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/util/SOAPUtil.java
Date Thu, 01 Feb 2007 10:28:22 GMT
Author: saminda
Date: Thu Feb  1 02:28:21 2007
New Revision: 502183

URL: http://svn.apache.org/viewvc?view=rev&rev=502183
Log:
Removed generating useragent header from server side. There shouldn't be a useragent header
in server side 

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/util/SOAPUtil.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/util/SOAPUtil.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/util/SOAPUtil.java?view=diff&rev=502183&r1=502182&r2=502183
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/util/SOAPUtil.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/util/SOAPUtil.java
Thu Feb  1 02:28:21 2007
@@ -54,7 +54,6 @@
                                       HttpServletResponse response) throws AxisFault {
         try {
             response.setHeader("Content-Type","text/html");
-            response.addHeader(HTTPConstants.HEADER_USER_AGENT, getUserAgent(msgContext));
 
             if(server(msgContext) != null){
                 response.setHeader("Server",server(msgContext));
@@ -101,18 +100,6 @@
         catch (IOException ioException) {
             throw new AxisFault(ioException);
         }
-    }
-
-    private String getUserAgent(MessageContext messageContext) {
-        String userAgentString = "Axis2";
-        if (messageContext.getParameter(HTTPConstants.USER_AGENT) != null){
-            OMElement userAgentElement = messageContext.getParameter(HTTPConstants.USER_AGENT).getParameterElement();
-            return userAgentElement.getText().trim();
-
-        }
-
-
-        return userAgentString;
     }
 
     private String server(MessageContext messageContext) {



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message