Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 11722 invoked from network); 21 Dec 2004 11:39:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 21 Dec 2004 11:39:25 -0000 Received: (qmail 60545 invoked by uid 500); 21 Dec 2004 11:39:12 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 60525 invoked by uid 500); 21 Dec 2004 11:39:11 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 60483 invoked by uid 99); 21 Dec 2004 11:39:10 -0000 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from minotaur.apache.org (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Tue, 21 Dec 2004 03:39:09 -0800 Received: (qmail 11569 invoked by uid 65534); 21 Dec 2004 11:39:03 -0000 Date: 21 Dec 2004 11:39:02 -0000 Message-ID: <20041221113902.11559.qmail@minotaur.apache.org> From: ajith@apache.org To: axis-cvs@ws.apache.org Subject: svn commit: r122965 - /webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/description/DescriptionConstants.java /webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/description/AxisServiceImpl.java MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Author: ajith Date: Tue Dec 21 03:38:58 2004 New Revision: 122965 URL: http://svn.apache.org/viewcvs?view=rev&rev=122965 Log: Commiting on behalf of Harsha (with the approval of Chathura of course) Added: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/description/DescriptionConstants.java webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/description/AxisServiceImpl.java Added: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/description/DescriptionConstants.java Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/description/DescriptionConstants.java?view=auto&rev=122965 ============================================================================== --- (empty file) +++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/description/DescriptionConstants.java Tue Dec 21 03:38:58 2004 @@ -0,0 +1,37 @@ +/* + * Copyright 2001-2004 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.axis.description; + +/** + * @author chathura@opensource.lk + * + */ +public interface DescriptionConstants { + public static final String EXECUTION_CHAIN_KEY = "EXECUTION_CHAIN_KEY"; + public static final String EXECUTION_OUT_CHAIN_KEY = "EXECUTION_OUT_CHAIN_KEY"; + public static final String EXECUTION_FAULT_CHAIN_KEY = "EXECUTION_FAULT_CHAIN_KEY"; + public static final String MODULEREF_KEY = "MODULEREF_KEY"; + public static final String OPERATION_KEY = "OPERATION_KEY"; + public static final String CLASSLOADER_KEY = "CLASSLOADER_KEY"; + public static final String CONTEXTPATH_KEY = "CONTEXTPATH_KEY"; + public static final String PROVIDER_KEY = "PROVIDER_KEY"; + public static final String STYLE_KEY = "STYLE_KEY"; + public static final String PARAMETER_KEY = "PARAMETER_KEY"; + public static final String INFLOW_KEY = "INFLOW_KEY"; + public static final String OUTFLOW_KEY = "OUTFLOW_KEY"; + public static final String FAULTFLOW_KEY = "FAULTFLOW_KEY"; + public static final String PHASES_KEY = "PHASES_KEY"; +} Added: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/description/AxisServiceImpl.java Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/description/AxisServiceImpl.java?view=auto&rev=122965 ============================================================================== --- (empty file) +++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/description/AxisServiceImpl.java Tue Dec 21 03:38:58 2004 @@ -0,0 +1,297 @@ +/* + * Copyright 2001-2004 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.axis.impl.description; + +import java.util.Collection; +import java.util.ArrayList; + +import javax.swing.text.Style; +import javax.xml.namespace.QName; + +import org.apache.axis.description.AxisOperation; +import org.apache.axis.description.AxisService; +import org.apache.axis.engine.AxisFault; +import org.apache.axis.description.DescriptionConstants; +import org.apache.axis.description.Flow; +import org.apache.axis.description.Parameter; +import org.apache.axis.engine.ExecutionChain; +import org.apache.axis.engine.Provider; +import org.apache.wsdl.impl.WSDLServiceImpl; + + +public class AxisServiceImpl extends WSDLServiceImpl implements AxisService , DescriptionConstants{ + + public AxisServiceImpl(){ + this.setComponentProperty(MODULEREF_KEY,new ArrayList()); + this.setComponentProperty(PARAMETER_KEY, new ParameterIncludeImpl()); + this.setComponentProperty(PHASES_KEY, new PhasesIncludeImpl()); + } + /* (non-Javadoc) + * @see org.apache.axis.description.AxisService#addModule(javax.xml.namespace.QName) + */ + public void addModule(QName moduleref) { + // TODO Auto-generated method stub + if( null == moduleref)return; + + Collection collectionModule = (Collection) this.getComponentProperty(MODULEREF_KEY); + if (null != collectionModule){ + collectionModule.add(moduleref); + } + } + + /* (non-Javadoc) + * @see org.apache.axis.description.AxisService#getModules() + */ + public Collection getModules() { + // TODO Auto-generated method stub + return (Collection)this.getComponentProperty(MODULEREF_KEY); + } + + /* (non-Javadoc) + * @see org.apache.axis.description.AxisService#setExecutableInChain(org.apache.axis.engine.ExecutionChain) + */ + public void setExecutableInChain(ExecutionChain executableInChain) { + if(null !=executableInChain){ + this.setComponentProperty(EXECUTION_CHAIN_KEY, executableInChain); + } + + } + + /* (non-Javadoc) + * @see org.apache.axis.description.AxisService#getExecutableInChain() + */ + public ExecutionChain getExecutableInChain() { + return (ExecutionChain)this.getComponentProperty(EXECUTION_CHAIN_KEY); + } + + /* (non-Javadoc) + * @see org.apache.axis.description.AxisService#setExecutableOutChain(org.apache.axis.engine.ExecutionChain) + */ + public void setExecutableOutChain(ExecutionChain executableOutChain) { + // TODO Auto-generated method stub + if(null !=executableOutChain){ + this.setComponentProperty(EXECUTION_OUT_CHAIN_KEY, executableOutChain); + } + } + + /* (non-Javadoc) + * @see org.apache.axis.description.AxisService#getExecutableOutChain() + */ + public ExecutionChain getExecutableOutChain() { + // TODO Auto-generated method stub + return (ExecutionChain)this.getComponentProperty(EXECUTION_OUT_CHAIN_KEY); + } + + /* (non-Javadoc) + * @see org.apache.axis.description.AxisService#setExecutableFaultChain(org.apache.axis.engine.ExecutionChain) + */ + public void setExecutableFaultChain(ExecutionChain executableFaultChain) { + // TODO Auto-generated method stub + if(null !=executableFaultChain){ + this.setComponentProperty(EXECUTION_FAULT_CHAIN_KEY, executableFaultChain); + } + } + + /* (non-Javadoc) + * @see org.apache.axis.description.AxisService#getExecutableFaultChain() + */ + public ExecutionChain getExecutableFaultChain() { + // TODO Auto-generated method stub + return (ExecutionChain)this.getComponentProperty(EXECUTION_FAULT_CHAIN_KEY); + } + + /* (non-Javadoc) + * @see org.apache.axis.description.AxisService#getOperation(javax.xml.namespace.QName) + */ + public AxisOperation getOperation(QName operationName) { + // TODO Auto-generated method stub + return (AxisOperation)this.getComponentProperty(OPERATION_KEY); + } + + /* (non-Javadoc) + * @see org.apache.axis.description.AxisService#addOperation(org.apache.axis.description.AxisOperation) + */ + public void addOperation(AxisOperation operationName) { + // TODO Auto-generated method stub + if(null != operationName){ + this.setComponentProperty(OPERATION_KEY, operationName); + } + } + + /* (non-Javadoc) + * @see org.apache.axis.description.AxisService#setClassLoader(java.lang.ClassLoader) + */ + public void setClassLoader(ClassLoader classLoader) { + // TODO Auto-generated method stub + if(null != classLoader){ + this.setComponentProperty(CLASSLOADER_KEY, classLoader); + } + } + + /* (non-Javadoc) + * @see org.apache.axis.description.AxisService#getClassLoader() + */ + public ClassLoader getClassLoader() { + // TODO Auto-generated method stub + return (ClassLoader)this.getComponentProperty(CLASSLOADER_KEY); + } + + /* (non-Javadoc) + * @see org.apache.axis.description.AxisService#setContextPath(java.lang.String) + */ + public void setContextPath(String contextPath) { + // TODO Auto-generated method stub + if(null != contextPath){ + this.setComponentProperty(CONTEXTPATH_KEY, contextPath); + } + } + + /* (non-Javadoc) + * @see org.apache.axis.description.AxisService#getContextPath() + */ + public String getContextPath() { + // TODO Auto-generated method stub + return (String)this.getComponentProperty(CONTEXTPATH_KEY); + } + + /* (non-Javadoc) + * @see org.apache.axis.description.AxisService#setProvider(org.apache.axis.engine.Provider) + */ + public void setProvider(Provider provider) { + // TODO Auto-generated method stub + if(null != provider){ + this.setComponentProperty(PROVIDER_KEY, provider); + } + } + + /* (non-Javadoc) + * @see org.apache.axis.description.AxisService#getProvider() + */ + public Provider getProvider() { + // TODO Auto-generated method stub + return (Provider)this.getComponentProperty(PROVIDER_KEY); + } + + /* (non-Javadoc) + * @see org.apache.axis.description.AxisService#setStyle(javax.swing.text.Style) + */ + public void setStyle(Style style) { + // TODO Auto-generated method stub + if(null != style){ + this.setComponentProperty(STYLE_KEY, style); + } + } + + /* (non-Javadoc) + * @see org.apache.axis.description.AxisService#getStyle() + */ + public Style getStyle() { + // TODO Auto-generated method stub + return (Style)this.getComponentProperty(STYLE_KEY); + } + + public void setPhases(ArrayList phases, int flow) throws AxisFault{ + if(phases == null) return; + PhasesIncludeImpl phaseInclude = + (PhasesIncludeImpl)this.getComponentProperty(PHASES_KEY); + if(phaseInclude != null){ + phaseInclude.setPhases(phases, flow); + } + } + + public ArrayList getPhases(int flow) throws AxisFault{ + PhasesIncludeImpl phaseInclude = + (PhasesIncludeImpl)this.getComponentProperty(PHASES_KEY); + if(phaseInclude == null) return null; + return(ArrayList)phaseInclude.getPhases(flow); + } + /* (non-Javadoc) + * @see org.apache.axis.description.ParameterInclude#addParameter(org.apache.axis.description.Parameter) + */ + public void addParameter(Parameter param) { + // TODO Auto-generated method stub + if(null == param) return; + ParameterIncludeImpl paramInclude = + (ParameterIncludeImpl)this.getComponentProperty(PARAMETER_KEY); + if(null != paramInclude){ + paramInclude.addParameter(param); + } + } + + /* (non-Javadoc) + * @see org.apache.axis.description.ParameterInclude#getParameter(java.lang.String) + */ + public Parameter getParameter(String name) { + // TODO Auto-generated method stub + ParameterIncludeImpl paramInclude = (ParameterIncludeImpl)this.getComponentProperty(PARAMETER_KEY); + if(null == paramInclude)return null; + return (Parameter)paramInclude.getParameter(name); + } + + /* (non-Javadoc) + * @see org.apache.axis.description.FlowInclude#getInFlow() + */ + public Flow getInFlow() { + // TODO Auto-generated method stub + return (Flow)this.getComponentProperty(INFLOW_KEY); + } + + /* (non-Javadoc) + * @see org.apache.axis.description.FlowInclude#setInFlow(org.apache.axis.description.Flow) + */ + public void setInFlow(Flow inFlow) { + // TODO Auto-generated method stub + if(null != inFlow){ + this.setComponentProperty(INFLOW_KEY, inFlow); + } + } + + /* (non-Javadoc) + * @see org.apache.axis.description.FlowInclude#getOutFlow() + */ + public Flow getOutFlow() { + // TODO Auto-generated method stub + return (Flow)this.getComponentProperty(OUTFLOW_KEY); + } + + /* (non-Javadoc) + * @see org.apache.axis.description.FlowInclude#setOutFlow(org.apache.axis.description.Flow) + */ + public void setOutFlow(Flow outFlow) { + // TODO Auto-generated method stub + if(null != outFlow){ + this.setComponentProperty(OUTFLOW_KEY, outFlow); + } + } + + /* (non-Javadoc) + * @see org.apache.axis.description.FlowInclude#getFaultFlow() + */ + public Flow getFaultFlow() { + // TODO Auto-generated method stub + return (Flow)this.getComponentProperty(FAULTFLOW_KEY); + } + + /* (non-Javadoc) + * @see org.apache.axis.description.FlowInclude#setFaultFlow(org.apache.axis.description.Flow) + */ + public void setFaultFlow(Flow faultFlow) { + // TODO Auto-generated method stub + if(null != faultFlow){ + this.setComponentProperty(FAULTFLOW_KEY, faultFlow); + } + } +}