axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r513436 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/HTTPTransportUtils.java
Date Thu, 01 Mar 2007 18:48:54 GMT
Author: dims
Date: Thu Mar  1 10:48:54 2007
New Revision: 513436

URL: http://svn.apache.org/viewvc?view=rev&rev=513436
Log:
fix G build break

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

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/HTTPTransportUtils.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/HTTPTransportUtils.java?view=diff&rev=513436&r1=513435&r2=513436
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/HTTPTransportUtils.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/HTTPTransportUtils.java
Thu Mar  1 10:48:54 2007
@@ -161,31 +161,31 @@
         return charSetEnc;
     }
 
-//    public static boolean processHTTPGetRequest(MessageContext msgContext,
-//                                                OutputStream out, String soapAction, String
requestURI,
-//                                                ConfigurationContext configurationContext,
Map requestParameters)
-//            throws AxisFault {
-//        if ((soapAction != null) && soapAction.startsWith("\"") && soapAction.endsWith("\""))
{
-//            soapAction = soapAction.substring(1, soapAction.length() - 1);
-//        }
-//
-//        msgContext.setSoapAction(soapAction);
-//        msgContext.setTo(new EndpointReference(requestURI));
-//        msgContext.setProperty(MessageContext.TRANSPORT_OUT, out);
-//        msgContext.setServerSide(true);
-//        SOAPEnvelope envelope = HTTPTransportUtils.createEnvelopeFromGetRequest(requestURI,
-//                                                                                requestParameters,
configurationContext);
-//
-//        if (envelope == null) {
-//            return false;
-//        } else {
-//            msgContext.setDoingREST(true);
-//            msgContext.setEnvelope(envelope);
-//            AxisEngine engine = new AxisEngine(configurationContext);
-//            engine.receive(msgContext);
-//            return true;
-//        }
-//    }
+    public static boolean processHTTPGetRequest(MessageContext msgContext,
+                                                OutputStream out, String soapAction, String
requestURI,
+                                                ConfigurationContext configurationContext,
Map requestParameters)
+            throws AxisFault {
+        if ((soapAction != null) && soapAction.startsWith("\"") && soapAction.endsWith("\""))
{
+            soapAction = soapAction.substring(1, soapAction.length() - 1);
+        }
+
+        msgContext.setSoapAction(soapAction);
+        msgContext.setTo(new EndpointReference(requestURI));
+        msgContext.setProperty(MessageContext.TRANSPORT_OUT, out);
+        msgContext.setServerSide(true);
+        SOAPEnvelope envelope = HTTPTransportUtils.createEnvelopeFromGetRequest(requestURI,
+                                                                                requestParameters,
configurationContext);
+
+        if (envelope == null) {
+            return false;
+        } else {
+            msgContext.setDoingREST(true);
+            msgContext.setEnvelope(envelope);
+            AxisEngine engine = new AxisEngine(configurationContext);
+            engine.receive(msgContext);
+            return true;
+        }
+    }
 
     private static final int VERSION_UNKNOWN = 0;
     private static final int VERSION_SOAP11 = 1;



---------------------------------------------------------------------
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