You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2005/09/15 21:07:03 UTC

svn commit: r289289 [17/134] - in /webservices/axis2/trunk/java: ./ etc/ modules/addressing/ modules/addressing/src/META-INF/ modules/addressing/src/org/apache/axis2/handlers/addressing/ modules/addressing/test-resources/ modules/addressing/test/org/ap...

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/ServiceDescription.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/ServiceDescription.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/ServiceDescription.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/ServiceDescription.java Thu Sep 15 11:52:11 2005
@@ -1,829 +1,829 @@
-/*
-* Copyright 2004,2005 The Apache Software Foundation.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-*      http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.axis2.description;
-
-import com.ibm.wsdl.extensions.soap.SOAPAddressImpl;
-import com.ibm.wsdl.extensions.soap.SOAPConstants;
-import org.apache.axis2.AxisFault;
-import org.apache.axis2.Constants;
-import org.apache.axis2.context.MessageContext;
-import org.apache.axis2.context.ServiceContext;
-import org.apache.axis2.engine.AxisConfiguration;
-import org.apache.axis2.phaseresolver.PhaseResolver;
-import org.apache.wsdl.*;
-import org.apache.wsdl.extensions.ExtensionConstants;
-import org.apache.wsdl.extensions.SOAPOperation;
-import org.apache.wsdl.impl.WSDLInterfaceImpl;
-import org.apache.wsdl.impl.WSDLServiceImpl;
-
-import javax.wsdl.Definition;
-import javax.wsdl.Port;
-import javax.wsdl.Service;
-import javax.wsdl.WSDLException;
-import javax.wsdl.extensions.soap.SOAPAddress;
-import javax.wsdl.factory.WSDLFactory;
-import javax.xml.namespace.QName;
-import java.io.IOException;
-import java.io.Writer;
-import java.util.*;
-
-/**
- * Class ServiceDescription
- */
-public class ServiceDescription
-        //    extends WSDLServiceImpl
-        implements WSDLService ,
-        ParameterInclude,
-        FlowInclude,
-        DescriptionConstants {
-
-    private Definition definition = null;
-
-    private HashMap moduleConfigmap;
-
-    private  ServiceGroupDescription parent;
-    //to store the wsdl definition , which is build at the deployment time
-
-    //to keep the time that last update time of the service
-    private long lastupdate ;
-    /**
-     * TODO this should be in the WSDLInterface, yet we want it to have in the
-     * the Services, so we put this here for M1 until we foud better way to do
-     * that
-     */
-//    protected final HashMap operationsMap = new HashMap();
-
-    private String  serviceDescription ;
-    private String fileName = "";
-
-    private WSDLServiceImpl serviceimpl = null;
-
-    private HashMap wasaction_opeartionmap = null;
-
-    //to store module ref at deploy time parsing
-    private ArrayList mdoulesList = new ArrayList();
-
-    /**
-     * Constructor ServiceDescription
-     */
-
-    public ServiceDescription(WSDLServiceImpl serviceimpl){
-        this.serviceimpl = serviceimpl;
-        this.wasaction_opeartionmap = new HashMap();
-        this.setComponentProperty(MODULEREF_KEY, new ArrayList());
-        this.setComponentProperty(PARAMETER_KEY, new ParameterIncludeImpl());
-        this.setServiceInterface(new WSDLInterfaceImpl());
-    }
-
-    public ServiceDescription() {
-        this.serviceimpl = new WSDLServiceImpl();
-        this.wasaction_opeartionmap = new HashMap();
-        this.setComponentProperty(MODULEREF_KEY, new ArrayList());
-        this.setComponentProperty(PARAMETER_KEY, new ParameterIncludeImpl());
-        this.setServiceInterface(new WSDLInterfaceImpl());
-    }
-
-    /**
-     * Constructor ServiceDescription
-     *
-     * @param qName
-     */
-    public ServiceDescription(QName qName) {
-        this();
-        this.setName(qName);
-    }
-
-    /*
-    * (non-Javadoc)
-    *
-    * @see org.apache.axis2.description.ServiceDescription#addModule(javax.xml.namespace.QName)
-    */
-
-    /**
-     * To ebgage a module it is reuired to use this method
-     *
-     * @param moduleref
-     * @throws AxisFault
-     */
-    public void engageModule(ModuleDescription moduleref,
-                             AxisConfiguration axisConfig)
-            throws AxisFault {
-        if (moduleref == null) {
-            return;
-        }
-        Collection collectionModule = (Collection) this.getComponentProperty(
-                MODULEREF_KEY);
-        for (Iterator iterator = collectionModule.iterator();
-             iterator.hasNext();) {
-            ModuleDescription modu = (ModuleDescription) iterator.next();
-            if (modu.getName().equals(moduleref.getName())) {
-                throw new AxisFault(moduleref.getName().getLocalPart() +
-                        " module has alredy been engaged on the service. " +
-                        " Operation terminated !!!");
-            }
-
-        }
-        new PhaseResolver(axisConfig).engageModuleToService(this, moduleref);
-        collectionModule.add(moduleref);
-    }
-
-    /**
-     * To add a opeartion to a service if a module requird to do so
-     *
-     * @param module
-     */
-
-    public void addModuleOperations(ModuleDescription module,
-                                    AxisConfiguration axisConfig) throws AxisFault {
-        HashMap map = module.getOperations();
-        Collection col = map.values();
-        PhaseResolver pr = new PhaseResolver(axisConfig, this);
-
-        for (Iterator iterator = col.iterator(); iterator.hasNext();) {
-            OperationDescription operation = (OperationDescription) iterator.next();
-            ArrayList paramters = operation.getParameters();
-            // Adding wsa-maping into service
-            for (int j = 0; j < paramters.size(); j++) {
-                Parameter parameter = (Parameter) paramters.get(j);
-                if(parameter.getName().equals(Constants.WSA_ACTION)){
-                    this.addMapping((String)parameter.getValue(),operation);
-                }
-            }
-            pr.buildModuleOperation(operation);
-            this.addOperation(operation);
-        }
-    }
-
-    public void addToEngagModuleList(ModuleDescription moduleName) {
-        Collection collectionModule = (Collection) this.getComponentProperty(
-                MODULEREF_KEY);
-        for (Iterator iterator = collectionModule.iterator();
-             iterator.hasNext();) {
-            ModuleDescription moduleDescription = (ModuleDescription) iterator.next();
-            if (moduleName.getName().equals(moduleDescription.getName())) {
-                return;
-            }
-        }
-        collectionModule.add(moduleName);
-    }
-
-    /*
-    * (non-Javadoc)
-    *
-    * @see org.apache.axis2.description.ServiceDescription#getEngadgedModules()
-    */
-
-    /**
-     * Method getEngadgedModules
-     *
-     * @return Collection
-     */
-    public Collection getEngagedModules() {
-        return (Collection) this.getComponentProperty(MODULEREF_KEY);
-    }
-
-    /**
-     * Method getOperation
-     *
-     * @param operationName
-     * @return   OperationDescription
-     */
-    public OperationDescription getOperation(QName operationName) {
-        String opStr = operationName.getLocalPart();
-
-        HashMap allOperations = this.getServiceInterface().getAllOperations();
-        OperationDescription opeartion = (OperationDescription) allOperations.get(opStr);
-        if(opeartion == null ){
-            opeartion = (OperationDescription)wasaction_opeartionmap.get(
-                    operationName.getLocalPart());
-        }
-        return opeartion;
-    }
-
-    /*
-    * (non-Javadoc)
-    *
-    * @see org.apache.axis2.description.ServiceDescription#addOperation(org.apache.axis2.description.OperationDescription)
-    */
-
-    /**
-     * Method addOperation
-     *
-     * @param operation
-     */
-    public void addOperation(OperationDescription operation) {
-        operation.setParent(this);
-        this.getServiceInterface().setOperation(operation);
-    }
-
-    /*
-    * (non-Javadoc)
-    *
-    * @see org.apache.axis2.description.ServiceDescription#setClassLoader(java.lang.ClassLoader)
-    */
-
-    /**
-     * Method setClassLoader
-     *
-     * @param classLoader
-     */
-    public void setClassLoader(ClassLoader classLoader) {
-        if (classLoader != null) {
-            this.setComponentProperty(CLASSLOADER_KEY, classLoader);
-        }
-    }
-
-    /*
-    * (non-Javadoc)
-    *
-    * @see org.apache.axis2.description.ServiceDescription#getClassLoader()
-    */
-
-    /**
-     * Method getClassLoader
-     *
-     * @return  ClassLoader
-     */
-    public ClassLoader getClassLoader() {
-        return (ClassLoader) this.getComponentProperty(CLASSLOADER_KEY);
-    }
-
-    /*
-    * (non-Javadoc)
-    *
-    * @see org.apache.axis2.description.ServiceDescription#setContextPath(java.lang.String)
-    */
-
-    /**
-     * Method setContextPath
-     *
-     * @param contextPath
-     */
-    public void setContextPath(String contextPath) {
-        if (contextPath != null) {
-            this.setComponentProperty(CONTEXTPATH_KEY, contextPath);
-        }
-    }
-
-    /*
-    * (non-Javadoc)
-    *
-    * @see org.apache.axis2.description.ServiceDescription#getContextPath()
-    */
-
-    /**
-     * Method getContextPath
-     *
-     * @return  String
-     */
-    public String getContextPath() {
-        return (String) this.getComponentProperty(CONTEXTPATH_KEY);
-    }
-
-    /*
-    * (non-Javadoc)
-    *
-    * @see org.apache.axis2.description.ServiceDescription#setStyle(javax.swing.text.Style)
-    */
-
-    /**
-     * Method setStyle
-     *
-     * @param style
-     */
-    public void setStyle(String style) {
-        if (style != null) {
-            this.setComponentProperty(STYLE_KEY, style);
-        }
-    }
-
-    /*
-    * (non-Javadoc)
-    *
-    * @see org.apache.axis2.description.ServiceDescription#getStyle()
-    */
-
-    /**
-     * Method getStyle
-     *
-     * @return String
-     */
-    public String getStyle() {
-        return (String) this.getComponentProperty(STYLE_KEY);
-    }
-
-    /*
-    * (non-Javadoc)
-    *
-    * @see org.apache.axis2.description.PhasesInclude#getPhases(java.util.ArrayList,
-    *      int)
-    */
-
-    /*
-    * (non-Javadoc)
-    *
-    * @see org.apache.axis2.description.ParameterInclude#addParameter(org.apache.axis2.description.Parameter)
-    */
-
-    /**
-     * Method addParameter
-     *
-     * @param param
-     */
-    public void addParameter(Parameter param) throws AxisFault {
-        if (param == null) {
-            return;
-        }
-
-        if(isParamterLocked(param.getName())){
-            throw new AxisFault("Parmter is locked can not overide: " + param.getName());
-        } else{
-            ParameterIncludeImpl paramInclude =
-                    (ParameterIncludeImpl) this.getComponentProperty(PARAMETER_KEY);
-            paramInclude.addParameter(param);
-        }
-    }
-
-    /*
-    * (non-Javadoc)
-    *
-    * @see org.apache.axis2.description.ParameterInclude#getParameter(java.lang.String)
-    */
-
-    /**
-     * Method getParameter
-     *
-     * @param name
-     * @return Parameter
-     */
-    public Parameter getParameter(String name) {
-        ParameterIncludeImpl paramInclude =
-                (ParameterIncludeImpl) this.getComponentProperty(PARAMETER_KEY);
-        return paramInclude.getParameter(name);
-    }
-
-    public ArrayList getParameters() {
-        ParameterIncludeImpl paramInclude =
-                (ParameterIncludeImpl) this.getComponentProperty(PARAMETER_KEY);
-        return  paramInclude.getParameters();
-    }
-
-    /*
-    * (non-Javadoc)
-    *
-    * @see org.apache.axis2.description.FlowInclude#getInFlow()
-    */
-
-    /**
-     * Method getInFlow
-     *
-     * @return Flow
-     */
-    public Flow getInFlow() {
-        return (Flow) this.getComponentProperty(INFLOW_KEY);
-    }
-
-    /*
-    * (non-Javadoc)
-    *
-    * @see org.apache.axis2.description.FlowInclude#setInFlow(org.apache.axis2.description.Flow)
-    */
-
-    /**
-     * Method setInFlow
-     *
-     * @param inFlow
-     */
-    public void setInFlow(Flow inFlow) {
-        if (inFlow != null) {
-            this.setComponentProperty(INFLOW_KEY, inFlow);
-        }
-    }
-
-    /*
-    * (non-Javadoc)
-    *
-    * @see org.apache.axis2.description.FlowInclude#getOutFlow()
-    */
-
-    /**
-     * Method getOutFlow
-     *
-     * @return Flow
-     */
-    public Flow getOutFlow() {
-        return (Flow) this.getComponentProperty(OUTFLOW_KEY);
-    }
-
-    /*
-    * (non-Javadoc)
-    *
-    * @see org.apache.axis2.description.FlowInclude#setOutFlow(org.apache.axis2.description.Flow)
-    */
-
-    /**
-     * Method setOutFlow
-     *
-     * @param outFlow
-     */
-    public void setOutFlow(Flow outFlow) {
-        if (outFlow != null) {
-            this.setComponentProperty(OUTFLOW_KEY, outFlow);
-        }
-    }
-
-    /*
-    * (non-Javadoc)
-    *
-    * @see org.apache.axis2.description.FlowInclude#getFaultInFlow()
-    */
-
-    /**
-     * Method getFaultInFlow
-     *
-     * @return Flow
-     */
-    public Flow getFaultInFlow() {
-        return (Flow) this.getComponentProperty(IN_FAULTFLOW_KEY);
-    }
-
-    /*
-    * (non-Javadoc)
-    *
-    * @see org.apache.axis2.description.FlowInclude#setFaultInFlow(org.apache.axis2.description.Flow)
-    */
-
-    /**
-     * Method setFaultInFlow
-     *
-     * @param faultFlow
-     */
-    public void setFaultInFlow(Flow faultFlow) {
-        if (faultFlow != null) {
-            this.setComponentProperty(IN_FAULTFLOW_KEY, faultFlow);
-        }
-    }
-
-    public Flow getFaultOutFlow() {
-        return (Flow) this.getComponentProperty(OUT_FAULTFLOW_KEY);
-    }
-
-    public void setFaultOutFlow(Flow faultFlow) {
-        if (faultFlow != null) {
-            this.setComponentProperty(OUT_FAULTFLOW_KEY, faultFlow);
-        }
-    }
-
-    /**
-     * Method getOperations
-     *
-     * @return  HashMap
-     */
-    public HashMap getOperations() {
-        return this.getServiceInterface().getOperations();
-    }
-
-    public OperationDescription getOperation(String ncName) {
-        return (OperationDescription) this.getServiceInterface().getOperations()
-                .get(ncName);
-    }
-
-    /**
-     * This method will return the operation given particular SOAP Action.
-     * This method should only be called if there is only one Endpoint is defined
-     * for this Service. If more than one Endpoint exists one of them will be picked.
-     * If more than one Operation is found with the given
-     * SOAP Action; null will be ruturned. If no particular Operation is found with
-     * the given SOAP Action; null will be returned.
-     *
-     * @param soapAction SOAP Action defined for the particular Operation
-     * @return A OperationDescription if a unque Operation can be found with the given SOAP Action
-     *         otherwise will return null.
-     */
-    public OperationDescription getOperationBySOAPAction(String soapAction) {
-        if(soapAction == null || soapAction.equals("")){
-            return null;
-        }
-        Iterator iterator = this.getEndpoints().keySet().iterator();
-        if (iterator.hasNext()) {
-            WSDLEndpoint endpoint = (WSDLEndpoint) this.getEndpoints().get(
-                    iterator.next());
-            return this.getOperationBySOAPAction(soapAction,
-                    endpoint.getName());
-        }
-
-        return null;
-
-
-    }
-
-
-    /**
-     * This method will return the operation given the particular endpoing and the
-     * particular SOAP Action. If more than one Operation is found with the given
-     * SOAP Action; null will be ruturned. If no particular Operation is found with
-     * the given SOAP Action; null will be returned
-     *
-     * @param endpoint   Particular Enpoint in which the bining is defined with the particular SOAP
-     *                   Action.
-     * @param soapAction SOAP Action defined for the particular Operation
-     * @return A OperationDescription if a unque Operation can be found with the given SOAP Action
-     *         otherwise will return null.
-     */
-    public OperationDescription getOperationBySOAPAction(String soapAction,
-                                                         QName endpoint) {
-        HashMap bindingOperations = this.getEndpoint(endpoint).getBinding()
-                .getBindingOperations();
-        Iterator operationKeySetIterator = bindingOperations.keySet().iterator();
-        OperationDescription operation = null;
-        int count = 0;
-        while (operationKeySetIterator.hasNext()) {
-            WSDLBindingOperation bindingOperation = (WSDLBindingOperation) bindingOperations.get(
-                    operationKeySetIterator.next());
-            Iterator extIterator = bindingOperation.getExtensibilityElements()
-                    .iterator();
-            while (extIterator.hasNext()) {
-                WSDLExtensibilityElement element = (WSDLExtensibilityElement) extIterator.next();
-                if (ExtensionConstants.SOAP_11_OPERATION.equals(element.getType())||
-                        ExtensionConstants.SOAP_12_OPERATION.equals(element.getType())) {
-                    if (((SOAPOperation) element).getSoapAction().equals(
-                            soapAction)) {
-                        WSDLOperation op = bindingOperation.getOperation();
-                        if (op instanceof OperationDescription) {
-                            operation = (OperationDescription) op;
-                            count++;
-                        }
-                    }
-                }
-            }
-        }
-        if (1 == count) {
-            return operation;
-        }
-        return null;
-    }
-
-
-    /**
-     * This finds the ServiceContext provided that the incomming message that
-     * has have some serviceInstanceID. Currently this will not be added to the
-     * EngineContext's ServiceContextMap.
-     *
-     * @param msgContext
-     * @return  ServiceContext
-     */
-    public ServiceContext findServiceContext(MessageContext msgContext) {
-        // TODO : Fix me. Can't look up a service context in the system context
-
-        ServiceContext serviceContext = null;
-        if (null == msgContext.getServiceGroupContextId()) {
-            serviceContext =
-                    new ServiceContext(this, msgContext.getServiceGroupContext());
-            //TODO Once the ServiceContext is bound to an incomming serviceContext ID(like a cookie,reference Property) FIX this
-            //			msgContext.getSystemContext().registerServiceContext(serviceContext.getServiceContextID(),
-            // serviceContext);
-        } else {
-            serviceContext =
-                    msgContext.getSystemContext()
-                            .getServiceContext(msgContext.getServiceContextID());
-        }
-
-        return serviceContext;
-
-    }
-
-    /**
-     * To get the description about the service
-     *
-     * @return String
-     */
-    public String getServiceDescription() {
-        return serviceDescription;
-    }
-
-    /**
-     * Set the description about the service
-     *
-     * @param serviceDescription
-     */
-    public void setServiceDescription(String serviceDescription) {
-        this.serviceDescription = serviceDescription;
-    }
-
-    public Definition getWSDLDefinition() {
-        return definition;
-    }
-
-    public void setWSDLDefinition(Definition difDefinition) {
-        this.definition = difDefinition;
-    }
-
-    public void printWSDL(Writer out, String PortURL) throws AxisFault {
-        try {
-            Definition wsdlDefinition = this.getWSDLDefinition();
-            if (wsdlDefinition != null) {
-//                Iterator sreviceitr = wsdlDefinition.getServices().keySet()
-//                        .iterator();
-//                while (sreviceitr.hasNext()) {
-//                    wsdlDefinition.removeService((QName) sreviceitr.next());
-//                }
-
-                //  wsdlDefinition.removeService(this.getName());
-                Collection services =  wsdlDefinition.getServices().values();
-
-                for (Iterator iterator = services.iterator(); iterator.hasNext();) {
-                    Service service = (Service) iterator.next();
-                    Collection ports =  service.getPorts().values();
-                    for (Iterator iterator1 = ports.iterator(); iterator1.hasNext();) {
-                        Port port = (Port) iterator1.next();
-                        service.setQName(this.getName());
-                        SOAPAddress soapAddress = new SOAPAddressImpl();
-                        soapAddress.setElementType(SOAPConstants.Q_ELEM_SOAP_ADDRESS);
-                        soapAddress.setLocationURI(PortURL);
-                        port.getExtensibilityElements().clear();
-                        port.addExtensibilityElement(soapAddress);
-                    }
-                }
-
-                WSDLFactory.newInstance().newWSDLWriter().writeWSDL(
-                        wsdlDefinition, out);
-                out.flush();
-            } else {
-                WSDLFactory.newInstance().newWSDLWriter().writeWSDL(
-                        wsdlDefinition, out);
-                out.write("<wsdl>WSDL is NOT found</wsdl>");
-                out.flush();
-            }
-
-
-        } catch (WSDLException e) {
-            throw new AxisFault(e);
-        } catch (IOException e) {
-            throw new AxisFault(e);
-        }
-    }
-
-    /**
-     * This method will set the current time as last update time of the service
-     */
-    public void setLastupdate(){
-        lastupdate = new Date().getTime();
-    }
-
-    public long getLastupdate(){
-        return lastupdate;
-    }
-
-    public String getFileName() {
-        return fileName;
-    }
-
-    public void setFileName(String fileName) {
-        this.fileName = fileName;
-    }
-
-    public HashMap getEndpoints() {
-        return serviceimpl.getEndpoints();
-    }
-
-    public void setEndpoints(HashMap endpoints) {
-        serviceimpl.setEndpoints(endpoints);
-    }
-
-    public void setEndpoint(WSDLEndpoint endpoint){
-        serviceimpl.setEndpoint(endpoint);
-    }
-
-    public WSDLEndpoint getEndpoint(QName qName) {
-        return serviceimpl.getEndpoint(qName);
-    }
-
-    public QName getName() {
-        return serviceimpl.getName();
-    }
-
-    public void setName(QName name) {
-        serviceimpl.setName(name);
-    }
-
-    public String getNamespace() {
-        return serviceimpl.getNamespace();
-    }
-
-    public WSDLInterface getServiceInterface() {
-        return serviceimpl.getServiceInterface();
-    }
-
-    public void setServiceInterface(WSDLInterface serviceInterface) {
-        serviceimpl.setServiceInterface(serviceInterface);
-    }
-
-    public HashMap getComponentProperties() {
-        return serviceimpl.getComponentProperties();
-    }
-
-    public void setComponentProperties(HashMap properties) {
-        serviceimpl.setComponentProperties(properties);
-    }
-
-    public void setComponentProperty(Object key, Object obj) {
-        serviceimpl.setComponentProperty(key,obj);
-    }
-
-    public Object getComponentProperty(Object key) {
-        return serviceimpl.getComponentProperty(key);
-    }
-
-    public void addExtensibilityElement(WSDLExtensibilityElement element) {
-        serviceimpl.addExtensibilityElement(element);
-    }
-
-    public List getExtensibilityElements() {
-        return serviceimpl.getExtensibilityElements();
-    }
-
-    public List getExtensibilityAttributes() {
-        return serviceimpl.getExtensibilityAttributes();
-    }
-
-    public void addExtensibleAttributes(WSDLExtensibilityAttribute attribute) {
-        serviceimpl.addExtensibleAttributes(attribute);
-    }
-
-    public Map getMetadataBag() {
-        return serviceimpl.getMetadataBag();
-    }
-
-    /**
-     * To add the was action paramater into has map so that was action based dispatch can support
-     */
-    public void addMapping(String mappingKey , OperationDescription operation){
-        wasaction_opeartionmap.put(mappingKey,operation);
-    }
-
-    /**
-     * To get the parent (which is AxisConfiguration in this case)
-     * @return <code>AxisConfiguration</code>
-     */
-    public ServiceGroupDescription getParent() {
-        return parent;
-    }
-
-    public void setParent(ServiceGroupDescription parent) {
-        this.parent = parent;
-    }
-
-    //to check whether a given paramter is locked
-    public boolean isParamterLocked(String paramterName) {
-        // checking the locked value of parent
-        boolean loscked = false;
-
-        if (getParent() !=null) {
-            loscked =  getParent().getAxisDescription().isParamterLocked(paramterName);
-        }
-        if(loscked){
-            return true;
-        } else {
-            Parameter parameter = getParameter(paramterName);
-            return parameter != null && parameter.isLocked();
-        }
-    }
-
-    /**
-     * Adding module configuration , if there is moduleConfig tag in service
-     * @param moduleConfiguration
-     */
-    public void addModuleConfig(ModuleConfiguration moduleConfiguration){
-        if(moduleConfigmap == null){
-            moduleConfigmap = new HashMap();
-        }
-        moduleConfigmap.put(moduleConfiguration.getModuleName(),moduleConfiguration);
-    }
-
-    public ModuleConfiguration getModuleConfig(QName moduleName){
-        return  (ModuleConfiguration)moduleConfigmap.get(moduleName);
-    }
-
-
-    public void addModuleref(QName moduleref){
-        mdoulesList.add(moduleref);
-    }
-
-    public ArrayList getModules(){
-        return mdoulesList;
-    }
-
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+package org.apache.axis2.description;
+
+import com.ibm.wsdl.extensions.soap.SOAPAddressImpl;
+import com.ibm.wsdl.extensions.soap.SOAPConstants;
+import org.apache.axis2.AxisFault;
+import org.apache.axis2.Constants;
+import org.apache.axis2.context.MessageContext;
+import org.apache.axis2.context.ServiceContext;
+import org.apache.axis2.engine.AxisConfiguration;
+import org.apache.axis2.phaseresolver.PhaseResolver;
+import org.apache.wsdl.*;
+import org.apache.wsdl.extensions.ExtensionConstants;
+import org.apache.wsdl.extensions.SOAPOperation;
+import org.apache.wsdl.impl.WSDLInterfaceImpl;
+import org.apache.wsdl.impl.WSDLServiceImpl;
+
+import javax.wsdl.Definition;
+import javax.wsdl.Port;
+import javax.wsdl.Service;
+import javax.wsdl.WSDLException;
+import javax.wsdl.extensions.soap.SOAPAddress;
+import javax.wsdl.factory.WSDLFactory;
+import javax.xml.namespace.QName;
+import java.io.IOException;
+import java.io.Writer;
+import java.util.*;
+
+/**
+ * Class ServiceDescription
+ */
+public class ServiceDescription
+        //    extends WSDLServiceImpl
+        implements WSDLService ,
+        ParameterInclude,
+        FlowInclude,
+        DescriptionConstants {
+
+    private Definition definition = null;
+
+    private HashMap moduleConfigmap;
+
+    private  ServiceGroupDescription parent;
+    //to store the wsdl definition , which is build at the deployment time
+
+    //to keep the time that last update time of the service
+    private long lastupdate ;
+    /**
+     * TODO this should be in the WSDLInterface, yet we want it to have in the
+     * the Services, so we put this here for M1 until we foud better way to do
+     * that
+     */
+//    protected final HashMap operationsMap = new HashMap();
+
+    private String  serviceDescription ;
+    private String fileName = "";
+
+    private WSDLServiceImpl serviceimpl = null;
+
+    private HashMap wasaction_opeartionmap = null;
+
+    //to store module ref at deploy time parsing
+    private ArrayList mdoulesList = new ArrayList();
+
+    /**
+     * Constructor ServiceDescription
+     */
+
+    public ServiceDescription(WSDLServiceImpl serviceimpl){
+        this.serviceimpl = serviceimpl;
+        this.wasaction_opeartionmap = new HashMap();
+        this.setComponentProperty(MODULEREF_KEY, new ArrayList());
+        this.setComponentProperty(PARAMETER_KEY, new ParameterIncludeImpl());
+        this.setServiceInterface(new WSDLInterfaceImpl());
+    }
+
+    public ServiceDescription() {
+        this.serviceimpl = new WSDLServiceImpl();
+        this.wasaction_opeartionmap = new HashMap();
+        this.setComponentProperty(MODULEREF_KEY, new ArrayList());
+        this.setComponentProperty(PARAMETER_KEY, new ParameterIncludeImpl());
+        this.setServiceInterface(new WSDLInterfaceImpl());
+    }
+
+    /**
+     * Constructor ServiceDescription
+     *
+     * @param qName
+     */
+    public ServiceDescription(QName qName) {
+        this();
+        this.setName(qName);
+    }
+
+    /*
+    * (non-Javadoc)
+    *
+    * @see org.apache.axis2.description.ServiceDescription#addModule(javax.xml.namespace.QName)
+    */
+
+    /**
+     * To ebgage a module it is reuired to use this method
+     *
+     * @param moduleref
+     * @throws AxisFault
+     */
+    public void engageModule(ModuleDescription moduleref,
+                             AxisConfiguration axisConfig)
+            throws AxisFault {
+        if (moduleref == null) {
+            return;
+        }
+        Collection collectionModule = (Collection) this.getComponentProperty(
+                MODULEREF_KEY);
+        for (Iterator iterator = collectionModule.iterator();
+             iterator.hasNext();) {
+            ModuleDescription modu = (ModuleDescription) iterator.next();
+            if (modu.getName().equals(moduleref.getName())) {
+                throw new AxisFault(moduleref.getName().getLocalPart() +
+                        " module has alredy been engaged on the service. " +
+                        " Operation terminated !!!");
+            }
+
+        }
+        new PhaseResolver(axisConfig).engageModuleToService(this, moduleref);
+        collectionModule.add(moduleref);
+    }
+
+    /**
+     * To add a opeartion to a service if a module requird to do so
+     *
+     * @param module
+     */
+
+    public void addModuleOperations(ModuleDescription module,
+                                    AxisConfiguration axisConfig) throws AxisFault {
+        HashMap map = module.getOperations();
+        Collection col = map.values();
+        PhaseResolver pr = new PhaseResolver(axisConfig, this);
+
+        for (Iterator iterator = col.iterator(); iterator.hasNext();) {
+            OperationDescription operation = (OperationDescription) iterator.next();
+            ArrayList paramters = operation.getParameters();
+            // Adding wsa-maping into service
+            for (int j = 0; j < paramters.size(); j++) {
+                Parameter parameter = (Parameter) paramters.get(j);
+                if(parameter.getName().equals(Constants.WSA_ACTION)){
+                    this.addMapping((String)parameter.getValue(),operation);
+                }
+            }
+            pr.buildModuleOperation(operation);
+            this.addOperation(operation);
+        }
+    }
+
+    public void addToEngagModuleList(ModuleDescription moduleName) {
+        Collection collectionModule = (Collection) this.getComponentProperty(
+                MODULEREF_KEY);
+        for (Iterator iterator = collectionModule.iterator();
+             iterator.hasNext();) {
+            ModuleDescription moduleDescription = (ModuleDescription) iterator.next();
+            if (moduleName.getName().equals(moduleDescription.getName())) {
+                return;
+            }
+        }
+        collectionModule.add(moduleName);
+    }
+
+    /*
+    * (non-Javadoc)
+    *
+    * @see org.apache.axis2.description.ServiceDescription#getEngadgedModules()
+    */
+
+    /**
+     * Method getEngadgedModules
+     *
+     * @return Collection
+     */
+    public Collection getEngagedModules() {
+        return (Collection) this.getComponentProperty(MODULEREF_KEY);
+    }
+
+    /**
+     * Method getOperation
+     *
+     * @param operationName
+     * @return   OperationDescription
+     */
+    public OperationDescription getOperation(QName operationName) {
+        String opStr = operationName.getLocalPart();
+
+        HashMap allOperations = this.getServiceInterface().getAllOperations();
+        OperationDescription opeartion = (OperationDescription) allOperations.get(opStr);
+        if(opeartion == null ){
+            opeartion = (OperationDescription)wasaction_opeartionmap.get(
+                    operationName.getLocalPart());
+        }
+        return opeartion;
+    }
+
+    /*
+    * (non-Javadoc)
+    *
+    * @see org.apache.axis2.description.ServiceDescription#addOperation(org.apache.axis2.description.OperationDescription)
+    */
+
+    /**
+     * Method addOperation
+     *
+     * @param operation
+     */
+    public void addOperation(OperationDescription operation) {
+        operation.setParent(this);
+        this.getServiceInterface().setOperation(operation);
+    }
+
+    /*
+    * (non-Javadoc)
+    *
+    * @see org.apache.axis2.description.ServiceDescription#setClassLoader(java.lang.ClassLoader)
+    */
+
+    /**
+     * Method setClassLoader
+     *
+     * @param classLoader
+     */
+    public void setClassLoader(ClassLoader classLoader) {
+        if (classLoader != null) {
+            this.setComponentProperty(CLASSLOADER_KEY, classLoader);
+        }
+    }
+
+    /*
+    * (non-Javadoc)
+    *
+    * @see org.apache.axis2.description.ServiceDescription#getClassLoader()
+    */
+
+    /**
+     * Method getClassLoader
+     *
+     * @return  ClassLoader
+     */
+    public ClassLoader getClassLoader() {
+        return (ClassLoader) this.getComponentProperty(CLASSLOADER_KEY);
+    }
+
+    /*
+    * (non-Javadoc)
+    *
+    * @see org.apache.axis2.description.ServiceDescription#setContextPath(java.lang.String)
+    */
+
+    /**
+     * Method setContextPath
+     *
+     * @param contextPath
+     */
+    public void setContextPath(String contextPath) {
+        if (contextPath != null) {
+            this.setComponentProperty(CONTEXTPATH_KEY, contextPath);
+        }
+    }
+
+    /*
+    * (non-Javadoc)
+    *
+    * @see org.apache.axis2.description.ServiceDescription#getContextPath()
+    */
+
+    /**
+     * Method getContextPath
+     *
+     * @return  String
+     */
+    public String getContextPath() {
+        return (String) this.getComponentProperty(CONTEXTPATH_KEY);
+    }
+
+    /*
+    * (non-Javadoc)
+    *
+    * @see org.apache.axis2.description.ServiceDescription#setStyle(javax.swing.text.Style)
+    */
+
+    /**
+     * Method setStyle
+     *
+     * @param style
+     */
+    public void setStyle(String style) {
+        if (style != null) {
+            this.setComponentProperty(STYLE_KEY, style);
+        }
+    }
+
+    /*
+    * (non-Javadoc)
+    *
+    * @see org.apache.axis2.description.ServiceDescription#getStyle()
+    */
+
+    /**
+     * Method getStyle
+     *
+     * @return String
+     */
+    public String getStyle() {
+        return (String) this.getComponentProperty(STYLE_KEY);
+    }
+
+    /*
+    * (non-Javadoc)
+    *
+    * @see org.apache.axis2.description.PhasesInclude#getPhases(java.util.ArrayList,
+    *      int)
+    */
+
+    /*
+    * (non-Javadoc)
+    *
+    * @see org.apache.axis2.description.ParameterInclude#addParameter(org.apache.axis2.description.Parameter)
+    */
+
+    /**
+     * Method addParameter
+     *
+     * @param param
+     */
+    public void addParameter(Parameter param) throws AxisFault {
+        if (param == null) {
+            return;
+        }
+
+        if(isParamterLocked(param.getName())){
+            throw new AxisFault("Parmter is locked can not overide: " + param.getName());
+        } else{
+            ParameterIncludeImpl paramInclude =
+                    (ParameterIncludeImpl) this.getComponentProperty(PARAMETER_KEY);
+            paramInclude.addParameter(param);
+        }
+    }
+
+    /*
+    * (non-Javadoc)
+    *
+    * @see org.apache.axis2.description.ParameterInclude#getParameter(java.lang.String)
+    */
+
+    /**
+     * Method getParameter
+     *
+     * @param name
+     * @return Parameter
+     */
+    public Parameter getParameter(String name) {
+        ParameterIncludeImpl paramInclude =
+                (ParameterIncludeImpl) this.getComponentProperty(PARAMETER_KEY);
+        return paramInclude.getParameter(name);
+    }
+
+    public ArrayList getParameters() {
+        ParameterIncludeImpl paramInclude =
+                (ParameterIncludeImpl) this.getComponentProperty(PARAMETER_KEY);
+        return  paramInclude.getParameters();
+    }
+
+    /*
+    * (non-Javadoc)
+    *
+    * @see org.apache.axis2.description.FlowInclude#getInFlow()
+    */
+
+    /**
+     * Method getInFlow
+     *
+     * @return Flow
+     */
+    public Flow getInFlow() {
+        return (Flow) this.getComponentProperty(INFLOW_KEY);
+    }
+
+    /*
+    * (non-Javadoc)
+    *
+    * @see org.apache.axis2.description.FlowInclude#setInFlow(org.apache.axis2.description.Flow)
+    */
+
+    /**
+     * Method setInFlow
+     *
+     * @param inFlow
+     */
+    public void setInFlow(Flow inFlow) {
+        if (inFlow != null) {
+            this.setComponentProperty(INFLOW_KEY, inFlow);
+        }
+    }
+
+    /*
+    * (non-Javadoc)
+    *
+    * @see org.apache.axis2.description.FlowInclude#getOutFlow()
+    */
+
+    /**
+     * Method getOutFlow
+     *
+     * @return Flow
+     */
+    public Flow getOutFlow() {
+        return (Flow) this.getComponentProperty(OUTFLOW_KEY);
+    }
+
+    /*
+    * (non-Javadoc)
+    *
+    * @see org.apache.axis2.description.FlowInclude#setOutFlow(org.apache.axis2.description.Flow)
+    */
+
+    /**
+     * Method setOutFlow
+     *
+     * @param outFlow
+     */
+    public void setOutFlow(Flow outFlow) {
+        if (outFlow != null) {
+            this.setComponentProperty(OUTFLOW_KEY, outFlow);
+        }
+    }
+
+    /*
+    * (non-Javadoc)
+    *
+    * @see org.apache.axis2.description.FlowInclude#getFaultInFlow()
+    */
+
+    /**
+     * Method getFaultInFlow
+     *
+     * @return Flow
+     */
+    public Flow getFaultInFlow() {
+        return (Flow) this.getComponentProperty(IN_FAULTFLOW_KEY);
+    }
+
+    /*
+    * (non-Javadoc)
+    *
+    * @see org.apache.axis2.description.FlowInclude#setFaultInFlow(org.apache.axis2.description.Flow)
+    */
+
+    /**
+     * Method setFaultInFlow
+     *
+     * @param faultFlow
+     */
+    public void setFaultInFlow(Flow faultFlow) {
+        if (faultFlow != null) {
+            this.setComponentProperty(IN_FAULTFLOW_KEY, faultFlow);
+        }
+    }
+
+    public Flow getFaultOutFlow() {
+        return (Flow) this.getComponentProperty(OUT_FAULTFLOW_KEY);
+    }
+
+    public void setFaultOutFlow(Flow faultFlow) {
+        if (faultFlow != null) {
+            this.setComponentProperty(OUT_FAULTFLOW_KEY, faultFlow);
+        }
+    }
+
+    /**
+     * Method getOperations
+     *
+     * @return  HashMap
+     */
+    public HashMap getOperations() {
+        return this.getServiceInterface().getOperations();
+    }
+
+    public OperationDescription getOperation(String ncName) {
+        return (OperationDescription) this.getServiceInterface().getOperations()
+                .get(ncName);
+    }
+
+    /**
+     * This method will return the operation given particular SOAP Action.
+     * This method should only be called if there is only one Endpoint is defined
+     * for this Service. If more than one Endpoint exists one of them will be picked.
+     * If more than one Operation is found with the given
+     * SOAP Action; null will be ruturned. If no particular Operation is found with
+     * the given SOAP Action; null will be returned.
+     *
+     * @param soapAction SOAP Action defined for the particular Operation
+     * @return A OperationDescription if a unque Operation can be found with the given SOAP Action
+     *         otherwise will return null.
+     */
+    public OperationDescription getOperationBySOAPAction(String soapAction) {
+        if(soapAction == null || soapAction.equals("")){
+            return null;
+        }
+        Iterator iterator = this.getEndpoints().keySet().iterator();
+        if (iterator.hasNext()) {
+            WSDLEndpoint endpoint = (WSDLEndpoint) this.getEndpoints().get(
+                    iterator.next());
+            return this.getOperationBySOAPAction(soapAction,
+                    endpoint.getName());
+        }
+
+        return null;
+
+
+    }
+
+
+    /**
+     * This method will return the operation given the particular endpoing and the
+     * particular SOAP Action. If more than one Operation is found with the given
+     * SOAP Action; null will be ruturned. If no particular Operation is found with
+     * the given SOAP Action; null will be returned
+     *
+     * @param endpoint   Particular Enpoint in which the bining is defined with the particular SOAP
+     *                   Action.
+     * @param soapAction SOAP Action defined for the particular Operation
+     * @return A OperationDescription if a unque Operation can be found with the given SOAP Action
+     *         otherwise will return null.
+     */
+    public OperationDescription getOperationBySOAPAction(String soapAction,
+                                                         QName endpoint) {
+        HashMap bindingOperations = this.getEndpoint(endpoint).getBinding()
+                .getBindingOperations();
+        Iterator operationKeySetIterator = bindingOperations.keySet().iterator();
+        OperationDescription operation = null;
+        int count = 0;
+        while (operationKeySetIterator.hasNext()) {
+            WSDLBindingOperation bindingOperation = (WSDLBindingOperation) bindingOperations.get(
+                    operationKeySetIterator.next());
+            Iterator extIterator = bindingOperation.getExtensibilityElements()
+                    .iterator();
+            while (extIterator.hasNext()) {
+                WSDLExtensibilityElement element = (WSDLExtensibilityElement) extIterator.next();
+                if (ExtensionConstants.SOAP_11_OPERATION.equals(element.getType())||
+                        ExtensionConstants.SOAP_12_OPERATION.equals(element.getType())) {
+                    if (((SOAPOperation) element).getSoapAction().equals(
+                            soapAction)) {
+                        WSDLOperation op = bindingOperation.getOperation();
+                        if (op instanceof OperationDescription) {
+                            operation = (OperationDescription) op;
+                            count++;
+                        }
+                    }
+                }
+            }
+        }
+        if (1 == count) {
+            return operation;
+        }
+        return null;
+    }
+
+
+    /**
+     * This finds the ServiceContext provided that the incomming message that
+     * has have some serviceInstanceID. Currently this will not be added to the
+     * EngineContext's ServiceContextMap.
+     *
+     * @param msgContext
+     * @return  ServiceContext
+     */
+    public ServiceContext findServiceContext(MessageContext msgContext) {
+        // TODO : Fix me. Can't look up a service context in the system context
+
+        ServiceContext serviceContext = null;
+        if (null == msgContext.getServiceGroupContextId()) {
+            serviceContext =
+                    new ServiceContext(this, msgContext.getServiceGroupContext());
+            //TODO Once the ServiceContext is bound to an incomming serviceContext ID(like a cookie,reference Property) FIX this
+            //			msgContext.getSystemContext().registerServiceContext(serviceContext.getServiceContextID(),
+            // serviceContext);
+        } else {
+            serviceContext =
+                    msgContext.getSystemContext()
+                            .getServiceContext(msgContext.getServiceContextID());
+        }
+
+        return serviceContext;
+
+    }
+
+    /**
+     * To get the description about the service
+     *
+     * @return String
+     */
+    public String getServiceDescription() {
+        return serviceDescription;
+    }
+
+    /**
+     * Set the description about the service
+     *
+     * @param serviceDescription
+     */
+    public void setServiceDescription(String serviceDescription) {
+        this.serviceDescription = serviceDescription;
+    }
+
+    public Definition getWSDLDefinition() {
+        return definition;
+    }
+
+    public void setWSDLDefinition(Definition difDefinition) {
+        this.definition = difDefinition;
+    }
+
+    public void printWSDL(Writer out, String PortURL) throws AxisFault {
+        try {
+            Definition wsdlDefinition = this.getWSDLDefinition();
+            if (wsdlDefinition != null) {
+//                Iterator sreviceitr = wsdlDefinition.getServices().keySet()
+//                        .iterator();
+//                while (sreviceitr.hasNext()) {
+//                    wsdlDefinition.removeService((QName) sreviceitr.next());
+//                }
+
+                //  wsdlDefinition.removeService(this.getName());
+                Collection services =  wsdlDefinition.getServices().values();
+
+                for (Iterator iterator = services.iterator(); iterator.hasNext();) {
+                    Service service = (Service) iterator.next();
+                    Collection ports =  service.getPorts().values();
+                    for (Iterator iterator1 = ports.iterator(); iterator1.hasNext();) {
+                        Port port = (Port) iterator1.next();
+                        service.setQName(this.getName());
+                        SOAPAddress soapAddress = new SOAPAddressImpl();
+                        soapAddress.setElementType(SOAPConstants.Q_ELEM_SOAP_ADDRESS);
+                        soapAddress.setLocationURI(PortURL);
+                        port.getExtensibilityElements().clear();
+                        port.addExtensibilityElement(soapAddress);
+                    }
+                }
+
+                WSDLFactory.newInstance().newWSDLWriter().writeWSDL(
+                        wsdlDefinition, out);
+                out.flush();
+            } else {
+                WSDLFactory.newInstance().newWSDLWriter().writeWSDL(
+                        wsdlDefinition, out);
+                out.write("<wsdl>WSDL is NOT found</wsdl>");
+                out.flush();
+            }
+
+
+        } catch (WSDLException e) {
+            throw new AxisFault(e);
+        } catch (IOException e) {
+            throw new AxisFault(e);
+        }
+    }
+
+    /**
+     * This method will set the current time as last update time of the service
+     */
+    public void setLastupdate(){
+        lastupdate = new Date().getTime();
+    }
+
+    public long getLastupdate(){
+        return lastupdate;
+    }
+
+    public String getFileName() {
+        return fileName;
+    }
+
+    public void setFileName(String fileName) {
+        this.fileName = fileName;
+    }
+
+    public HashMap getEndpoints() {
+        return serviceimpl.getEndpoints();
+    }
+
+    public void setEndpoints(HashMap endpoints) {
+        serviceimpl.setEndpoints(endpoints);
+    }
+
+    public void setEndpoint(WSDLEndpoint endpoint){
+        serviceimpl.setEndpoint(endpoint);
+    }
+
+    public WSDLEndpoint getEndpoint(QName qName) {
+        return serviceimpl.getEndpoint(qName);
+    }
+
+    public QName getName() {
+        return serviceimpl.getName();
+    }
+
+    public void setName(QName name) {
+        serviceimpl.setName(name);
+    }
+
+    public String getNamespace() {
+        return serviceimpl.getNamespace();
+    }
+
+    public WSDLInterface getServiceInterface() {
+        return serviceimpl.getServiceInterface();
+    }
+
+    public void setServiceInterface(WSDLInterface serviceInterface) {
+        serviceimpl.setServiceInterface(serviceInterface);
+    }
+
+    public HashMap getComponentProperties() {
+        return serviceimpl.getComponentProperties();
+    }
+
+    public void setComponentProperties(HashMap properties) {
+        serviceimpl.setComponentProperties(properties);
+    }
+
+    public void setComponentProperty(Object key, Object obj) {
+        serviceimpl.setComponentProperty(key,obj);
+    }
+
+    public Object getComponentProperty(Object key) {
+        return serviceimpl.getComponentProperty(key);
+    }
+
+    public void addExtensibilityElement(WSDLExtensibilityElement element) {
+        serviceimpl.addExtensibilityElement(element);
+    }
+
+    public List getExtensibilityElements() {
+        return serviceimpl.getExtensibilityElements();
+    }
+
+    public List getExtensibilityAttributes() {
+        return serviceimpl.getExtensibilityAttributes();
+    }
+
+    public void addExtensibleAttributes(WSDLExtensibilityAttribute attribute) {
+        serviceimpl.addExtensibleAttributes(attribute);
+    }
+
+    public Map getMetadataBag() {
+        return serviceimpl.getMetadataBag();
+    }
+
+    /**
+     * To add the was action paramater into has map so that was action based dispatch can support
+     */
+    public void addMapping(String mappingKey , OperationDescription operation){
+        wasaction_opeartionmap.put(mappingKey,operation);
+    }
+
+    /**
+     * To get the parent (which is AxisConfiguration in this case)
+     * @return <code>AxisConfiguration</code>
+     */
+    public ServiceGroupDescription getParent() {
+        return parent;
+    }
+
+    public void setParent(ServiceGroupDescription parent) {
+        this.parent = parent;
+    }
+
+    //to check whether a given paramter is locked
+    public boolean isParamterLocked(String paramterName) {
+        // checking the locked value of parent
+        boolean loscked = false;
+
+        if (getParent() !=null) {
+            loscked =  getParent().getAxisDescription().isParamterLocked(paramterName);
+        }
+        if(loscked){
+            return true;
+        } else {
+            Parameter parameter = getParameter(paramterName);
+            return parameter != null && parameter.isLocked();
+        }
+    }
+
+    /**
+     * Adding module configuration , if there is moduleConfig tag in service
+     * @param moduleConfiguration
+     */
+    public void addModuleConfig(ModuleConfiguration moduleConfiguration){
+        if(moduleConfigmap == null){
+            moduleConfigmap = new HashMap();
+        }
+        moduleConfigmap.put(moduleConfiguration.getModuleName(),moduleConfiguration);
+    }
+
+    public ModuleConfiguration getModuleConfig(QName moduleName){
+        return  (ModuleConfiguration)moduleConfigmap.get(moduleName);
+    }
+
+
+    public void addModuleref(QName moduleref){
+        mdoulesList.add(moduleref);
+    }
+
+    public ArrayList getModules(){
+        return mdoulesList;
+    }
+
 }

Propchange: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/ServiceDescription.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/ServiceGroupDescription.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/ServiceGroupDescription.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/ServiceGroupDescription.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/ServiceGroupDescription.java Thu Sep 15 11:52:11 2005
@@ -1,213 +1,213 @@
-package org.apache.axis2.description;
-
-import org.apache.axis2.AxisFault;
-import org.apache.axis2.context.ServiceGroupContext;
-import org.apache.axis2.context.ConfigurationContext;
-import org.apache.axis2.engine.AxisConfiguration;
-import org.apache.axis2.engine.AxisEvent;
-import org.apache.axis2.phaseresolver.PhaseResolver;
-
-import javax.xml.namespace.QName;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Iterator;
-
-/*
-* Copyright 2004,2005 The Apache Software Foundation.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-*      http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*
-*/
-
-public class ServiceGroupDescription implements ParameterInclude{
-
-    //to add and get paramters
-    protected ParameterInclude paramInclude;
-
-    // to keep name of the service group
-    private String serviceGroupName;
-
-    // to keep the parent of service group , to chcek paramter lock checking and serching
-    private  AxisConfiguration parent;
-
-    /**
-     * Field services
-     */
-    private HashMap services;
-
-    //to store modeule configuration info
-    private HashMap moduleConfigmap;
-
-    // to store service Group modules name
-    private ArrayList modules;
-
-    //to store module ref at deploy time parsing
-    private ArrayList mdoulesList = new ArrayList();
-
-
-    public ServiceGroupDescription() {
-        paramInclude = new ParameterIncludeImpl();
-        services = new HashMap();
-        moduleConfigmap = new HashMap();
-        modules = new ArrayList();
-    }
-
-    public ServiceGroupDescription(AxisConfiguration axisDescription) {
-        this();
-        this.parent = axisDescription;
-    }
-
-    public void addParameter(Parameter param) throws AxisFault {
-        paramInclude.addParameter(param);
-    }
-
-    public Parameter getParameter(String name) {
-        return paramInclude.getParameter(name);
-    }
-
-    public ArrayList getParameters() {
-        return paramInclude.getParameters();
-    }
-
-    public boolean isParamterLocked(String paramterName) {
-        // checking the locked value of parent
-        boolean loscked = false;
-
-        if (getParent() !=null) {
-            loscked =  getParent().isParamterLocked(paramterName);
-        }
-        if(loscked){
-            return true;
-        } else {
-            Parameter parameter = getParameter(paramterName);
-            if(parameter != null && parameter.isLocked()){
-                return true;
-            } else {
-                return false;
-            }
-        }
-    }
-
-    public String getServiceGroupName() {
-        return serviceGroupName;
-    }
-
-    public void setServiceGroupName(String serviceGroupName) {
-        this.serviceGroupName = serviceGroupName;
-    }
-
-    public AxisConfiguration getParent() {
-        return parent;
-    }
-
-    public void setParent(AxisConfiguration parent) {
-        this.parent = parent;
-    }
-
-    /**
-     * Adding module configuration , if there is moduleConfig tag in service
-     * @param moduleConfiguration
-     */
-    public void addModuleConfig(ModuleConfiguration moduleConfiguration){
-        if(moduleConfigmap == null){
-            moduleConfigmap = new HashMap();
-        }
-        moduleConfigmap.put(moduleConfiguration.getModuleName(),moduleConfiguration);
-    }
-
-    public ModuleConfiguration getModuleConfig(QName moduleName){
-        return  (ModuleConfiguration)moduleConfigmap.get(moduleName);
-    }
-
-    public void addModule(QName moduleName){
-        modules.add(moduleName);
-    }
-
-    public void engageModuleToGroup(QName moduleName) throws AxisFault {
-        if (moduleName == null) {
-            return;
-        }
-        for (Iterator iterator = modules.iterator();
-             iterator.hasNext();) {
-            ModuleDescription modu = (ModuleDescription) iterator.next();
-            if (modu.getName().equals(moduleName)) {
-                throw new AxisFault(moduleName.getLocalPart() +
-                        " module has alredy been engaged on the service Group. " +
-                        " Operation terminated !!!");
-            }
-        }
-        Iterator srevice = getServices();
-        PhaseResolver phaseResolver = new PhaseResolver(this.getParent());
-        ModuleDescription module = this.parent.getModule(moduleName);
-        if (module !=null) {
-            while (srevice.hasNext()) {
-                // engagin per each service
-                ServiceDescription serviceDescription = (ServiceDescription) srevice.next();
-                phaseResolver.engageModuleToService(serviceDescription, module);
-            }
-        }
-        addModule(moduleName);
-    }
-
-    public ArrayList getServiceGroupModules(){
-        return modules;
-    }
-
-
-    public Iterator getServices(){
-        return services.values().iterator();
-    }
-
-    public synchronized void addService(ServiceDescription service) throws AxisFault {
-        services.put(service.getName(), service);
-        PhaseResolver handlerResolver = new PhaseResolver(this.parent, service);
-        handlerResolver.buildchains();
-        service.setLastupdate();
-        service.setParent(this);
-    }
-
-    public AxisConfiguration getAxisDescription() {
-        return parent;
-    }
-
-    public void setAxisDescription(AxisConfiguration axisDescription) {
-        this.parent = axisDescription;
-    }
-
-    public ServiceDescription getService(QName name) throws AxisFault {
-        return (ServiceDescription) services.get(name);
-    }
-
-    public void addModuleref(QName moduleref){
-        mdoulesList.add(moduleref);
-    }
-
-    public ArrayList getModules(){
-        return mdoulesList;
-    }
-
-
-    public synchronized void removeService(QName name) throws AxisFault {
-        ServiceDescription service = getService(name);
-        if (service != null) {
-            this.parent.notifyObservers(AxisEvent.SERVICE_DEPLOY , service);
-        }
-        services.remove(name);
-    }
-
-    public ServiceGroupContext getServiceGroupContext(ConfigurationContext parent){
-        ServiceGroupContext serviceGroupContext = new ServiceGroupContext(parent,this) ;
-        return serviceGroupContext;
-    }
-}
+package org.apache.axis2.description;
+
+import org.apache.axis2.AxisFault;
+import org.apache.axis2.context.ServiceGroupContext;
+import org.apache.axis2.context.ConfigurationContext;
+import org.apache.axis2.engine.AxisConfiguration;
+import org.apache.axis2.engine.AxisEvent;
+import org.apache.axis2.phaseresolver.PhaseResolver;
+
+import javax.xml.namespace.QName;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.Iterator;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*
+*/
+
+public class ServiceGroupDescription implements ParameterInclude{
+
+    //to add and get paramters
+    protected ParameterInclude paramInclude;
+
+    // to keep name of the service group
+    private String serviceGroupName;
+
+    // to keep the parent of service group , to chcek paramter lock checking and serching
+    private  AxisConfiguration parent;
+
+    /**
+     * Field services
+     */
+    private HashMap services;
+
+    //to store modeule configuration info
+    private HashMap moduleConfigmap;
+
+    // to store service Group modules name
+    private ArrayList modules;
+
+    //to store module ref at deploy time parsing
+    private ArrayList mdoulesList = new ArrayList();
+
+
+    public ServiceGroupDescription() {
+        paramInclude = new ParameterIncludeImpl();
+        services = new HashMap();
+        moduleConfigmap = new HashMap();
+        modules = new ArrayList();
+    }
+
+    public ServiceGroupDescription(AxisConfiguration axisDescription) {
+        this();
+        this.parent = axisDescription;
+    }
+
+    public void addParameter(Parameter param) throws AxisFault {
+        paramInclude.addParameter(param);
+    }
+
+    public Parameter getParameter(String name) {
+        return paramInclude.getParameter(name);
+    }
+
+    public ArrayList getParameters() {
+        return paramInclude.getParameters();
+    }
+
+    public boolean isParamterLocked(String paramterName) {
+        // checking the locked value of parent
+        boolean loscked = false;
+
+        if (getParent() !=null) {
+            loscked =  getParent().isParamterLocked(paramterName);
+        }
+        if(loscked){
+            return true;
+        } else {
+            Parameter parameter = getParameter(paramterName);
+            if(parameter != null && parameter.isLocked()){
+                return true;
+            } else {
+                return false;
+            }
+        }
+    }
+
+    public String getServiceGroupName() {
+        return serviceGroupName;
+    }
+
+    public void setServiceGroupName(String serviceGroupName) {
+        this.serviceGroupName = serviceGroupName;
+    }
+
+    public AxisConfiguration getParent() {
+        return parent;
+    }
+
+    public void setParent(AxisConfiguration parent) {
+        this.parent = parent;
+    }
+
+    /**
+     * Adding module configuration , if there is moduleConfig tag in service
+     * @param moduleConfiguration
+     */
+    public void addModuleConfig(ModuleConfiguration moduleConfiguration){
+        if(moduleConfigmap == null){
+            moduleConfigmap = new HashMap();
+        }
+        moduleConfigmap.put(moduleConfiguration.getModuleName(),moduleConfiguration);
+    }
+
+    public ModuleConfiguration getModuleConfig(QName moduleName){
+        return  (ModuleConfiguration)moduleConfigmap.get(moduleName);
+    }
+
+    public void addModule(QName moduleName){
+        modules.add(moduleName);
+    }
+
+    public void engageModuleToGroup(QName moduleName) throws AxisFault {
+        if (moduleName == null) {
+            return;
+        }
+        for (Iterator iterator = modules.iterator();
+             iterator.hasNext();) {
+            ModuleDescription modu = (ModuleDescription) iterator.next();
+            if (modu.getName().equals(moduleName)) {
+                throw new AxisFault(moduleName.getLocalPart() +
+                        " module has alredy been engaged on the service Group. " +
+                        " Operation terminated !!!");
+            }
+        }
+        Iterator srevice = getServices();
+        PhaseResolver phaseResolver = new PhaseResolver(this.getParent());
+        ModuleDescription module = this.parent.getModule(moduleName);
+        if (module !=null) {
+            while (srevice.hasNext()) {
+                // engagin per each service
+                ServiceDescription serviceDescription = (ServiceDescription) srevice.next();
+                phaseResolver.engageModuleToService(serviceDescription, module);
+            }
+        }
+        addModule(moduleName);
+    }
+
+    public ArrayList getServiceGroupModules(){
+        return modules;
+    }
+
+
+    public Iterator getServices(){
+        return services.values().iterator();
+    }
+
+    public synchronized void addService(ServiceDescription service) throws AxisFault {
+        services.put(service.getName(), service);
+        PhaseResolver handlerResolver = new PhaseResolver(this.parent, service);
+        handlerResolver.buildchains();
+        service.setLastupdate();
+        service.setParent(this);
+    }
+
+    public AxisConfiguration getAxisDescription() {
+        return parent;
+    }
+
+    public void setAxisDescription(AxisConfiguration axisDescription) {
+        this.parent = axisDescription;
+    }
+
+    public ServiceDescription getService(QName name) throws AxisFault {
+        return (ServiceDescription) services.get(name);
+    }
+
+    public void addModuleref(QName moduleref){
+        mdoulesList.add(moduleref);
+    }
+
+    public ArrayList getModules(){
+        return mdoulesList;
+    }
+
+
+    public synchronized void removeService(QName name) throws AxisFault {
+        ServiceDescription service = getService(name);
+        if (service != null) {
+            this.parent.notifyObservers(AxisEvent.SERVICE_DEPLOY , service);
+        }
+        services.remove(name);
+    }
+
+    public ServiceGroupContext getServiceGroupContext(ConfigurationContext parent){
+        ServiceGroupContext serviceGroupContext = new ServiceGroupContext(parent,this) ;
+        return serviceGroupContext;
+    }
+}

Propchange: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/ServiceGroupDescription.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/TransportInDescription.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/TransportInDescription.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/TransportInDescription.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/TransportInDescription.java Thu Sep 15 11:52:11 2005
@@ -1,164 +1,164 @@
-/*
-* Copyright 2004,2005 The Apache Software Foundation.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-*      http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.axis2.description;
-
-import org.apache.axis2.engine.Phase;
-import org.apache.axis2.phaseresolver.PhaseMetadata;
-import org.apache.axis2.transport.TransportListener;
-import org.apache.axis2.AxisFault;
-
-import javax.xml.namespace.QName;
-import java.util.ArrayList;
-
-/**
- * Represents a incoming transport deployed in AXis2
- */
-public class TransportInDescription
-        implements ParameterInclude {
-    /**
-     * Field paramInclude
-     */
-    protected final ParameterInclude paramInclude;
-
-    /**
-     * Field phasesInclude
-     */
-
-    /**
-     * Field flowInclude
-     */
-    private Flow inFlow;
-    /**
-     * Field flowInclude
-     */
-    private Flow faultFlow;
-
-
-    /**
-     * Field name
-     */
-    protected QName name;
-
-
-    protected TransportListener receiver;
-
-    //to store handler in inFlow
-    private Phase inPhase;
-    //to store handler Fault in inFlow
-    private Phase faultPhase;
-
-
-    /**
-     * Constructor AxisTransport
-     *
-     * @param name
-     */
-    public TransportInDescription(QName name) {
-        paramInclude = new ParameterIncludeImpl();
-        this.name = name;
-        inPhase = new Phase(PhaseMetadata.TRANSPORT_PHASE);
-        faultPhase = new Phase(PhaseMetadata.TRANSPORT_PHASE);
-    }
-
-    /**
-     * Method getParameter
-     *
-     * @param name
-     * @return
-     */
-    public Parameter getParameter(String name) {
-        return paramInclude.getParameter(name);
-    }
-
-    public ArrayList getParameters() {
-        return paramInclude.getParameters();
-    }
-
-    //to check whether the paramter is locked at any levle
-    public boolean isParamterLocked(String paramterName) {
-        return paramInclude.isParamterLocked(paramterName);
-    }
-
-    /**
-     * Method addParameter
-     *
-     * @param param
-     */
-    public void addParameter(Parameter param) throws AxisFault{
-        paramInclude.addParameter(param);
-    }
-
-    /**
-     * @return
-     */
-    public QName getName() {
-        return name;
-    }
-
-    /**
-     * @param name
-     */
-    public void setName(QName name) {
-        this.name = name;
-    }
-
-    public Flow getInFlow() {
-        return inFlow;
-    }
-
-    public void setInFlow(Flow inFlow) {
-        this.inFlow = inFlow;
-    }
-
-    public Flow getFaultFlow() {
-        return faultFlow;
-    }
-
-    public void setFaultFlow(Flow faultFlow) {
-        this.faultFlow = faultFlow;
-    }
-
-    /**
-     * @return
-     */
-    public TransportListener getReceiver() {
-        return receiver;
-    }
-
-    /**
-     * @param receiver
-     */
-    public void setReceiver(TransportListener receiver) {
-        this.receiver = receiver;
-    }
-
-    public Phase getInPhase() {
-        return inPhase;
-    }
-
-    public void setInPhase(Phase inPhase) {
-        this.inPhase = inPhase;
-    }
-
-    public Phase getFaultPhase() {
-        return faultPhase;
-    }
-
-    public void setFaultPhase(Phase faultPhase) {
-        this.faultPhase = faultPhase;
-    }
-
-}
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+package org.apache.axis2.description;
+
+import org.apache.axis2.engine.Phase;
+import org.apache.axis2.phaseresolver.PhaseMetadata;
+import org.apache.axis2.transport.TransportListener;
+import org.apache.axis2.AxisFault;
+
+import javax.xml.namespace.QName;
+import java.util.ArrayList;
+
+/**
+ * Represents a incoming transport deployed in AXis2
+ */
+public class TransportInDescription
+        implements ParameterInclude {
+    /**
+     * Field paramInclude
+     */
+    protected final ParameterInclude paramInclude;
+
+    /**
+     * Field phasesInclude
+     */
+
+    /**
+     * Field flowInclude
+     */
+    private Flow inFlow;
+    /**
+     * Field flowInclude
+     */
+    private Flow faultFlow;
+
+
+    /**
+     * Field name
+     */
+    protected QName name;
+
+
+    protected TransportListener receiver;
+
+    //to store handler in inFlow
+    private Phase inPhase;
+    //to store handler Fault in inFlow
+    private Phase faultPhase;
+
+
+    /**
+     * Constructor AxisTransport
+     *
+     * @param name
+     */
+    public TransportInDescription(QName name) {
+        paramInclude = new ParameterIncludeImpl();
+        this.name = name;
+        inPhase = new Phase(PhaseMetadata.TRANSPORT_PHASE);
+        faultPhase = new Phase(PhaseMetadata.TRANSPORT_PHASE);
+    }
+
+    /**
+     * Method getParameter
+     *
+     * @param name
+     * @return
+     */
+    public Parameter getParameter(String name) {
+        return paramInclude.getParameter(name);
+    }
+
+    public ArrayList getParameters() {
+        return paramInclude.getParameters();
+    }
+
+    //to check whether the paramter is locked at any levle
+    public boolean isParamterLocked(String paramterName) {
+        return paramInclude.isParamterLocked(paramterName);
+    }
+
+    /**
+     * Method addParameter
+     *
+     * @param param
+     */
+    public void addParameter(Parameter param) throws AxisFault{
+        paramInclude.addParameter(param);
+    }
+
+    /**
+     * @return
+     */
+    public QName getName() {
+        return name;
+    }
+
+    /**
+     * @param name
+     */
+    public void setName(QName name) {
+        this.name = name;
+    }
+
+    public Flow getInFlow() {
+        return inFlow;
+    }
+
+    public void setInFlow(Flow inFlow) {
+        this.inFlow = inFlow;
+    }
+
+    public Flow getFaultFlow() {
+        return faultFlow;
+    }
+
+    public void setFaultFlow(Flow faultFlow) {
+        this.faultFlow = faultFlow;
+    }
+
+    /**
+     * @return
+     */
+    public TransportListener getReceiver() {
+        return receiver;
+    }
+
+    /**
+     * @param receiver
+     */
+    public void setReceiver(TransportListener receiver) {
+        this.receiver = receiver;
+    }
+
+    public Phase getInPhase() {
+        return inPhase;
+    }
+
+    public void setInPhase(Phase inPhase) {
+        this.inPhase = inPhase;
+    }
+
+    public Phase getFaultPhase() {
+        return faultPhase;
+    }
+
+    public void setFaultPhase(Phase faultPhase) {
+        this.faultPhase = faultPhase;
+    }
+
+}

Propchange: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/TransportInDescription.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/TransportOutDescription.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/TransportOutDescription.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/TransportOutDescription.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/TransportOutDescription.java Thu Sep 15 11:52:11 2005
@@ -1,161 +1,161 @@
-/*
- * Copyright 2004,2005 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.axis2.description;
-
-import org.apache.axis2.engine.Phase;
-import org.apache.axis2.phaseresolver.PhaseMetadata;
-import org.apache.axis2.transport.TransportSender;
-import org.apache.axis2.AxisFault;
-
-import javax.xml.namespace.QName;
-import java.util.ArrayList;
-
-/**
- * Represents a transport deployed in AXis2
- */
-public class TransportOutDescription
-        implements ParameterInclude {
-    /**
-     * Field paramInclude
-     */
-    protected final ParameterInclude paramInclude;
-
-
-    /**
-     * Field flowInclude
-     */
-    private Flow outFlow;
-
-    /**
-     * Field flowInclude
-     */
-    private Flow faultFlow;
-
-    private Phase outPhase;
-    private Phase faultPhase;
-
-    /**
-     * Field name
-     */
-    protected QName name;
-
-
-    protected TransportSender sender;
-
-    /**
-     * Constructor AxisTransport
-     *
-     * @param name
-     */
-    public TransportOutDescription(QName name) {
-        paramInclude = new ParameterIncludeImpl();
-        this.name = name;
-        outPhase = new Phase(PhaseMetadata.TRANSPORT_PHASE);
-        faultPhase = new Phase(PhaseMetadata.TRANSPORT_PHASE);
-    }
-
-    /**
-     * Method getParameter
-     *
-     * @param name
-     * @return
-     */
-    public Parameter getParameter(String name) {
-        return paramInclude.getParameter(name);
-    }
-
-    public ArrayList getParameters() {
-        return paramInclude.getParameters();
-    }
-
-    //to check whether the paramter is locked at any levle
-    public boolean isParamterLocked(String paramterName) {
-        return paramInclude.isParamterLocked(paramterName);
-    }
-
-    /**
-     * Method addParameter
-     *
-     * @param param
-     */
-    public void addParameter(Parameter param) throws AxisFault {
-        paramInclude.addParameter(param);
-    }
-
-
-    /**
-     * @return
-     */
-    public QName getName() {
-        return name;
-    }
-
-    /**
-     * @param name
-     */
-    public void setName(QName name) {
-        this.name = name;
-    }
-
-
-    /**
-     * @return
-     */
-    public TransportSender getSender() {
-        return sender;
-    }
-
-
-    /**
-     * @param sender
-     */
-    public void setSender(TransportSender sender) {
-        this.sender = sender;
-    }
-
-    public Flow getOutFlow() {
-        return outFlow;
-    }
-
-    public void setOutFlow(Flow outFlow) {
-        this.outFlow = outFlow;
-    }
-
-    public Flow getFaultFlow() {
-        return faultFlow;
-    }
-
-    public void setFaultFlow(Flow faultFlow) {
-        this.faultFlow = faultFlow;
-    }
-
-    public Phase getOutPhase() {
-        return outPhase;
-    }
-
-    public void setOutPhase(Phase outPhase) {
-        this.outPhase = outPhase;
-    }
-
-    public Phase getFaultPhase() {
-        return faultPhase;
-    }
-
-    public void setFaultPhase(Phase faultPhase) {
-        this.faultPhase = faultPhase;
-    }
-
-}
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.axis2.description;
+
+import org.apache.axis2.engine.Phase;
+import org.apache.axis2.phaseresolver.PhaseMetadata;
+import org.apache.axis2.transport.TransportSender;
+import org.apache.axis2.AxisFault;
+
+import javax.xml.namespace.QName;
+import java.util.ArrayList;
+
+/**
+ * Represents a transport deployed in AXis2
+ */
+public class TransportOutDescription
+        implements ParameterInclude {
+    /**
+     * Field paramInclude
+     */
+    protected final ParameterInclude paramInclude;
+
+
+    /**
+     * Field flowInclude
+     */
+    private Flow outFlow;
+
+    /**
+     * Field flowInclude
+     */
+    private Flow faultFlow;
+
+    private Phase outPhase;
+    private Phase faultPhase;
+
+    /**
+     * Field name
+     */
+    protected QName name;
+
+
+    protected TransportSender sender;
+
+    /**
+     * Constructor AxisTransport
+     *
+     * @param name
+     */
+    public TransportOutDescription(QName name) {
+        paramInclude = new ParameterIncludeImpl();
+        this.name = name;
+        outPhase = new Phase(PhaseMetadata.TRANSPORT_PHASE);
+        faultPhase = new Phase(PhaseMetadata.TRANSPORT_PHASE);
+    }
+
+    /**
+     * Method getParameter
+     *
+     * @param name
+     * @return
+     */
+    public Parameter getParameter(String name) {
+        return paramInclude.getParameter(name);
+    }
+
+    public ArrayList getParameters() {
+        return paramInclude.getParameters();
+    }
+
+    //to check whether the paramter is locked at any levle
+    public boolean isParamterLocked(String paramterName) {
+        return paramInclude.isParamterLocked(paramterName);
+    }
+
+    /**
+     * Method addParameter
+     *
+     * @param param
+     */
+    public void addParameter(Parameter param) throws AxisFault {
+        paramInclude.addParameter(param);
+    }
+
+
+    /**
+     * @return
+     */
+    public QName getName() {
+        return name;
+    }
+
+    /**
+     * @param name
+     */
+    public void setName(QName name) {
+        this.name = name;
+    }
+
+
+    /**
+     * @return
+     */
+    public TransportSender getSender() {
+        return sender;
+    }
+
+
+    /**
+     * @param sender
+     */
+    public void setSender(TransportSender sender) {
+        this.sender = sender;
+    }
+
+    public Flow getOutFlow() {
+        return outFlow;
+    }
+
+    public void setOutFlow(Flow outFlow) {
+        this.outFlow = outFlow;
+    }
+
+    public Flow getFaultFlow() {
+        return faultFlow;
+    }
+
+    public void setFaultFlow(Flow faultFlow) {
+        this.faultFlow = faultFlow;
+    }
+
+    public Phase getOutPhase() {
+        return outPhase;
+    }
+
+    public void setOutPhase(Phase outPhase) {
+        this.outPhase = outPhase;
+    }
+
+    public Phase getFaultPhase() {
+        return faultPhase;
+    }
+
+    public void setFaultPhase(Phase faultPhase) {
+        this.faultPhase = faultPhase;
+    }
+
+}

Propchange: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/TransportOutDescription.java
------------------------------------------------------------------------------
    svn:eol-style = native