You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by gd...@apache.org on 2005/07/11 19:49:08 UTC

svn commit: r210165 [7/20] - in /webservices/axis/trunk/java/modules: addressing/src/org/apache/axis2/handlers/addressing/ addressing/test/org/apache/axis2/handlers/addressing/ addressing/test/org/apache/axis2/handlers/util/ core/src/org/apache/axis2/a...

Modified: webservices/axis/trunk/java/modules/core/test/org/apache/axis2/deployment/BuildERWithDeploymentTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/test/org/apache/axis2/deployment/BuildERWithDeploymentTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/test/org/apache/axis2/deployment/BuildERWithDeploymentTest.java (original)
+++ webservices/axis/trunk/java/modules/core/test/org/apache/axis2/deployment/BuildERWithDeploymentTest.java Mon Jul 11 10:48:55 2005
@@ -36,7 +36,8 @@
     public void testDeployment() throws Exception {
         String filename = "./target/test-resources/deployment";
         ConfigurationContextFactory builder = new ConfigurationContextFactory();
-        AxisConfiguration er = builder.buildConfigurationContext(filename).getAxisConfiguration();
+        AxisConfiguration er = builder.buildConfigurationContext(filename)
+                .getAxisConfiguration();
 
         assertNotNull(er);
         ServiceDescription service = er.getService(new QName("service2"));

Modified: webservices/axis/trunk/java/modules/core/test/org/apache/axis2/deployment/DeploymentTotalTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/test/org/apache/axis2/deployment/DeploymentTotalTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/test/org/apache/axis2/deployment/DeploymentTotalTest.java (original)
+++ webservices/axis/trunk/java/modules/core/test/org/apache/axis2/deployment/DeploymentTotalTest.java Mon Jul 11 10:48:55 2005
@@ -27,10 +27,15 @@
 public class DeploymentTotalTest extends TestCase {
     AxisConfiguration er;
 
-    public void testparseService1() throws PhaseException, DeploymentException, AxisFault, XMLStreamException {
+    public void testparseService1() throws PhaseException,
+            DeploymentException,
+            AxisFault,
+            XMLStreamException {
         String filename = "./target/test-resources/deployment";
         ConfigurationContextFactory builder = new ConfigurationContextFactory();
-        er = builder.buildConfigurationContext(filename).getAxisConfiguration();
+        er =
+                builder.buildConfigurationContext(filename)
+                .getAxisConfiguration();
     }
 
 }

Modified: webservices/axis/trunk/java/modules/core/test/org/apache/axis2/deployment/InvalidServiceTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/test/org/apache/axis2/deployment/InvalidServiceTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/test/org/apache/axis2/deployment/InvalidServiceTest.java (original)
+++ webservices/axis/trunk/java/modules/core/test/org/apache/axis2/deployment/InvalidServiceTest.java Mon Jul 11 10:48:55 2005
@@ -38,11 +38,13 @@
         try {
             String filename = "./target/test-resources/InvalidDeployment";
             ConfigurationContextFactory builder = new ConfigurationContextFactory();
-            er = builder.buildConfigurationContext(filename).getAxisConfiguration();
+            er =
+                    builder.buildConfigurationContext(filename)
+                    .getAxisConfiguration();
             String msg = (String) er.getFaulytServices().get("invalidService");
             if (msg == null || msg.equals("")) {
                 fail("this must failed gracefully with AxisFault ervice specifi module can not" +
-                     "refer system pre defined phases");
+                        "refer system pre defined phases");
             }
         } catch (DeploymentException e) {
             return;

Modified: webservices/axis/trunk/java/modules/core/test/org/apache/axis2/deployment/ModifiedConfigFileTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/test/org/apache/axis2/deployment/ModifiedConfigFileTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/test/org/apache/axis2/deployment/ModifiedConfigFileTest.java (original)
+++ webservices/axis/trunk/java/modules/core/test/org/apache/axis2/deployment/ModifiedConfigFileTest.java Mon Jul 11 10:48:55 2005
@@ -35,9 +35,12 @@
         try {
             String filename = "./test-resources/deployment/BadConfigOrderChange";
             ConfigurationContextFactory builder = new ConfigurationContextFactory();
-            er = builder.buildConfigurationContext(filename).getAxisConfiguration();
-            fail("this must failed gracefully with DeploymentException \"Invalid System predefined " +
-                 "inphases , phase order dose not\" +\n support\\n recheck axis2.xml\"");
+            er =
+                    builder.buildConfigurationContext(filename)
+                    .getAxisConfiguration();
+            fail(
+                    "this must failed gracefully with DeploymentException \"Invalid System predefined " +
+                    "inphases , phase order dose not\" +\n support\\n recheck axis2.xml\"");
         } catch (DeploymentException e) {
 
         }

Modified: webservices/axis/trunk/java/modules/core/test/org/apache/axis2/deployment/SystemPhasesremovedTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/test/org/apache/axis2/deployment/SystemPhasesremovedTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/test/org/apache/axis2/deployment/SystemPhasesremovedTest.java (original)
+++ webservices/axis/trunk/java/modules/core/test/org/apache/axis2/deployment/SystemPhasesremovedTest.java Mon Jul 11 10:48:55 2005
@@ -35,9 +35,12 @@
         try {
             String filename = "./test-resources/deployment/SystemPhaseRemove";
             ConfigurationContextFactory builder = new ConfigurationContextFactory();
-            er = builder.buildConfigurationContext(filename).getAxisConfiguration();
-            fail("this must failed gracefully with DeploymentException \"Invalid System predefined " +
-                 "inphases , phase order dose not\" +\n support\\n recheck axis2.xml\"");
+            er =
+                    builder.buildConfigurationContext(filename)
+                    .getAxisConfiguration();
+            fail(
+                    "this must failed gracefully with DeploymentException \"Invalid System predefined " +
+                    "inphases , phase order dose not\" +\n support\\n recheck axis2.xml\"");
         } catch (DeploymentException e) {
             e.printStackTrace();
         }

Modified: webservices/axis/trunk/java/modules/core/test/org/apache/axis2/deployment/TransportDeploymentTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/test/org/apache/axis2/deployment/TransportDeploymentTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/test/org/apache/axis2/deployment/TransportDeploymentTest.java (original)
+++ webservices/axis/trunk/java/modules/core/test/org/apache/axis2/deployment/TransportDeploymentTest.java Mon Jul 11 10:48:55 2005
@@ -34,14 +34,19 @@
         super(testName);
     }
 
-    public void testTransports() throws AxisFault, PhaseException, DeploymentException, XMLStreamException {
-        DeploymentEngine engine = new DeploymentEngine(testResourceDir + "/deployment", "server-transport.xml");
+    public void testTransports() throws AxisFault,
+            PhaseException,
+            DeploymentException,
+            XMLStreamException {
+        DeploymentEngine engine = new DeploymentEngine(
+                testResourceDir + "/deployment", "server-transport.xml");
         engine.load();
         AxisConfiguration er = engine.getAxisConfig();
         TransportInDescription transport = er.getTransportIn(new QName("http"));
         assertNotNull(transport);
         //  assertNotNull(transport.getInFlow());
-        TransportOutDescription transport1 = er.getTransportOut(new QName("http"));
+        TransportOutDescription transport1 = er.getTransportOut(
+                new QName("http"));
         assertNotNull(transport1);
         //  assertNotNull(transport1.getOutFlow());
     }

Modified: webservices/axis/trunk/java/modules/core/test/org/apache/axis2/description/MockFlow.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/test/org/apache/axis2/description/MockFlow.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/test/org/apache/axis2/description/MockFlow.java (original)
+++ webservices/axis/trunk/java/modules/core/test/org/apache/axis2/description/MockFlow.java Mon Jul 11 10:48:55 2005
@@ -24,8 +24,11 @@
     public MockFlow(String message, int length) {
         super();
         for (int i = 0; i < length; i++) {
-            SpeakingHandler1 h1 = new SpeakingHandler1("Executing " + i + " inside " + message);
-            Utils.addHandler(this, h1, PhaseMetadata.PHASE_POLICY_DETERMINATION);
+            SpeakingHandler1 h1 = new SpeakingHandler1(
+                    "Executing " + i + " inside " + message);
+            Utils.addHandler(this,
+                    h1,
+                    PhaseMetadata.PHASE_POLICY_DETERMINATION);
         }
     }
 

Modified: webservices/axis/trunk/java/modules/core/test/org/apache/axis2/description/RegistryTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/test/org/apache/axis2/description/RegistryTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/test/org/apache/axis2/description/RegistryTest.java (original)
+++ webservices/axis/trunk/java/modules/core/test/org/apache/axis2/description/RegistryTest.java Mon Jul 11 10:48:55 2005
@@ -61,7 +61,8 @@
     }
 
     public void testService() {
-        ServiceDescription service = new ServiceDescription(new QName("Service1"));
+        ServiceDescription service = new ServiceDescription(
+                new QName("Service1"));
         testParameteInClude(service);
         testFlowIncludeTest(service);
 

Modified: webservices/axis/trunk/java/modules/core/test/org/apache/axis2/engine/EnginePausingTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/test/org/apache/axis2/engine/EnginePausingTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/test/org/apache/axis2/engine/EnginePausingTest.java (original)
+++ webservices/axis/trunk/java/modules/core/test/org/apache/axis2/engine/EnginePausingTest.java Mon Jul 11 10:48:55 2005
@@ -22,7 +22,11 @@
 import org.apache.axis2.context.ConfigurationContext;
 import org.apache.axis2.context.MessageContext;
 import org.apache.axis2.context.ServiceContext;
-import org.apache.axis2.description.*;
+import org.apache.axis2.description.HandlerDescription;
+import org.apache.axis2.description.OperationDescription;
+import org.apache.axis2.description.ServiceDescription;
+import org.apache.axis2.description.TransportInDescription;
+import org.apache.axis2.description.TransportOutDescription;
 import org.apache.axis2.handlers.AbstractHandler;
 import org.apache.axis2.om.OMAbstractFactory;
 import org.apache.axis2.soap.SOAPFactory;
@@ -109,8 +113,10 @@
         phase3.addHandler(new TempHandler(26));
         phase3.addHandler(new TempHandler(27));
 
-        ServiceContext serviceContext = new ServiceContext(service, engineContext);
-        engineContext.registerServiceContext(serviceContext.getServiceInstanceID(), serviceContext);
+        ServiceContext serviceContext = new ServiceContext(service,
+                engineContext);
+        engineContext.registerServiceContext(
+                serviceContext.getServiceInstanceID(), serviceContext);
 
         //TODO
         axisOp.getRemainingPhasesInFlow().add(phase1);
@@ -124,18 +130,22 @@
     }
 
     public void testReceive() throws Exception {
-        mc.setTo(new EndpointReference(AddressingConstants.WSA_TO, "axis/services/NullService/DummyOp"));
+        mc.setTo(
+                new EndpointReference(AddressingConstants.WSA_TO,
+                        "axis/services/NullService/DummyOp"));
         AxisEngine engine = new AxisEngine(engineContext);
         engine.receive(mc);
         assertEquals(executedHandlers.size(), 14);
         for (int i = 0; i < 14; i++) {
-            assertEquals(((Integer) executedHandlers.get(i)).intValue(), i + 1);
+            assertEquals(((Integer) executedHandlers.get(i)).intValue(),
+                    i + 1);
         }
         engine.receive(mc);
 
         assertEquals(executedHandlers.size(), 27);
         for (int i = 15; i < 27; i++) {
-            assertEquals(((Integer) executedHandlers.get(i)).intValue(), i + 1);
+            assertEquals(((Integer) executedHandlers.get(i)).intValue(),
+                    i + 1);
         }
 
     }

Modified: webservices/axis/trunk/java/modules/core/test/org/apache/axis2/engine/EngineWithoutPhaseResolvingTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/test/org/apache/axis2/engine/EngineWithoutPhaseResolvingTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/test/org/apache/axis2/engine/EngineWithoutPhaseResolvingTest.java (original)
+++ webservices/axis/trunk/java/modules/core/test/org/apache/axis2/engine/EngineWithoutPhaseResolvingTest.java Mon Jul 11 10:48:55 2005
@@ -57,10 +57,12 @@
         engineRegistry = new AxisConfigurationImpl();
         engineContext = new ConfigurationContext(engineRegistry);
 
-        TransportOutDescription transport = new TransportOutDescription(new QName("null"));
+        TransportOutDescription transport = new TransportOutDescription(
+                new QName("null"));
         transport.setSender(new HTTPTransportSender());
 
-        TransportInDescription transportIn = new TransportInDescription(new QName("null"));
+        TransportInDescription transportIn = new TransportInDescription(
+                new QName("null"));
         axisOp = new OperationDescription(opearationName);
 
         service = new ServiceDescription(serviceName);
@@ -74,14 +76,19 @@
         service.setStyle(WSDLService.STYLE_DOC);
         service.addOperation(axisOp);
 
-        ServiceContext serviceContext = engineContext.createServiceContext(serviceName);
+        ServiceContext serviceContext = engineContext.createServiceContext(
+                serviceName);
 
         mc =
                 new MessageContext(engineContext,
-                                   transportIn,
-                                   transport);
+                        transportIn,
+                        transport);
 
-        mc.setOperationContext(OperationContextFactory.createMEPContext(WSDLConstants.MEP_CONSTANT_IN_OUT, axisOp, serviceContext));
+        mc.setOperationContext(
+                OperationContextFactory.createMEPContext(
+                        WSDLConstants.MEP_CONSTANT_IN_OUT,
+                        axisOp,
+                        serviceContext));
         mc.setTransportOut(transport);
         mc.setProperty(MessageContext.TRANSPORT_OUT, System.out);
         mc.setServerSide(true);
@@ -110,7 +117,9 @@
 //    }
 
     public void testServerReceive() throws Exception {
-        mc.setTo(new EndpointReference(AddressingConstants.WSA_TO, "axis/services/NullService"));
+        mc.setTo(
+                new EndpointReference(AddressingConstants.WSA_TO,
+                        "axis/services/NullService"));
         AxisEngine engine = new AxisEngine(engineContext);
         mc.setServerSide(true);
         engine.receive(mc);

Modified: webservices/axis/trunk/java/modules/core/test/org/apache/axis2/engine/MessageContextInjectionTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/test/org/apache/axis2/engine/MessageContextInjectionTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/test/org/apache/axis2/engine/MessageContextInjectionTest.java (original)
+++ webservices/axis/trunk/java/modules/core/test/org/apache/axis2/engine/MessageContextInjectionTest.java Mon Jul 11 10:48:55 2005
@@ -46,7 +46,8 @@
 
 public class MessageContextInjectionTest extends TestCase {
     private EndpointReference targetEPR =
-            new EndpointReference(AddressingConstants.WSA_TO, "/axis/services/EchoXMLService/echoOMElement");
+            new EndpointReference(AddressingConstants.WSA_TO,
+                    "/axis/services/EchoXMLService/echoOMElement");
     private Log log = LogFactory.getLog(getClass());
     private QName serviceName = new QName("EchoXMLService");
     private QName operationName = new QName("echoOMElement");
@@ -68,17 +69,24 @@
     }
 
     protected void setUp() throws Exception {
-        ConfigurationContext configContext = new ConfigurationContext(new AxisConfigurationImpl());
+        ConfigurationContext configContext = new ConfigurationContext(
+                new AxisConfigurationImpl());
         LocalTransportReceiver.CONFIG_CONTEXT = configContext;
 
         ServiceDescription service = new ServiceDescription(serviceName);
-        service.addParameter(new ParameterImpl(AbstractMessageReceiver.SERVICE_CLASS, MessageContextEnabledEcho.class.getName()));
-        OperationDescription operation = new OperationDescription(operationName);
+        service.addParameter(
+                new ParameterImpl(AbstractMessageReceiver.SERVICE_CLASS,
+                        MessageContextEnabledEcho.class.getName()));
+        OperationDescription operation = new OperationDescription(
+                operationName);
         operation.setMessageReciever(new RawXMLINOnlyMessageReceiver());
         service.addOperation(operation);
         service.setClassLoader(Thread.currentThread().getContextClassLoader());
-        LocalTransportReceiver.CONFIG_CONTEXT.getAxisConfiguration().addService(service);
-        Utils.resolvePhases(LocalTransportReceiver.CONFIG_CONTEXT.getAxisConfiguration(), service);
+        LocalTransportReceiver.CONFIG_CONTEXT.getAxisConfiguration()
+                .addService(service);
+        Utils.resolvePhases(
+                LocalTransportReceiver.CONFIG_CONTEXT.getAxisConfiguration(),
+                service);
     }
 
     protected void tearDown() throws Exception {
@@ -89,7 +97,8 @@
         OMNamespace omNs = fac.createOMNamespace("http://localhost/my", "my");
         OMElement method = fac.createOMElement("echoOMElement", omNs);
         OMElement value = fac.createOMElement("myValue", omNs);
-        value.addChild(fac.createText(value, "Isaac Assimov, the foundation Sega"));
+        value.addChild(
+                fac.createText(value, "Isaac Assimov, the foundation Sega"));
         method.addChild(value);
 
         return method;

Modified: webservices/axis/trunk/java/modules/core/test/org/apache/axis2/engine/MessageContextTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/test/org/apache/axis2/engine/MessageContextTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/test/org/apache/axis2/engine/MessageContextTest.java (original)
+++ webservices/axis/trunk/java/modules/core/test/org/apache/axis2/engine/MessageContextTest.java Mon Jul 11 10:48:55 2005
@@ -29,7 +29,8 @@
         super(testName);
     }
 
-    public void testMesssageContext() throws AxisFault, SOAPProcessingException {
+    public void testMesssageContext() throws AxisFault,
+            SOAPProcessingException {
         AxisConfiguration er = new AxisConfigurationImpl();
         ServiceDescription servicesDesc = new ServiceDescription();
         er.addService(servicesDesc);

Modified: webservices/axis/trunk/java/modules/core/test/org/apache/axis2/engine/ModuleEngageTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/test/org/apache/axis2/engine/ModuleEngageTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/test/org/apache/axis2/engine/ModuleEngageTest.java (original)
+++ webservices/axis/trunk/java/modules/core/test/org/apache/axis2/engine/ModuleEngageTest.java Mon Jul 11 10:48:55 2005
@@ -37,16 +37,22 @@
 public class ModuleEngageTest extends TestCase {
     AxisConfiguration ac;
 
-    public void testModuleEngageMent() throws PhaseException, DeploymentException, AxisFault, XMLStreamException {
+    public void testModuleEngageMent() throws PhaseException,
+            DeploymentException,
+            AxisFault,
+            XMLStreamException {
         String filename = "./target/test-resources/deployment";
         ConfigurationContextFactory builder = new ConfigurationContextFactory();
-        ac = builder.buildConfigurationContext(filename).getAxisConfiguration();
+        ac =
+                builder.buildConfigurationContext(filename)
+                .getAxisConfiguration();
         ModuleDescription module = ac.getModule(new QName("module1"));
         assertNotNull(module);
         ac.engageModule(new QName("module1"));
         ServiceDescription service = ac.getService(new QName("service2"));
         assertNotNull(service);
-        OperationDescription moduleOperation = service.getOperation(new QName("creatSeq"));
+        OperationDescription moduleOperation = service.getOperation(
+                new QName("creatSeq"));
         assertNotNull(moduleOperation);
     }
 

Modified: webservices/axis/trunk/java/modules/core/test/org/apache/axis2/phaserule/BeforeAfterTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/test/org/apache/axis2/phaserule/BeforeAfterTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/test/org/apache/axis2/phaserule/BeforeAfterTest.java (original)
+++ webservices/axis/trunk/java/modules/core/test/org/apache/axis2/phaserule/BeforeAfterTest.java Mon Jul 11 10:48:55 2005
@@ -47,7 +47,8 @@
             Phase p2 = new Phase("PhaseB");
             phases.add(p2);
 
-            MessageContext msg = new MessageContext(new ConfigurationContext(new AxisConfigurationImpl()));
+            MessageContext msg = new MessageContext(
+                    new ConfigurationContext(new AxisConfigurationImpl()));
 
             PhaseHolder ph = new PhaseHolder(phases);
             HandlerDescription hm = new HandlerDescription();

Modified: webservices/axis/trunk/java/modules/core/test/org/apache/axis2/phaserule/BeforeTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/test/org/apache/axis2/phaserule/BeforeTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/test/org/apache/axis2/phaserule/BeforeTest.java (original)
+++ webservices/axis/trunk/java/modules/core/test/org/apache/axis2/phaserule/BeforeTest.java Mon Jul 11 10:48:55 2005
@@ -46,7 +46,8 @@
         Phase p2 = new Phase("PhaseB");
         phases.add(p2);
 
-        MessageContext msg = new MessageContext(new ConfigurationContext(new AxisConfigurationImpl()));
+        MessageContext msg = new MessageContext(
+                new ConfigurationContext(new AxisConfigurationImpl()));
 
         PhaseHolder ph = new PhaseHolder(phases);
         HandlerDescription hm = new HandlerDescription();

Modified: webservices/axis/trunk/java/modules/core/test/org/apache/axis2/phaserule/BeforeWithNoFirstHandlerTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/test/org/apache/axis2/phaserule/BeforeWithNoFirstHandlerTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/test/org/apache/axis2/phaserule/BeforeWithNoFirstHandlerTest.java (original)
+++ webservices/axis/trunk/java/modules/core/test/org/apache/axis2/phaserule/BeforeWithNoFirstHandlerTest.java Mon Jul 11 10:48:55 2005
@@ -45,7 +45,8 @@
         Phase p2 = new Phase("PhaseB");
         phases.add(p2);
 
-        MessageContext msg = new MessageContext(new ConfigurationContext(new AxisConfigurationImpl()));
+        MessageContext msg = new MessageContext(
+                new ConfigurationContext(new AxisConfigurationImpl()));
 
         PhaseHolder ph = new PhaseHolder(phases);
 

Modified: webservices/axis/trunk/java/modules/core/test/org/apache/axis2/phaserule/InvalidPhaseFirstRulesTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/test/org/apache/axis2/phaserule/InvalidPhaseFirstRulesTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/test/org/apache/axis2/phaserule/InvalidPhaseFirstRulesTest.java (original)
+++ webservices/axis/trunk/java/modules/core/test/org/apache/axis2/phaserule/InvalidPhaseFirstRulesTest.java Mon Jul 11 10:48:55 2005
@@ -47,7 +47,8 @@
             Phase p2 = new Phase("PhaseB");
             phases.add(p2);
 
-            MessageContext msg = new MessageContext(new ConfigurationContext(new AxisConfigurationImpl()));
+            MessageContext msg = new MessageContext(
+                    new ConfigurationContext(new AxisConfigurationImpl()));
 
             PhaseHolder ph = new PhaseHolder(phases);
             HandlerDescription hm = new HandlerDescription();
@@ -75,7 +76,8 @@
             rule1.setPhaseName("PhaseA");
             hm1.setRules(rule1);
             ph.addHandler(hm1);
-            fail("Handler with PhaseFirst can not have any before or after proprty error in ");
+            fail(
+                    "Handler with PhaseFirst can not have any before or after proprty error in ");
         } catch (AxisFault axisFault) {
             return;
         }

Modified: webservices/axis/trunk/java/modules/core/test/org/apache/axis2/phaserule/InvalidPhaseFirstTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/test/org/apache/axis2/phaserule/InvalidPhaseFirstTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/test/org/apache/axis2/phaserule/InvalidPhaseFirstTest.java (original)
+++ webservices/axis/trunk/java/modules/core/test/org/apache/axis2/phaserule/InvalidPhaseFirstTest.java Mon Jul 11 10:48:55 2005
@@ -47,7 +47,8 @@
             Phase p2 = new Phase("PhaseB");
             phases.add(p2);
 
-            MessageContext msg = new MessageContext(new ConfigurationContext(new AxisConfigurationImpl()));
+            MessageContext msg = new MessageContext(
+                    new ConfigurationContext(new AxisConfigurationImpl()));
 
             PhaseHolder ph = new PhaseHolder(phases);
             HandlerDescription hm = new HandlerDescription();
@@ -76,7 +77,7 @@
             hm1.setRules(rule1);
             ph.addHandler(hm1);
             fail("This should be faild with PhaseFirst alredy has been set, cannot have two " +
-                 "phaseFirst Handler for same phase ");
+                    "phaseFirst Handler for same phase ");
         } catch (AxisFault axisFault) {
             return;
         }

Modified: webservices/axis/trunk/java/modules/core/test/org/apache/axis2/phaserule/InvalidPhaseLastRuleTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/test/org/apache/axis2/phaserule/InvalidPhaseLastRuleTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/test/org/apache/axis2/phaserule/InvalidPhaseLastRuleTest.java (original)
+++ webservices/axis/trunk/java/modules/core/test/org/apache/axis2/phaserule/InvalidPhaseLastRuleTest.java Mon Jul 11 10:48:55 2005
@@ -47,7 +47,8 @@
             Phase p2 = new Phase("PhaseB");
             phases.add(p2);
 
-            MessageContext msg = new MessageContext(new ConfigurationContext(new AxisConfigurationImpl()));
+            MessageContext msg = new MessageContext(
+                    new ConfigurationContext(new AxisConfigurationImpl()));
 
             PhaseHolder ph = new PhaseHolder(phases);
             HandlerDescription hm = new HandlerDescription();
@@ -75,7 +76,8 @@
             rule1.setPhaseName("PhaseA");
             hm1.setRules(rule1);
             ph.addHandler(hm1);
-            fail("Handler with PhaseFirst can not have any before or after proprty error in ");
+            fail(
+                    "Handler with PhaseFirst can not have any before or after proprty error in ");
         } catch (AxisFault axisFault) {
             return;
         }

Modified: webservices/axis/trunk/java/modules/core/test/org/apache/axis2/phaserule/InvalidPhaselastTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/test/org/apache/axis2/phaserule/InvalidPhaselastTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/test/org/apache/axis2/phaserule/InvalidPhaselastTest.java (original)
+++ webservices/axis/trunk/java/modules/core/test/org/apache/axis2/phaserule/InvalidPhaselastTest.java Mon Jul 11 10:48:55 2005
@@ -47,7 +47,8 @@
             Phase p2 = new Phase("PhaseB");
             phases.add(p2);
 
-            MessageContext msg = new MessageContext(new ConfigurationContext(new AxisConfigurationImpl()));
+            MessageContext msg = new MessageContext(
+                    new ConfigurationContext(new AxisConfigurationImpl()));
 
             PhaseHolder ph = new PhaseHolder(phases);
             HandlerDescription hm = new HandlerDescription();
@@ -76,7 +77,7 @@
             hm1.setRules(rule1);
             ph.addHandler(hm1);
             fail("This should be faild with Phaselast alredy has been set, cannot have two " +
-                 "phaseFirst Handler for same phase ");
+                    "phaseFirst Handler for same phase ");
         } catch (AxisFault axisFault) {
             return;
         }

Modified: webservices/axis/trunk/java/modules/core/test/org/apache/axis2/phaserule/PhaseFirstTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/test/org/apache/axis2/phaserule/PhaseFirstTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/test/org/apache/axis2/phaserule/PhaseFirstTest.java (original)
+++ webservices/axis/trunk/java/modules/core/test/org/apache/axis2/phaserule/PhaseFirstTest.java Mon Jul 11 10:48:55 2005
@@ -46,7 +46,8 @@
         Phase p2 = new Phase("PhaseB");
         phases.add(p2);
 
-        MessageContext msg = new MessageContext(new ConfigurationContext(new AxisConfigurationImpl()));
+        MessageContext msg = new MessageContext(
+                new ConfigurationContext(new AxisConfigurationImpl()));
 
         PhaseHolder ph = new PhaseHolder(phases);
         HandlerDescription hm = new HandlerDescription();

Modified: webservices/axis/trunk/java/modules/core/test/org/apache/axis2/phaserule/PhaseLastTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/test/org/apache/axis2/phaserule/PhaseLastTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/test/org/apache/axis2/phaserule/PhaseLastTest.java (original)
+++ webservices/axis/trunk/java/modules/core/test/org/apache/axis2/phaserule/PhaseLastTest.java Mon Jul 11 10:48:55 2005
@@ -46,7 +46,8 @@
         Phase p2 = new Phase("PhaseB");
         phases.add(p2);
 
-        MessageContext msg = new MessageContext(new ConfigurationContext(new AxisConfigurationImpl()));
+        MessageContext msg = new MessageContext(
+                new ConfigurationContext(new AxisConfigurationImpl()));
 
         PhaseHolder ph = new PhaseHolder(phases);
         HandlerDescription hm = new HandlerDescription();

Modified: webservices/axis/trunk/java/modules/core/test/org/apache/axis2/phaserule/SingleHandlerPhaseTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/test/org/apache/axis2/phaserule/SingleHandlerPhaseTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/test/org/apache/axis2/phaserule/SingleHandlerPhaseTest.java (original)
+++ webservices/axis/trunk/java/modules/core/test/org/apache/axis2/phaserule/SingleHandlerPhaseTest.java Mon Jul 11 10:48:55 2005
@@ -47,7 +47,8 @@
             Phase p2 = new Phase("PhaseB");
             phases.add(p2);
 
-            MessageContext msg = new MessageContext(new ConfigurationContext(new AxisConfigurationImpl()));
+            MessageContext msg = new MessageContext(
+                    new ConfigurationContext(new AxisConfigurationImpl()));
 
             PhaseHolder ph = new PhaseHolder(phases);
             HandlerDescription hm = new HandlerDescription();
@@ -78,7 +79,7 @@
             ph.addHandler(hm1);
             p1.invoke(msg);
             fail("This should fail with : can only have one handler, since there is a " +
-                 "handler with both phaseFirst and PhaseLast true ");
+                    "handler with both phaseFirst and PhaseLast true ");
         } catch (AxisFault axisFault) {
             return;
         }

Modified: webservices/axis/trunk/java/modules/core/test/org/apache/axis2/transport/HTTPTrasportHeaderParsingTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/test/org/apache/axis2/transport/HTTPTrasportHeaderParsingTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/test/org/apache/axis2/transport/HTTPTrasportHeaderParsingTest.java (original)
+++ webservices/axis/trunk/java/modules/core/test/org/apache/axis2/transport/HTTPTrasportHeaderParsingTest.java Mon Jul 11 10:48:55 2005
@@ -37,7 +37,8 @@
         String message =
                 "POST /axis2/services/echo HTTP/1.0\n"
                 + "Content-Type: text/xml; charset=utf-8\n"
-                + "Accept: application/soap+xml, application/dime, multipart/related, text/*\n"
+                +
+                "Accept: application/soap+xml, application/dime, multipart/related, text/*\n"
                 + "User-Agent: Axis/1.2RC1\n"
                 + "Host: 127.0.0.1:8081\n"
                 + "Cache-Control: no-cache\n"
@@ -51,9 +52,9 @@
         Map map = receiver.parseTheHeaders(reader, true);
         assertEquals(map.get(HTTPConstants.PROTOCOL_VERSION), "HTTP/1.0");
         assertEquals(map.get(HTTPConstants.REQUEST_URI),
-                     "/axis2/services/echo");
+                "/axis2/services/echo");
         assertEquals(map.get("Accept"),
-                     "application/soap+xml, application/dime, multipart/related, text/*");
+                "application/soap+xml, application/dime, multipart/related, text/*");
         assertEquals(map.get("User-Agent"), "Axis/1.2RC1");
         assertEquals(map.get("Host"), "127.0.0.1:8081");
         assertEquals(map.get("Cache-Control"), "no-cache");

Modified: webservices/axis/trunk/java/modules/core/test/org/apache/axis2/transport/http/HTTPTransportUtilTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/test/org/apache/axis2/transport/http/HTTPTransportUtilTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/test/org/apache/axis2/transport/http/HTTPTransportUtilTest.java (original)
+++ webservices/axis/trunk/java/modules/core/test/org/apache/axis2/transport/http/HTTPTransportUtilTest.java Mon Jul 11 10:48:55 2005
@@ -40,21 +40,29 @@
     public void testOptimizedEnvelope() {
         SOAPEnvelope soapEnvelope = factory.getDefaultEnvelope();
 
-        OMElement element = factory.createOMElement(new QName("MyFirstBodyElement"), soapEnvelope.getBody());
-        OMElement element11 = factory.createOMElement(new QName("MyFirstBodyElement"), element);
+        OMElement element = factory.createOMElement(
+                new QName("MyFirstBodyElement"), soapEnvelope.getBody());
+        OMElement element11 = factory.createOMElement(
+                new QName("MyFirstBodyElement"), element);
         OMText optimizedText = factory.createText("Hi", "text/plain", true);
         element11.addChild(optimizedText);
-        assertTrue("optmization check has not performed correctly in SOAPEnvelope", httpTransportUtils.checkEnvelopeForOptimise(soapEnvelope));
+        assertTrue(
+                "optmization check has not performed correctly in SOAPEnvelope",
+                httpTransportUtils.checkEnvelopeForOptimise(soapEnvelope));
     }
 
     public void testNonOptimizedEnvelope() {
         SOAPEnvelope soapEnvelope = factory.getDefaultEnvelope();
 
-        OMElement element = factory.createOMElement(new QName("MyFirstBodyElement"), soapEnvelope.getBody());
-        OMElement element11 = factory.createOMElement(new QName("MyFirstBodyElement"), element);
+        OMElement element = factory.createOMElement(
+                new QName("MyFirstBodyElement"), soapEnvelope.getBody());
+        OMElement element11 = factory.createOMElement(
+                new QName("MyFirstBodyElement"), element);
         OMText optimizedText = factory.createText("Hi", "text/plain", false);
         element11.addChild(optimizedText);
-        assertFalse("optmization check has not performed correctly in SOAPEnvelope", httpTransportUtils.checkEnvelopeForOptimise(soapEnvelope));
+        assertFalse(
+                "optmization check has not performed correctly in SOAPEnvelope",
+                httpTransportUtils.checkEnvelopeForOptimise(soapEnvelope));
     }
 
 

Modified: webservices/axis/trunk/java/modules/saaj/src/javax/xml/soap/FactoryFinder.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/saaj/src/javax/xml/soap/FactoryFinder.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/saaj/src/javax/xml/soap/FactoryFinder.java (original)
+++ webservices/axis/trunk/java/modules/saaj/src/javax/xml/soap/FactoryFinder.java Mon Jul 11 10:48:55 2005
@@ -15,7 +15,11 @@
  */
 package javax.xml.soap;
 
-import java.io.*;
+import java.io.BufferedReader;
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.InputStream;
+import java.io.InputStreamReader;
 import java.util.Properties;
 
 /**
@@ -55,9 +59,15 @@
             }
             return factory.newInstance();
         } catch (ClassNotFoundException classnotfoundexception) {
-            throw new SOAPException("Provider " + factoryClassName + " not found", classnotfoundexception);
+            throw new SOAPException(
+                    "Provider " + factoryClassName + " not found",
+                    classnotfoundexception);
         } catch (Exception exception) {
-            throw new SOAPException("Provider " + factoryClassName + " could not be instantiated: " + exception, exception);
+            throw new SOAPException(
+                    "Provider " + factoryClassName +
+                    " could not be instantiated: " +
+                    exception,
+                    exception);
         }
     }
 
@@ -70,7 +80,8 @@
      * @return a factory object
      * @throws SOAPException
      */
-    static Object find(String factoryPropertyName, String defaultFactoryClassName) throws SOAPException {
+    static Object find(String factoryPropertyName,
+                       String defaultFactoryClassName) throws SOAPException {
         try {
             String factoryClassName = System.getProperty(factoryPropertyName);
             if (factoryClassName != null) {
@@ -89,7 +100,8 @@
                 Properties properties = new Properties();
                 properties.load(fileInput);
                 fileInput.close();
-                String factoryClassName = properties.getProperty(factoryPropertyName);
+                String factoryClassName = properties.getProperty(
+                        factoryPropertyName);
                 return newInstance(factoryClassName);
             }
         } catch (Exception exception1) {
@@ -100,7 +112,8 @@
         try {
             InputStream inputstream = getResource(factoryResource);
             if (inputstream != null) {
-                BufferedReader bufferedreader = new BufferedReader(new InputStreamReader(inputstream, "UTF-8"));
+                BufferedReader bufferedreader = new BufferedReader(
+                        new InputStreamReader(inputstream, "UTF-8"));
                 String factoryClassName = bufferedreader.readLine();
                 bufferedreader.close();
                 if ((factoryClassName != null) && !"".equals(factoryClassName)) {
@@ -111,7 +124,9 @@
         }
 
         if (defaultFactoryClassName == null) {
-            throw new SOAPException("Provider for " + factoryPropertyName + " cannot be found", null);
+            throw new SOAPException(
+                    "Provider for " + factoryPropertyName + " cannot be found",
+                    null);
         } else {
             return newInstance(defaultFactoryClassName);
         }
@@ -140,13 +155,16 @@
 
         InputStream inputstream;
         if (classloader == null) {
-            inputstream = ClassLoader.getSystemResourceAsStream(factoryResource);
+            inputstream =
+                    ClassLoader.getSystemResourceAsStream(factoryResource);
         } else {
             inputstream = classloader.getResourceAsStream(factoryResource);
         }
 
         if (inputstream == null) {
-            inputstream = FactoryFinder.class.getClassLoader().getResourceAsStream(factoryResource);
+            inputstream =
+                    FactoryFinder.class.getClassLoader().getResourceAsStream(
+                            factoryResource);
         }
         return inputstream;
     }

Modified: webservices/axis/trunk/java/modules/saaj/src/javax/xml/soap/MessageFactory.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/saaj/src/javax/xml/soap/MessageFactory.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/saaj/src/javax/xml/soap/MessageFactory.java (original)
+++ webservices/axis/trunk/java/modules/saaj/src/javax/xml/soap/MessageFactory.java Mon Jul 11 10:48:55 2005
@@ -117,11 +117,12 @@
     public static MessageFactory newInstance() throws SOAPException {
 
         try {
-            return (MessageFactory) FactoryFinder.find(MESSAGE_FACTORY_PROPERTY,
-                                                       DEFAULT_MESSAGE_FACTORY);
+            return (MessageFactory) FactoryFinder.find(
+                    MESSAGE_FACTORY_PROPERTY,
+                    DEFAULT_MESSAGE_FACTORY);
         } catch (Exception exception) {
             throw new SOAPException("Unable to create message factory for SOAP: "
-                                    + exception.getMessage());
+                    + exception.getMessage());
         }
     }
 
@@ -162,7 +163,8 @@
      *                       problem in reading data from the input stream
      * @throws SOAPException if the message is invalid
      */
-    public abstract SOAPMessage createMessage(MimeHeaders mimeheaders, InputStream inputstream)
+    public abstract SOAPMessage createMessage(MimeHeaders mimeheaders,
+                                              InputStream inputstream)
             throws IOException, SOAPException;
 
     private static final String DEFAULT_MESSAGE_FACTORY =

Modified: webservices/axis/trunk/java/modules/saaj/src/javax/xml/soap/MimeHeaders.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/saaj/src/javax/xml/soap/MimeHeaders.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/saaj/src/javax/xml/soap/MimeHeaders.java (original)
+++ webservices/axis/trunk/java/modules/saaj/src/javax/xml/soap/MimeHeaders.java Mon Jul 11 10:48:55 2005
@@ -190,7 +190,7 @@
             if (mimeheader.getName().equalsIgnoreCase(name)) {
                 if (!flag) {
                     headers.setElementAt(new MimeHeader(mimeheader
-                                                        .getName(), value), i);
+                            .getName(), value), i);
 
                     flag = true;
                 } else {

Modified: webservices/axis/trunk/java/modules/saaj/src/javax/xml/soap/SOAPConnectionFactory.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/saaj/src/javax/xml/soap/SOAPConnectionFactory.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/saaj/src/javax/xml/soap/SOAPConnectionFactory.java (original)
+++ webservices/axis/trunk/java/modules/saaj/src/javax/xml/soap/SOAPConnectionFactory.java Mon Jul 11 10:48:55 2005
@@ -44,10 +44,10 @@
 
         try {
             return (SOAPConnectionFactory) FactoryFinder.find(SF_PROPERTY,
-                                                              DEFAULT_SOAP_CONNECTION_FACTORY);
+                    DEFAULT_SOAP_CONNECTION_FACTORY);
         } catch (Exception exception) {
             throw new SOAPException("Unable to create SOAP connection factory: "
-                                    + exception.getMessage());
+                    + exception.getMessage());
         }
     }
 

Modified: webservices/axis/trunk/java/modules/saaj/src/javax/xml/soap/SOAPElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/saaj/src/javax/xml/soap/SOAPElement.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/saaj/src/javax/xml/soap/SOAPElement.java (original)
+++ webservices/axis/trunk/java/modules/saaj/src/javax/xml/soap/SOAPElement.java Mon Jul 11 10:48:55 2005
@@ -68,7 +68,8 @@
      * @throws SOAPException if there is an error in creating the
      *                       <code>SOAPElement</code> object
      */
-    public abstract SOAPElement addChildElement(String localName, String prefix)
+    public abstract SOAPElement addChildElement(String localName,
+                                                String prefix)
             throws SOAPException;
 
     /**
@@ -86,7 +87,9 @@
      * @throws SOAPException if there is an error in creating the
      *                       <code>SOAPElement</code> object
      */
-    public abstract SOAPElement addChildElement(String localName, String prefix, String uri) throws SOAPException;
+    public abstract SOAPElement addChildElement(String localName,
+                                                String prefix,
+                                                String uri) throws SOAPException;
 
     /**
      * Add a <code>SOAPElement</code> as a child of this
@@ -160,7 +163,8 @@
      * @throws SOAPException if there is an error in creating the
      *                       namespace
      */
-    public abstract SOAPElement addNamespaceDeclaration(String prefix, String uri) throws SOAPException;
+    public abstract SOAPElement addNamespaceDeclaration(String prefix,
+                                                        String uri) throws SOAPException;
 
     /**
      * Returns the value of the attribute with the specified

Modified: webservices/axis/trunk/java/modules/saaj/src/javax/xml/soap/SOAPElementFactory.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/saaj/src/javax/xml/soap/SOAPElementFactory.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/saaj/src/javax/xml/soap/SOAPElementFactory.java (original)
+++ webservices/axis/trunk/java/modules/saaj/src/javax/xml/soap/SOAPElementFactory.java Mon Jul 11 10:48:55 2005
@@ -112,7 +112,7 @@
             return new SOAPElementFactory(SOAPFactory.newInstance());
         } catch (Exception exception) {
             throw new SOAPException("Unable to create SOAP Element Factory: "
-                                    + exception.getMessage());
+                    + exception.getMessage());
         }
     }
 

Modified: webservices/axis/trunk/java/modules/saaj/src/javax/xml/soap/SOAPEnvelope.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/saaj/src/javax/xml/soap/SOAPEnvelope.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/saaj/src/javax/xml/soap/SOAPEnvelope.java (original)
+++ webservices/axis/trunk/java/modules/saaj/src/javax/xml/soap/SOAPEnvelope.java Mon Jul 11 10:48:55 2005
@@ -107,7 +107,9 @@
      *         local name, namespace prefix, and namespace URI
      * @throws SOAPException if there is a SOAP error
      */
-    public abstract Name createName(String localName, String prefix, String uri)
+    public abstract Name createName(String localName,
+                                    String prefix,
+                                    String uri)
             throws SOAPException;
 
     /**

Modified: webservices/axis/trunk/java/modules/saaj/src/javax/xml/soap/SOAPFactory.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/saaj/src/javax/xml/soap/SOAPFactory.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/saaj/src/javax/xml/soap/SOAPFactory.java (original)
+++ webservices/axis/trunk/java/modules/saaj/src/javax/xml/soap/SOAPFactory.java Mon Jul 11 10:48:55 2005
@@ -74,7 +74,9 @@
      * @throws SOAPException if there is an error in creating the
      *                       <code>SOAPElement</code> object
      */
-    public abstract SOAPElement createElement(String localName, String prefix, String uri)
+    public abstract SOAPElement createElement(String localName,
+                                              String prefix,
+                                              String uri)
             throws SOAPException;
 
     /**
@@ -105,7 +107,9 @@
      *         local name, namespace prefix, and namespace URI
      * @throws SOAPException if there is a SOAP error
      */
-    public abstract Name createName(String localName, String prefix, String uri)
+    public abstract Name createName(String localName,
+                                    String prefix,
+                                    String uri)
             throws SOAPException;
 
     /**
@@ -136,7 +140,7 @@
             return (SOAPFactory) FactoryFinder.find(SF_PROPERTY, DEFAULT_SF);
         } catch (Exception exception) {
             throw new SOAPException("Unable to create SOAP Factory: "
-                                    + exception.getMessage());
+                    + exception.getMessage());
         }
     }
 

Modified: webservices/axis/trunk/java/modules/saaj/src/javax/xml/soap/SOAPMessage.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/saaj/src/javax/xml/soap/SOAPMessage.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/saaj/src/javax/xml/soap/SOAPMessage.java (original)
+++ webservices/axis/trunk/java/modules/saaj/src/javax/xml/soap/SOAPMessage.java Mon Jul 11 10:48:55 2005
@@ -326,7 +326,8 @@
      *                       retrieved
      */
     public SOAPBody getSOAPBody() throws SOAPException {
-        throw new UnsupportedOperationException("getSOAPBody must be overridden in subclasses of SOAPMessage");
+        throw new UnsupportedOperationException(
+                "getSOAPBody must be overridden in subclasses of SOAPMessage");
     }
 
     /**
@@ -338,7 +339,8 @@
      *                       retrieved
      */
     public SOAPHeader getSOAPHeader() throws SOAPException {
-        throw new UnsupportedOperationException("getSOAPHeader must be overridden in subclasses of SOAPMessage");
+        throw new UnsupportedOperationException(
+                "getSOAPHeader must be overridden in subclasses of SOAPMessage");
     }
 
     /**
@@ -371,7 +373,8 @@
      */
     public void setProperty(String property, Object value)
             throws SOAPException {
-        throw new UnsupportedOperationException("setProperty must be overridden in subclasses of SOAPMessage");
+        throw new UnsupportedOperationException(
+                "setProperty must be overridden in subclasses of SOAPMessage");
     }
 
     /**
@@ -383,7 +386,8 @@
      * @throws SOAPException if the property name is not recognized
      */
     public Object getProperty(String property) throws SOAPException {
-        throw new UnsupportedOperationException("getProperty must be overridden in subclasses of SOAPMessage");
+        throw new UnsupportedOperationException(
+                "getProperty must be overridden in subclasses of SOAPMessage");
     }
 
     /**

Modified: webservices/axis/trunk/java/modules/saaj/src/org/apache/axis2/saaj/DetailImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/saaj/src/org/apache/axis2/saaj/DetailImpl.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/saaj/src/org/apache/axis2/saaj/DetailImpl.java (original)
+++ webservices/axis/trunk/java/modules/saaj/src/org/apache/axis2/saaj/DetailImpl.java Mon Jul 11 10:48:55 2005
@@ -22,7 +22,11 @@
 import org.apache.axis2.soap.SOAPFactory;
 import org.apache.axis2.soap.SOAPFaultDetail;
 
-import javax.xml.soap.*;
+import javax.xml.soap.Detail;
+import javax.xml.soap.DetailEntry;
+import javax.xml.soap.Name;
+import javax.xml.soap.SOAPException;
+import javax.xml.soap.SOAPFault;
 import java.util.ArrayList;
 import java.util.Iterator;
 
@@ -67,7 +71,8 @@
 
         String localName = name.getLocalName();
         OMFactory omFactory = OMAbstractFactory.getOMFactory();
-        OMNamespace ns = omFactory.createOMNamespace(name.getURI(), name.getPrefix());
+        OMNamespace ns = omFactory.createOMNamespace(name.getURI(),
+                name.getPrefix());
         OMElement detailEntry = omFactory.createOMElement(localName, ns);
         detail.addDetailEntry(detailEntry);
         return (new DetailEntryImpl(detailEntry));
@@ -79,7 +84,8 @@
      * @param detailEntry
      * @return
      */
-    protected DetailEntry addDetailEntry(org.apache.axis2.om.OMElement detailEntry) {
+    protected DetailEntry addDetailEntry(
+            org.apache.axis2.om.OMElement detailEntry) {
         detail.addDetailEntry(detailEntry);
         return (new DetailEntryImpl(detailEntry));
     }

Modified: webservices/axis/trunk/java/modules/saaj/src/org/apache/axis2/saaj/MessageFactoryImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/saaj/src/org/apache/axis2/saaj/MessageFactoryImpl.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/saaj/src/org/apache/axis2/saaj/MessageFactoryImpl.java (original)
+++ webservices/axis/trunk/java/modules/saaj/src/org/apache/axis2/saaj/MessageFactoryImpl.java Mon Jul 11 10:48:55 2005
@@ -43,9 +43,12 @@
      * @see javax.xml.soap.MessageFactory#createMessage(javax.xml.soap.MimeHeaders, java.io.InputStream)
      */
     public SOAPMessage createMessage(MimeHeaders mimeheaders,
-                                     InputStream inputstream) throws IOException, SOAPException {
+                                     InputStream inputstream) throws IOException,
+            SOAPException {
         // TODO Auto-generated method stub
-        SOAPMessageImpl message = new SOAPMessageImpl(inputstream, false, mimeheaders);
+        SOAPMessageImpl message = new SOAPMessageImpl(inputstream,
+                false,
+                mimeheaders);
         return message;
     }
 

Modified: webservices/axis/trunk/java/modules/saaj/src/org/apache/axis2/saaj/NodeImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/saaj/src/org/apache/axis2/saaj/NodeImpl.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/saaj/src/org/apache/axis2/saaj/NodeImpl.java (original)
+++ webservices/axis/trunk/java/modules/saaj/src/org/apache/axis2/saaj/NodeImpl.java Mon Jul 11 10:48:55 2005
@@ -15,7 +15,11 @@
  */
 package org.apache.axis2.saaj;
 
-import org.apache.axis2.om.*;
+import org.apache.axis2.om.OMAttribute;
+import org.apache.axis2.om.OMElement;
+import org.apache.axis2.om.OMNamespace;
+import org.apache.axis2.om.OMNode;
+import org.apache.axis2.om.OMText;
 import org.apache.axis2.util.Dom2OmUtils;
 import org.w3c.dom.DOMException;
 import org.w3c.dom.Document;
@@ -169,14 +173,20 @@
         if (omNode.getType() == OMNode.TEXT_NODE) {
             OMElement parent = (OMElement) omNode.getParent();
             ((OMText) omNode).discard();
-            omNode = org.apache.axis2.om.OMAbstractFactory.getOMFactory().createText(parent, value);
+            omNode =
+                    org.apache.axis2.om.OMAbstractFactory.getOMFactory()
+                    .createText(parent, value);
         } else if (omNode.getType() == OMNode.ELEMENT_NODE) {
             OMNode firstChild = ((OMElement) omNode).getFirstChild();
             if (firstChild == null) {
-                firstChild = org.apache.axis2.om.OMAbstractFactory.getOMFactory().createText((OMElement) omNode, value);
+                firstChild =
+                        org.apache.axis2.om.OMAbstractFactory.getOMFactory()
+                        .createText((OMElement) omNode, value);
             } else if (firstChild.getType() == OMNode.TEXT_NODE) {
                 ((OMText) firstChild).discard();
-                firstChild = org.apache.axis2.om.OMAbstractFactory.getOMFactory().createText((OMElement) omNode, value);
+                firstChild =
+                        org.apache.axis2.om.OMAbstractFactory.getOMFactory()
+                        .createText((OMElement) omNode, value);
             }
         } else {
             throw new IllegalStateException();
@@ -309,7 +319,9 @@
         if (omNode.getType() == OMNode.TEXT_NODE) {
             OMElement parent = (OMElement) omNode.getParent();
             ((OMText) omNode).discard();
-            omNode = org.apache.axis2.om.OMAbstractFactory.getOMFactory().createText(parent, value);
+            omNode =
+                    org.apache.axis2.om.OMAbstractFactory.getOMFactory()
+                    .createText(parent, value);
         }
     }
 
@@ -323,7 +335,8 @@
         if (omNode.getType() == OMNode.ELEMENT_NODE /*|| Attribute Node*/) {
             OMNamespace ns = ((OMElement) omNode).getNamespace();
             String uri = ns.getName();
-            OMNamespace newNs = org.apache.axis2.om.OMAbstractFactory.getOMFactory().createOMNamespace(uri, prefix);
+            OMNamespace newNs = org.apache.axis2.om.OMAbstractFactory.getOMFactory()
+                    .createOMNamespace(uri, prefix);
             ((OMElement) omNode).setNamespace(newNs);
         }
 
@@ -500,7 +513,8 @@
             Iterator iter = ((OMElement) omNode).getChildren();
             while (iter.hasNext()) {
                 Object nextChild = iter.next();
-                if (nextChild instanceof OMNode && nextChild.equals(refOmChild)) {
+                if (nextChild instanceof OMNode &&
+                        nextChild.equals(refOmChild)) {
 
                 }
             }

Modified: webservices/axis/trunk/java/modules/saaj/src/org/apache/axis2/saaj/NodeListImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/saaj/src/org/apache/axis2/saaj/NodeListImpl.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/saaj/src/org/apache/axis2/saaj/NodeListImpl.java (original)
+++ webservices/axis/trunk/java/modules/saaj/src/org/apache/axis2/saaj/NodeListImpl.java Mon Jul 11 10:48:55 2005
@@ -32,7 +32,8 @@
 
     List mNodes;
 
-    public static final NodeList EMPTY_NODELIST = new NodeListImpl(Collections.EMPTY_LIST);
+    public static final NodeList EMPTY_NODELIST = new NodeListImpl(
+            Collections.EMPTY_LIST);
 
     /**
      * Constructor and Setter is intensionally made package access only.

Modified: webservices/axis/trunk/java/modules/saaj/src/org/apache/axis2/saaj/SOAPBodyImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/saaj/src/org/apache/axis2/saaj/SOAPBodyImpl.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/saaj/src/org/apache/axis2/saaj/SOAPBodyImpl.java (original)
+++ webservices/axis/trunk/java/modules/saaj/src/org/apache/axis2/saaj/SOAPBodyImpl.java Mon Jul 11 10:48:55 2005
@@ -22,7 +22,11 @@
 import org.w3c.dom.Document;
 
 import javax.xml.namespace.QName;
-import javax.xml.soap.*;
+import javax.xml.soap.Name;
+import javax.xml.soap.SOAPBody;
+import javax.xml.soap.SOAPBodyElement;
+import javax.xml.soap.SOAPException;
+import javax.xml.soap.SOAPFault;
 import java.util.Locale;
 
 /**
@@ -60,7 +64,9 @@
         try {
             //OM SOAPFaultImpl has SOAPFaultImpl(OMElement parent, Exception e) constructor, will use that
             SOAPFactory soapFactory = OMAbstractFactory.getDefaultSOAPFactory();
-            org.apache.axis2.soap.SOAPFault omSoapFault = soapFactory.createSOAPFault(omSOAPBody, new Exception("No explicit faultstring available"));
+            org.apache.axis2.soap.SOAPFault omSoapFault = soapFactory.createSOAPFault(
+                    omSOAPBody,
+                    new Exception("No explicit faultstring available"));
             omSOAPBody.addFault(omSoapFault);
             return (new SOAPFaultImpl(omSoapFault));
         } catch (Exception e) {
@@ -100,8 +106,11 @@
 
         try {
             OMFactory omFactory = OMAbstractFactory.getOMFactory();
-            QName qname = new QName(name.getURI(), name.getLocalName(), name.getPrefix());
-            OMElement bodyElement = omFactory.createOMElement(qname, omSOAPBody);
+            QName qname = new QName(name.getURI(),
+                    name.getLocalName(),
+                    name.getPrefix());
+            OMElement bodyElement = omFactory.createOMElement(qname,
+                    omSOAPBody);
             omSOAPBody.addChild(bodyElement);
             return (new SOAPBodyElementImpl(bodyElement));
         } catch (Exception e) {
@@ -118,7 +127,9 @@
      * @throws SOAPException
      * @see javax.xml.soap.SOAPBody#addFault(javax.xml.soap.Name, java.lang.String, java.util.Locale)
      */
-    public SOAPFault addFault(Name faultCode, String faultString, Locale locale)
+    public SOAPFault addFault(Name faultCode,
+                              String faultString,
+                              Locale locale)
             throws SOAPException {
         try {
             //OM SOAPFaultImpl has SOAPFaultImpl(OMElement parent, Exception e) constructor, will use that
@@ -127,7 +138,8 @@
             //So am deferring it.
             //even locale param is dropped, don't know how to handle it at the moment. so dropped it.
             SOAPFactory soapFactory = OMAbstractFactory.getDefaultSOAPFactory();
-            org.apache.axis2.soap.SOAPFault omSoapFault = soapFactory.createSOAPFault(omSOAPBody, new Exception(faultString));
+            org.apache.axis2.soap.SOAPFault omSoapFault = soapFactory.createSOAPFault(
+                    omSOAPBody, new Exception(faultString));
             omSOAPBody.addFault(omSoapFault);
             return (new SOAPFaultImpl(omSoapFault));
         } catch (Exception e) {
@@ -152,7 +164,8 @@
             //a work around can be possible but would be confusing as there is no straight forward soapfault constructor in om.
             //So am deferring it.
             SOAPFactory soapFactory = OMAbstractFactory.getDefaultSOAPFactory();
-            org.apache.axis2.soap.SOAPFault omSoapFault = soapFactory.createSOAPFault(omSOAPBody, new Exception(faultString));
+            org.apache.axis2.soap.SOAPFault omSoapFault = soapFactory.createSOAPFault(
+                    omSOAPBody, new Exception(faultString));
             omSOAPBody.addFault(omSoapFault);
             return (new SOAPFaultImpl(omSoapFault));
         } catch (Exception e) {

Modified: webservices/axis/trunk/java/modules/saaj/src/org/apache/axis2/saaj/SOAPConnectionImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/saaj/src/org/apache/axis2/saaj/SOAPConnectionImpl.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/saaj/src/org/apache/axis2/saaj/SOAPConnectionImpl.java (original)
+++ webservices/axis/trunk/java/modules/saaj/src/org/apache/axis2/saaj/SOAPConnectionImpl.java Mon Jul 11 10:48:55 2005
@@ -41,13 +41,19 @@
     public SOAPMessage call(SOAPMessage request, Object endpoint)
             throws SOAPException {
         try {
-            org.apache.axis2.soap.SOAPEnvelope envelope = ((SOAPEnvelopeImpl) request.getSOAPPart().getEnvelope()).getOMEnvelope();
+            org.apache.axis2.soap.SOAPEnvelope envelope = ((SOAPEnvelopeImpl) request.getSOAPPart()
+                    .getEnvelope()).getOMEnvelope();
 
             Call call = new Call();
             URL url = new URL(endpoint.toString());
-            call.setTransportInfo(Constants.TRANSPORT_HTTP, Constants.TRANSPORT_HTTP, true);
-            call.setTo(new EndpointReference(AddressingConstants.WSA_TO, url.toString()));
-            org.apache.axis2.soap.SOAPEnvelope responseEnv = (org.apache.axis2.soap.SOAPEnvelope) call.invokeBlocking("echo", envelope);
+            call.setTransportInfo(Constants.TRANSPORT_HTTP,
+                    Constants.TRANSPORT_HTTP,
+                    true);
+            call.setTo(
+                    new EndpointReference(AddressingConstants.WSA_TO,
+                            url.toString()));
+            org.apache.axis2.soap.SOAPEnvelope responseEnv = (org.apache.axis2.soap.SOAPEnvelope) call.invokeBlocking(
+                    "echo", envelope);
             SOAPEnvelopeImpl response = new SOAPEnvelopeImpl(responseEnv);
             return new SOAPMessageImpl(response);
 

Modified: webservices/axis/trunk/java/modules/saaj/src/org/apache/axis2/saaj/SOAPDocumentImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/saaj/src/org/apache/axis2/saaj/SOAPDocumentImpl.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/saaj/src/org/apache/axis2/saaj/SOAPDocumentImpl.java (original)
+++ webservices/axis/trunk/java/modules/saaj/src/org/apache/axis2/saaj/SOAPDocumentImpl.java Mon Jul 11 10:48:55 2005
@@ -16,7 +16,21 @@
 package org.apache.axis2.saaj;
 
 import org.apache.axis2.util.XMLUtils;
-import org.w3c.dom.*;
+import org.w3c.dom.Attr;
+import org.w3c.dom.CDATASection;
+import org.w3c.dom.Comment;
+import org.w3c.dom.DOMException;
+import org.w3c.dom.DOMImplementation;
+import org.w3c.dom.Document;
+import org.w3c.dom.DocumentFragment;
+import org.w3c.dom.DocumentType;
+import org.w3c.dom.Element;
+import org.w3c.dom.EntityReference;
+import org.w3c.dom.NamedNodeMap;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+import org.w3c.dom.ProcessingInstruction;
+import org.w3c.dom.Text;
 
 import javax.xml.parsers.ParserConfigurationException;
 import javax.xml.soap.SOAPException;
@@ -121,7 +135,8 @@
      */
     public EntityReference createEntityReference(String name)
             throws DOMException {
-        throw new java.lang.UnsupportedOperationException("createEntityReference");
+        throw new java.lang.UnsupportedOperationException(
+                "createEntityReference");
     }
 
     /* (non-Javadoc)
@@ -184,18 +199,23 @@
     /* (non-Javadoc)
      * @see org.w3c.dom.Document#getElementsByTagNameNS(java.lang.String, java.lang.String)
      */
-    public NodeList getElementsByTagNameNS(String namespaceURI, String localName) {
+    public NodeList getElementsByTagNameNS(String namespaceURI,
+                                           String localName) {
         try {
             NodeListImpl list = new NodeListImpl();
             if (soapPart != null) {
                 SOAPEnvelopeImpl soapEnv = (SOAPEnvelopeImpl) soapPart.getEnvelope();
                 SOAPHeaderImpl header = (SOAPHeaderImpl) soapEnv.getHeader();
                 if (header != null) {
-                    list.addNodeList(header.getElementsByTagNameNS(namespaceURI, localName));
+                    list.addNodeList(
+                            header.getElementsByTagNameNS(namespaceURI,
+                                    localName));
                 }
                 SOAPBodyImpl body = (SOAPBodyImpl) soapEnv.getBody();
                 if (body != null) {
-                    list.addNodeList(body.getElementsByTagNameNS(namespaceURI, localName));
+                    list.addNodeList(
+                            body.getElementsByTagNameNS(namespaceURI,
+                                    localName));
                 }
             }
             return list;
@@ -208,7 +228,8 @@
     public ProcessingInstruction createProcessingInstruction(String target,
                                                              String data)
             throws DOMException {
-        throw new java.lang.UnsupportedOperationException("createProcessingInstruction");
+        throw new java.lang.UnsupportedOperationException(
+                "createProcessingInstruction");
     }
 
 
@@ -259,7 +280,7 @@
 
     public String getNodeValue() throws DOMException {
         throw new DOMException(DOMException.NO_DATA_ALLOWED_ERR,
-                               "Cannot use TextNode.get in " + this);
+                "Cannot use TextNode.get in " + this);
     }
 
     public String getPrefix() {
@@ -268,7 +289,7 @@
 
     public void setNodeValue(String nodeValue) throws DOMException {
         throw new DOMException(DOMException.NO_DATA_ALLOWED_ERR,
-                               "Cannot use TextNode.set in " + this);
+                "Cannot use TextNode.set in " + this);
     }