cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t..@apache.org
Subject svn commit: r465544 - /incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/RPCOutInterceptor.java
Date Thu, 19 Oct 2006 09:41:58 GMT
Author: tli
Date: Thu Oct 19 02:41:53 2006
New Revision: 465544

URL: http://svn.apache.org/viewvc?view=rev&rev=465544
Log:
convert the RPCOutInterceptor to stateless

Modified:
    incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/RPCOutInterceptor.java

Modified: incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/RPCOutInterceptor.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/RPCOutInterceptor.java?view=diff&rev=465544&r1=465543&r2=465544
==============================================================================
--- incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/RPCOutInterceptor.java
(original)
+++ incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/RPCOutInterceptor.java
Thu Oct 19 02:41:53 2006
@@ -37,21 +37,16 @@
 
 public class RPCOutInterceptor extends AbstractOutDatabindingInterceptor {
 
-    private NSStack nsStack;
-
     public RPCOutInterceptor() {
         super();
         setPhase(Phase.MARSHAL);
     }
 
-    private void init() {
-        nsStack = new NSStack();
-        nsStack.push();
-    }
 
     public void handleMessage(Message message) {
         try {
-            init();
+            NSStack nsStack = new NSStack();
+            nsStack.push();
 
             BindingOperationInfo operation = (BindingOperationInfo) message.getExchange().get(
                             BindingOperationInfo.class.getName());
@@ -61,7 +56,7 @@
             XMLStreamWriter xmlWriter = getXMLStreamWriter(message);
             DataWriter<Message> dataWriter = getMessageDataWriter(message);
 
-            addOperationNode(message, xmlWriter);
+            addOperationNode(nsStack, message, xmlWriter);
 
             int countParts = 0;
             List<MessagePartInfo> parts = null;
@@ -95,7 +90,8 @@
         }
     }
 
-    protected void addOperationNode(Message message, XMLStreamWriter xmlWriter) throws XMLStreamException
{
+    protected void addOperationNode(NSStack nsStack, Message message, XMLStreamWriter xmlWriter)

+        throws XMLStreamException {
         String responseSuffix = !isRequestor(message) ? "Response" : "";
         String namespaceURI = ServiceModelUtil.getTargetNamespace(message.getExchange());
         nsStack.add(namespaceURI);



Mime
View raw message