You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2005/02/20 18:57:02 UTC
svn commit: r154537 [2/6] - in webservices/axis/trunk/java/modules:
core/src/java/org/apache/axis/ core/src/java/org/apache/axis/addressing/
core/src/java/org/apache/axis/addressing/miheaders/
core/src/java/org/apache/axis/addressing/om/
core/src/java/org/apache/axis/clientapi/
core/src/java/org/apache/axis/context/
core/src/java/org/apache/axis/description/
core/src/java/org/apache/axis/engine/ core/src/java/org/apache/axis/handlers/
core/src/java/org/apache/axis/phaseresolver/
core/src/java/org/apache/axis/providers/
core/src/java/org/apache/axis/receivers/
core/src/java/org/apache/axis/transport/
core/src/java/org/apache/axis/transport/http/
core/src/java/org/apache/axis/util/
deployment/src/samples/deployment/service1/org/apache/axis/sample/echo/
samples/src/java/encoding/sample1/
samples/src/java/encoding/sample2/benchMark/
samples/src/java/org/apache/axis/testUtils/
Modified: webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/AxisService.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/AxisService.java?view=diff&r1=154536&r2=154537
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/AxisService.java (original)
+++ webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/AxisService.java Sun Feb 20 09:56:49 2005
@@ -1,12 +1,12 @@
/*
* 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.
@@ -25,215 +25,416 @@
import java.util.Collection;
import java.util.HashMap;
-public class AxisService extends WSDLServiceImpl implements WSDLService, ParameterInclude, FlowInclude, PhasesInclude, DescriptionConstants {
+/**
+ * Class AxisService
+ */
+public class AxisService extends WSDLServiceImpl
+ implements WSDLService, ParameterInclude, FlowInclude, PhasesInclude,
+ DescriptionConstants {
/**
* 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();
+ /**
+ * Constructor AxisService
+ */
public AxisService() {
this.setComponentProperty(MODULEREF_KEY, new ArrayList());
this.setComponentProperty(PARAMETER_KEY, new ParameterIncludeImpl());
this.setComponentProperty(PHASES_KEY, new PhasesIncludeImpl());
}
+ /**
+ * Constructor AxisService
+ *
+ * @param qName
+ */
public AxisService(QName qName) {
this();
this.setName(qName);
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
* @see org.apache.axis.description.AxisService#addModule(javax.xml.namespace.QName)
*/
+
+ /**
+ * Method addModule
+ *
+ * @param moduleref
+ */
public void addModule(QName moduleref) {
- if (moduleref == null) return;
- Collection collectionModule = (Collection) this.getComponentProperty(MODULEREF_KEY);
+ if (moduleref == null) {
+ return;
+ }
+ Collection collectionModule =
+ (Collection) this.getComponentProperty(MODULEREF_KEY);
collectionModule.add(moduleref);
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
* @see org.apache.axis.description.AxisService#getModules()
*/
+
+ /**
+ * Method getModules
+ *
+ * @return
+ */
public Collection getModules() {
return (Collection) this.getComponentProperty(MODULEREF_KEY);
}
+ /**
+ * Method getOperation
+ *
+ * @param operationName
+ * @return
+ */
public AxisOperation getOperation(QName operationName) {
- //todo The key has been changed from the qname to the local name because
- //todo when comparing the namespace will not be available
- return (AxisOperation) this.operationsMap.get(operationName.getLocalPart());
+
+ // todo The key has been changed from the qname to the local name because
+ // todo when comparing the namespace will not be available
+ return (AxisOperation) this.operationsMap.get(
+ operationName.getLocalPart());
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
* @see org.apache.axis.description.AxisService#addOperation(org.apache.axis.description.AxisOperation)
*/
+
+ /**
+ * Method addOperation
+ *
+ * @param operation
+ */
public void addOperation(AxisOperation operation) {
- //todo The key has been changed from the qname to the local name because
- //todo when comparing the namespace will not be available
+
+ // todo The key has been changed from the qname to the local name because
+ // todo when comparing the namespace will not be available
if (operation != null) {
- this.operationsMap.put(operation.getName().getLocalPart(), operation);
+ this.operationsMap.put(operation.getName().getLocalPart(),
+ operation);
}
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
* @see org.apache.axis.description.AxisService#setClassLoader(java.lang.ClassLoader)
*/
+
+ /**
+ * Method setClassLoader
+ *
+ * @param classLoader
+ */
public void setClassLoader(ClassLoader classLoader) {
if (classLoader != null) {
this.setComponentProperty(CLASSLOADER_KEY, classLoader);
}
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
* @see org.apache.axis.description.AxisService#getClassLoader()
*/
+
+ /**
+ * Method getClassLoader
+ *
+ * @return
+ */
public ClassLoader getClassLoader() {
return (ClassLoader) this.getComponentProperty(CLASSLOADER_KEY);
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
* @see org.apache.axis.description.AxisService#setContextPath(java.lang.String)
*/
+
+ /**
+ * Method setContextPath
+ *
+ * @param contextPath
+ */
public void setContextPath(String contextPath) {
if (contextPath != null) {
this.setComponentProperty(CONTEXTPATH_KEY, contextPath);
}
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
* @see org.apache.axis.description.AxisService#getContextPath()
*/
+
+ /**
+ * Method getContextPath
+ *
+ * @return
+ */
public String getContextPath() {
return (String) this.getComponentProperty(CONTEXTPATH_KEY);
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
* @see org.apache.axis.description.AxisService#setProvider(org.apache.axis.engine.Provider)
*/
+
+ /**
+ * Method setProvider
+ *
+ * @param provider
+ */
public void setProvider(Provider provider) {
if (provider != null) {
this.setComponentProperty(PROVIDER_KEY, provider);
}
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
* @see org.apache.axis.description.AxisService#getProvider()
*/
+
+ /**
+ * Method getProvider
+ *
+ * @return
+ */
public Provider getProvider() {
return (Provider) this.getComponentProperty(PROVIDER_KEY);
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
* @see org.apache.axis.description.AxisService#setStyle(javax.swing.text.Style)
*/
+
+ /**
+ * Method setStyle
+ *
+ * @param style
+ */
public void setStyle(String style) {
if (style != null) {
this.setComponentProperty(STYLE_KEY, style);
}
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
* @see org.apache.axis.description.AxisService#getStyle()
*/
+
+ /**
+ * Method getStyle
+ *
+ * @return
+ */
public String getStyle() {
return (String) this.getComponentProperty(STYLE_KEY);
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
* @see org.apache.axis.description.PhasesInclude#getPhases(java.util.ArrayList, int)
*/
+
+ /**
+ * Method setPhases
+ *
+ * @param phases
+ * @param flow
+ * @throws AxisFault
+ */
public void setPhases(ArrayList phases, int flow) throws AxisFault {
- if (phases == null) return;
+ if (phases == null) {
+ return;
+ }
PhasesIncludeImpl phaseInclude =
(PhasesIncludeImpl) this.getComponentProperty(PHASES_KEY);
phaseInclude.setPhases(phases, flow);
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
* @see org.apache.axis.description.PhasesInclude#getPhases(int)
*/
+
+ /**
+ * Method getPhases
+ *
+ * @param flow
+ * @return
+ * @throws AxisFault
+ */
public ArrayList getPhases(int flow) throws AxisFault {
PhasesIncludeImpl phaseInclude =
(PhasesIncludeImpl) this.getComponentProperty(PHASES_KEY);
return (ArrayList) phaseInclude.getPhases(flow);
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
* @see org.apache.axis.description.ParameterInclude#addParameter(org.apache.axis.description.Parameter)
*/
+
+ /**
+ * Method addParameter
+ *
+ * @param param
+ */
public void addParameter(Parameter param) {
- if (param == null) return;
+ if (param == null) {
+ return;
+ }
ParameterIncludeImpl paramInclude =
(ParameterIncludeImpl) this.getComponentProperty(PARAMETER_KEY);
paramInclude.addParameter(param);
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
* @see org.apache.axis.description.ParameterInclude#getParameter(java.lang.String)
*/
+
+ /**
+ * Method getParameter
+ *
+ * @param name
+ * @return
+ */
public Parameter getParameter(String name) {
- ParameterIncludeImpl paramInclude = (ParameterIncludeImpl) this.getComponentProperty(PARAMETER_KEY);
+ ParameterIncludeImpl paramInclude =
+ (ParameterIncludeImpl) this.getComponentProperty(PARAMETER_KEY);
return (Parameter) paramInclude.getParameter(name);
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
* @see org.apache.axis.description.FlowInclude#getInFlow()
*/
+
+ /**
+ * Method getInFlow
+ *
+ * @return
+ */
public Flow getInFlow() {
return (Flow) this.getComponentProperty(INFLOW_KEY);
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
* @see org.apache.axis.description.FlowInclude#setInFlow(org.apache.axis.description.Flow)
*/
+
+ /**
+ * Method setInFlow
+ *
+ * @param inFlow
+ */
public void setInFlow(Flow inFlow) {
if (inFlow != null) {
this.setComponentProperty(INFLOW_KEY, inFlow);
}
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
* @see org.apache.axis.description.FlowInclude#getOutFlow()
*/
+
+ /**
+ * Method getOutFlow
+ *
+ * @return
+ */
public Flow getOutFlow() {
return (Flow) this.getComponentProperty(OUTFLOW_KEY);
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
* @see org.apache.axis.description.FlowInclude#setOutFlow(org.apache.axis.description.Flow)
*/
+
+ /**
+ * Method setOutFlow
+ *
+ * @param outFlow
+ */
public void setOutFlow(Flow outFlow) {
if (outFlow != null) {
this.setComponentProperty(OUTFLOW_KEY, outFlow);
}
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
* @see org.apache.axis.description.FlowInclude#getFaultFlow()
*/
+
+ /**
+ * Method getFaultFlow
+ *
+ * @return
+ */
public Flow getFaultFlow() {
return (Flow) this.getComponentProperty(FAULTFLOW_KEY);
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
* @see org.apache.axis.description.FlowInclude#setFaultFlow(org.apache.axis.description.Flow)
*/
+
+ /**
+ * Method setFaultFlow
+ *
+ * @param faultFlow
+ */
public void setFaultFlow(Flow faultFlow) {
if (faultFlow != null) {
this.setComponentProperty(FAULTFLOW_KEY, faultFlow);
}
}
+ /**
+ * Method setServiceClass
+ *
+ * @param serviceclass
+ */
public void setServiceClass(Class serviceclass) {
- if (serviceclass != null)
- this.setComponentProperty(DescriptionConstants.SERVICE_CLASS, serviceclass);
+ if (serviceclass != null) {
+ this.setComponentProperty(DescriptionConstants.SERVICE_CLASS,
+ serviceclass);
+ }
}
+ /**
+ * Method getServiceClass
+ *
+ * @return
+ */
public Class getServiceClass() {
- return (Class) this.getComponentProperty(DescriptionConstants.SERVICE_CLASS);
+ return (Class) this.getComponentProperty(
+ DescriptionConstants.SERVICE_CLASS);
}
+ /**
+ * Method getOperations
+ *
+ * @return
+ */
public HashMap getOperations() {
return operationsMap;
}
Modified: webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/AxisTransport.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/AxisTransport.java?view=diff&r1=154536&r2=154537
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/AxisTransport.java (original)
+++ webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/AxisTransport.java Sun Feb 20 09:56:49 2005
@@ -1,121 +1,152 @@
-/*
- * 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.axis.description;
-
-import org.apache.axis.engine.AxisFault;
-
-import javax.xml.namespace.QName;
-import java.util.ArrayList;
-
-/**
- * Represents a transport deployed in AXis2
- */
-public class AxisTransport implements ParameterInclude, PhasesInclude, FlowInclude {
- protected final ParameterInclude paramInclude;
- protected final PhasesInclude phasesInclude;
- private final FlowInclude flowInclude;
- protected QName name;
-
- public AxisTransport(QName name) {
- paramInclude = new ParameterIncludeImpl();
- phasesInclude = new PhasesIncludeImpl();
- flowInclude = new FlowIncludeImpl();
- this.name = name;
- }
-
- public Parameter getParameter(String name) {
- return paramInclude.getParameter(name);
- }
-
- public void addParameter(Parameter param) {
- paramInclude.addParameter(param);
- }
-
- /**
- * @param flow
- * @return
- * @throws AxisFault
- */
- public ArrayList getPhases(int flow) throws AxisFault {
- return phasesInclude.getPhases(flow);
- }
-
- /**
- * @param phases
- * @param flow
- * @throws AxisFault
- */
- public void setPhases(ArrayList phases, int flow) throws AxisFault {
- phasesInclude.setPhases(phases, flow);
- }
-
- /**
- * @return
- */
- public QName getName() {
- return name;
- }
-
- /**
- * @param name
- */
- public void setName(QName name) {
- this.name = name;
- }
-
- /**
- * @return
- */
- public Flow getFaultFlow() {
- return flowInclude.getFaultFlow();
- }
-
- /**
- * @return
- */
- public Flow getInFlow() {
- return flowInclude.getInFlow();
- }
-
- /**
- * @return
- */
- public Flow getOutFlow() {
- return flowInclude.getOutFlow();
- }
-
- /**
- * @param faultFlow
- */
- public void setFaultFlow(Flow faultFlow) {
- flowInclude.setFaultFlow(faultFlow);
- }
-
- /**
- * @param inFlow
- */
- public void setInFlow(Flow inFlow) {
- flowInclude.setInFlow(inFlow);
- }
-
- /**
- * @param outFlow
- */
- public void setOutFlow(Flow outFlow) {
- flowInclude.setOutFlow(outFlow);
- }
-
-}
+/*
+ * 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.axis.description;
+
+import org.apache.axis.engine.AxisFault;
+
+import javax.xml.namespace.QName;
+import java.util.ArrayList;
+
+/**
+ * Represents a transport deployed in AXis2
+ */
+public class AxisTransport
+ implements ParameterInclude, PhasesInclude, FlowInclude {
+ /**
+ * Field paramInclude
+ */
+ protected final ParameterInclude paramInclude;
+
+ /**
+ * Field phasesInclude
+ */
+ protected final PhasesInclude phasesInclude;
+
+ /**
+ * Field flowInclude
+ */
+ private final FlowInclude flowInclude;
+
+ /**
+ * Field name
+ */
+ protected QName name;
+
+ /**
+ * Constructor AxisTransport
+ *
+ * @param name
+ */
+ public AxisTransport(QName name) {
+ paramInclude = new ParameterIncludeImpl();
+ phasesInclude = new PhasesIncludeImpl();
+ flowInclude = new FlowIncludeImpl();
+ this.name = name;
+ }
+
+ /**
+ * Method getParameter
+ *
+ * @param name
+ * @return
+ */
+ public Parameter getParameter(String name) {
+ return paramInclude.getParameter(name);
+ }
+
+ /**
+ * Method addParameter
+ *
+ * @param param
+ */
+ public void addParameter(Parameter param) {
+ paramInclude.addParameter(param);
+ }
+
+ /**
+ * @param flow
+ * @return
+ * @throws AxisFault
+ */
+ public ArrayList getPhases(int flow) throws AxisFault {
+ return phasesInclude.getPhases(flow);
+ }
+
+ /**
+ * @param phases
+ * @param flow
+ * @throws AxisFault
+ */
+ public void setPhases(ArrayList phases, int flow) throws AxisFault {
+ phasesInclude.setPhases(phases, flow);
+ }
+
+ /**
+ * @return
+ */
+ public QName getName() {
+ return name;
+ }
+
+ /**
+ * @param name
+ */
+ public void setName(QName name) {
+ this.name = name;
+ }
+
+ /**
+ * @return
+ */
+ public Flow getFaultFlow() {
+ return flowInclude.getFaultFlow();
+ }
+
+ /**
+ * @return
+ */
+ public Flow getInFlow() {
+ return flowInclude.getInFlow();
+ }
+
+ /**
+ * @return
+ */
+ public Flow getOutFlow() {
+ return flowInclude.getOutFlow();
+ }
+
+ /**
+ * @param faultFlow
+ */
+ public void setFaultFlow(Flow faultFlow) {
+ flowInclude.setFaultFlow(faultFlow);
+ }
+
+ /**
+ * @param inFlow
+ */
+ public void setInFlow(Flow inFlow) {
+ flowInclude.setInFlow(inFlow);
+ }
+
+ /**
+ * @param outFlow
+ */
+ public void setOutFlow(Flow outFlow) {
+ flowInclude.setOutFlow(outFlow);
+ }
+}
Modified: webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/DescriptionConstants.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/DescriptionConstants.java?view=diff&r1=154536&r2=154537
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/DescriptionConstants.java (original)
+++ webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/DescriptionConstants.java Sun Feb 20 09:56:49 2005
@@ -1,12 +1,12 @@
/*
* 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.
@@ -19,20 +19,85 @@
* @author chathura@opensource.lk
*/
public interface DescriptionConstants {
+ /**
+ * Field EXECUTION_CHAIN_KEY
+ */
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";
+
+ /**
+ * Field EXECUTION_OUT_CHAIN_KEY
+ */
+ public static final String EXECUTION_OUT_CHAIN_KEY =
+ "EXECUTION_OUT_CHAIN_KEY";
+
+ /**
+ * Field EXECUTION_FAULT_CHAIN_KEY
+ */
+ public static final String EXECUTION_FAULT_CHAIN_KEY =
+ "EXECUTION_FAULT_CHAIN_KEY";
+
+ /**
+ * Field MODULEREF_KEY
+ */
public static final String MODULEREF_KEY = "MODULEREF_KEY";
+
+ /**
+ * Field OPERATION_KEY
+ */
public static final String OPERATION_KEY = "OPERATION_KEY";
+
+ /**
+ * Field CLASSLOADER_KEY
+ */
public static final String CLASSLOADER_KEY = "CLASSLOADER_KEY";
+
+ /**
+ * Field CONTEXTPATH_KEY
+ */
public static final String CONTEXTPATH_KEY = "CONTEXTPATH_KEY";
+
+ /**
+ * Field PROVIDER_KEY
+ */
public static final String PROVIDER_KEY = "PROVIDER_KEY";
+
+ /**
+ * Field STYLE_KEY
+ */
public static final String STYLE_KEY = "STYLE_KEY";
+
+ /**
+ * Field PARAMETER_KEY
+ */
public static final String PARAMETER_KEY = "PARAMETER_KEY";
+
+ /**
+ * Field INFLOW_KEY
+ */
public static final String INFLOW_KEY = "INFLOW_KEY";
+
+ /**
+ * Field OUTFLOW_KEY
+ */
public static final String OUTFLOW_KEY = "OUTFLOW_KEY";
+
+ /**
+ * Field FAULTFLOW_KEY
+ */
public static final String FAULTFLOW_KEY = "FAULTFLOW_KEY";
+
+ /**
+ * Field PHASES_KEY
+ */
public static final String PHASES_KEY = "PHASES_KEY";
+
+ /**
+ * Field SERVICE_CLASS
+ */
public static final String SERVICE_CLASS = "SERVICE_CLASS";
+
+ /**
+ * Field SERVICE_CLASS_NAME
+ */
public static final String SERVICE_CLASS_NAME = "SERVICE_CLASS_NAME";
}
Modified: webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/Flow.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/Flow.java?view=diff&r1=154536&r2=154537
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/Flow.java (original)
+++ webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/Flow.java Sun Feb 20 09:56:49 2005
@@ -1,12 +1,12 @@
/*
* 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.
@@ -20,9 +20,25 @@
* any symantics.
*/
public interface Flow {
+ /**
+ * Method getHandlerCount
+ *
+ * @return
+ */
public int getHandlerCount();
+ /**
+ * Method getHandler
+ *
+ * @param index
+ * @return
+ */
public HandlerMetadata getHandler(int index);
+ /**
+ * Method addHandler
+ *
+ * @param handler
+ */
public void addHandler(HandlerMetadata handler);
}
Modified: webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/FlowImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/FlowImpl.java?view=diff&r1=154536&r2=154537
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/FlowImpl.java (original)
+++ webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/FlowImpl.java Sun Feb 20 09:56:49 2005
@@ -1,12 +1,12 @@
/*
* 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.
@@ -18,21 +18,46 @@
import java.util.ArrayList;
import java.util.List;
+/**
+ * Class FlowImpl
+ */
public class FlowImpl implements Flow {
+ /**
+ * Field list
+ */
protected final List list;
+ /**
+ * Constructor FlowImpl
+ */
public FlowImpl() {
list = new ArrayList();
}
+ /**
+ * Method addHandler
+ *
+ * @param handler
+ */
public void addHandler(HandlerMetadata handler) {
list.add(handler);
}
+ /**
+ * Method getHandler
+ *
+ * @param index
+ * @return
+ */
public HandlerMetadata getHandler(int index) {
return (HandlerMetadata) list.get(index);
}
+ /**
+ * Method getHandlerCount
+ *
+ * @return
+ */
public int getHandlerCount() {
return list.size();
}
Modified: webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/FlowInclude.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/FlowInclude.java?view=diff&r1=154536&r2=154537
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/FlowInclude.java (original)
+++ webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/FlowInclude.java Sun Feb 20 09:56:49 2005
@@ -1,32 +1,64 @@
-/*
- * 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.axis.description;
-
-public interface FlowInclude {
- //Flow include
- public Flow getInFlow();
-
- public void setInFlow(Flow inFlow);
-
- public Flow getOutFlow();
-
- public void setOutFlow(Flow outFlow);
-
- public Flow getFaultFlow();
-
- public void setFaultFlow(Flow faultFlow);
-
-}
+/*
+ * 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.axis.description;
+
+/**
+ * Interface FlowInclude
+ */
+public interface FlowInclude {
+
+ /**
+ * Method getInFlow
+ *
+ * @return
+ */
+ public Flow getInFlow();
+
+ /**
+ * Method setInFlow
+ *
+ * @param inFlow
+ */
+ public void setInFlow(Flow inFlow);
+
+ /**
+ * Method getOutFlow
+ *
+ * @return
+ */
+ public Flow getOutFlow();
+
+ /**
+ * Method setOutFlow
+ *
+ * @param outFlow
+ */
+ public void setOutFlow(Flow outFlow);
+
+ /**
+ * Method getFaultFlow
+ *
+ * @return
+ */
+ public Flow getFaultFlow();
+
+ /**
+ * Method setFaultFlow
+ *
+ * @param faultFlow
+ */
+ public void setFaultFlow(Flow faultFlow);
+}
Modified: webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/FlowIncludeImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/FlowIncludeImpl.java?view=diff&r1=154536&r2=154537
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/FlowIncludeImpl.java (original)
+++ webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/FlowIncludeImpl.java Sun Feb 20 09:56:49 2005
@@ -1,47 +1,90 @@
-/*
- * 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.axis.description;
-
-public class FlowIncludeImpl implements FlowInclude {
- private Flow in;
- private Flow out;
- private Flow fault;
-
- public Flow getFaultFlow() {
- return fault;
- }
-
- public Flow getInFlow() {
- return in;
- }
-
- public Flow getOutFlow() {
- return out;
- }
-
- public void setFaultFlow(Flow flow) {
- this.fault = flow;
- }
-
- public void setInFlow(Flow flow) {
- this.in = flow;
- }
-
- public void setOutFlow(Flow flow) {
- this.out = flow;
- }
-
-}
+/*
+ * 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.axis.description;
+
+/**
+ * Class FlowIncludeImpl
+ */
+public class FlowIncludeImpl implements FlowInclude {
+ /**
+ * Field in
+ */
+ private Flow in;
+
+ /**
+ * Field out
+ */
+ private Flow out;
+
+ /**
+ * Field fault
+ */
+ private Flow fault;
+
+ /**
+ * Method getFaultFlow
+ *
+ * @return
+ */
+ public Flow getFaultFlow() {
+ return fault;
+ }
+
+ /**
+ * Method getInFlow
+ *
+ * @return
+ */
+ public Flow getInFlow() {
+ return in;
+ }
+
+ /**
+ * Method getOutFlow
+ *
+ * @return
+ */
+ public Flow getOutFlow() {
+ return out;
+ }
+
+ /**
+ * Method setFaultFlow
+ *
+ * @param flow
+ */
+ public void setFaultFlow(Flow flow) {
+ this.fault = flow;
+ }
+
+ /**
+ * Method setInFlow
+ *
+ * @param flow
+ */
+ public void setInFlow(Flow flow) {
+ this.in = flow;
+ }
+
+ /**
+ * Method setOutFlow
+ *
+ * @param flow
+ */
+ public void setOutFlow(Flow flow) {
+ this.out = flow;
+ }
+}
Modified: webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/HandlerMetadata.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/HandlerMetadata.java?view=diff&r1=154536&r2=154537
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/HandlerMetadata.java (original)
+++ webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/HandlerMetadata.java Sun Feb 20 09:56:49 2005
@@ -1,100 +1,147 @@
-/*
- * 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.axis.description;
-
-import org.apache.axis.engine.Handler;
-
-import javax.xml.namespace.QName;
-
-/**
- * represent the deployment information about the handler
- */
-public class HandlerMetadata implements ParameterInclude {
- private final ParameterInclude parameterInclude;
- private QName name;
- private PhaseRule rules;
- private Handler handler;
- private String className;
-
- public HandlerMetadata() {
- this.parameterInclude = new ParameterIncludeImpl();
- this.rules = new PhaseRule();
- }
-
- public HandlerMetadata(QName name) {
- this();
- this.name = name;
- }
-
- /**
- * @return
- */
- public QName getName() {
- return name;
- }
-
- public PhaseRule getRules() {
- return rules;
- }
-
- public void setRules(PhaseRule rules) {
- this.rules = rules;
- }
-
- /**
- * @param name
- */
- public void setName(QName name) {
- this.name = name;
- }
-
- /**
- * @param param
- */
- public void addParameter(Parameter param) {
- parameterInclude.addParameter(param);
- }
-
- /**
- * @param name
- * @return
- */
- public Parameter getParameter(String name) {
- return parameterInclude.getParameter(name);
- }
-
- /**
- * @return
- */
- public Handler getHandler() {
- return handler;
- }
-
- /**
- * @param handler
- */
- public void setHandler(Handler handler) {
- this.handler = handler;
- }
-
- public String getClassName() {
- return className;
- }
-
- public void setClassName(String className) {
- this.className = className;
- }
-}
+/*
+ * 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.axis.description;
+
+import org.apache.axis.engine.Handler;
+
+import javax.xml.namespace.QName;
+
+/**
+ * represent the deployment information about the handler
+ */
+public class HandlerMetadata implements ParameterInclude {
+ /**
+ * Field parameterInclude
+ */
+ private final ParameterInclude parameterInclude;
+
+ /**
+ * Field name
+ */
+ private QName name;
+
+ /**
+ * Field rules
+ */
+ private PhaseRule rules;
+
+ /**
+ * Field handler
+ */
+ private Handler handler;
+
+ /**
+ * Field className
+ */
+ private String className;
+
+ /**
+ * Constructor HandlerMetadata
+ */
+ public HandlerMetadata() {
+ this.parameterInclude = new ParameterIncludeImpl();
+ this.rules = new PhaseRule();
+ }
+
+ /**
+ * Constructor HandlerMetadata
+ *
+ * @param name
+ */
+ public HandlerMetadata(QName name) {
+ this();
+ this.name = name;
+ }
+
+ /**
+ * @return
+ */
+ public QName getName() {
+ return name;
+ }
+
+ /**
+ * Method getRules
+ *
+ * @return
+ */
+ public PhaseRule getRules() {
+ return rules;
+ }
+
+ /**
+ * Method setRules
+ *
+ * @param rules
+ */
+ public void setRules(PhaseRule rules) {
+ this.rules = rules;
+ }
+
+ /**
+ * @param name
+ */
+ public void setName(QName name) {
+ this.name = name;
+ }
+
+ /**
+ * @param param
+ */
+ public void addParameter(Parameter param) {
+ parameterInclude.addParameter(param);
+ }
+
+ /**
+ * @param name
+ * @return
+ */
+ public Parameter getParameter(String name) {
+ return parameterInclude.getParameter(name);
+ }
+
+ /**
+ * @return
+ */
+ public Handler getHandler() {
+ return handler;
+ }
+
+ /**
+ * @param handler
+ */
+ public void setHandler(Handler handler) {
+ this.handler = handler;
+ }
+
+ /**
+ * Method getClassName
+ *
+ * @return
+ */
+ public String getClassName() {
+ return className;
+ }
+
+ /**
+ * Method setClassName
+ *
+ * @param className
+ */
+ public void setClassName(String className) {
+ this.className = className;
+ }
+}
Modified: webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/Parameter.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/Parameter.java?view=diff&r1=154536&r2=154537
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/Parameter.java (original)
+++ webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/Parameter.java Sun Feb 20 09:56:49 2005
@@ -1,12 +1,12 @@
/*
* 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.
@@ -15,21 +15,66 @@
*/
package org.apache.axis.description;
+/**
+ * Interface Parameter
+ */
public interface Parameter {
+ /**
+ * Field TEXT_PARAMETER
+ */
public static int TEXT_PARAMETER = 0;
+
+ /**
+ * Field DOM_PARAMETER
+ */
public static int DOM_PARAMETER = 1;
+ /**
+ * Method getName
+ *
+ * @return
+ */
public String getName();
+ /**
+ * Method getValue
+ *
+ * @return
+ */
public Object getValue();
+ /**
+ * Method setName
+ *
+ * @param name
+ */
public void setName(String name);
+ /**
+ * Method setValue
+ *
+ * @param value
+ */
public void setValue(String value);
+ /**
+ * Method isLocked
+ *
+ * @return
+ */
public boolean isLocked();
+ /**
+ * Method setLocked
+ *
+ * @param value
+ */
public void setLocked(boolean value);
+ /**
+ * Method getParameterType
+ *
+ * @return
+ */
public int getParameterType();
}
Modified: webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/ParameterImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/ParameterImpl.java?view=diff&r1=154536&r2=154537
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/ParameterImpl.java (original)
+++ webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/ParameterImpl.java Sun Feb 20 09:56:49 2005
@@ -1,60 +1,121 @@
-/*
- * 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.axis.description;
-
-public class ParameterImpl implements Parameter {
- private String name;
- private String value;
- private boolean locked;
- private int type = TEXT_PARAMETER;
-
- public ParameterImpl() {
- }
-
- public ParameterImpl(String name, String value) {
- this.name = name;
- this.value = value;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public void setValue(String value) {
- this.value = value;
- }
-
- public boolean isLocked() {
- return locked;
- }
-
- public void setLocked(boolean value) {
- locked = value;
- }
-
- public String getName() {
- return name;
- }
-
- public Object getValue() {
- return value;
- }
-
- public int getParameterType() {
- return type;
- }
-
-}
+/*
+ * 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.axis.description;
+
+/**
+ * Class ParameterImpl
+ */
+public class ParameterImpl implements Parameter {
+ /**
+ * Field name
+ */
+ private String name;
+
+ /**
+ * Field value
+ */
+ private String value;
+
+ /**
+ * Field locked
+ */
+ private boolean locked;
+
+ /**
+ * Field type
+ */
+ private int type = TEXT_PARAMETER;
+
+ /**
+ * Constructor ParameterImpl
+ */
+ public ParameterImpl() {
+ }
+
+ /**
+ * Constructor ParameterImpl
+ *
+ * @param name
+ * @param value
+ */
+ public ParameterImpl(String name, String value) {
+ this.name = name;
+ this.value = value;
+ }
+
+ /**
+ * Method setName
+ *
+ * @param name
+ */
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ /**
+ * Method setValue
+ *
+ * @param value
+ */
+ public void setValue(String value) {
+ this.value = value;
+ }
+
+ /**
+ * Method isLocked
+ *
+ * @return
+ */
+ public boolean isLocked() {
+ return locked;
+ }
+
+ /**
+ * Method setLocked
+ *
+ * @param value
+ */
+ public void setLocked(boolean value) {
+ locked = value;
+ }
+
+ /**
+ * Method getName
+ *
+ * @return
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Method getValue
+ *
+ * @return
+ */
+ public Object getValue() {
+ return value;
+ }
+
+ /**
+ * Method getParameterType
+ *
+ * @return
+ */
+ public int getParameterType() {
+ return type;
+ }
+}
Modified: webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/ParameterInclude.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/ParameterInclude.java?view=diff&r1=154536&r2=154537
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/ParameterInclude.java (original)
+++ webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/ParameterInclude.java Sun Feb 20 09:56:49 2005
@@ -1,23 +1,39 @@
-/*
- * 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.axis.description;
-
-public interface ParameterInclude {
- //parameters
- public void addParameter(Parameter param);
-
- public Parameter getParameter(String name);
-}
+/*
+ * 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.axis.description;
+
+/**
+ * Interface ParameterInclude
+ */
+public interface ParameterInclude {
+
+ // parameters
+
+ /**
+ * Method addParameter
+ *
+ * @param param
+ */
+ public void addParameter(Parameter param);
+
+ /**
+ * Method getParameter
+ *
+ * @param name
+ * @return
+ */
+ public Parameter getParameter(String name);
+}
Modified: webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/ParameterIncludeImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/ParameterIncludeImpl.java?view=diff&r1=154536&r2=154537
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/ParameterIncludeImpl.java (original)
+++ webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/ParameterIncludeImpl.java Sun Feb 20 09:56:49 2005
@@ -1,36 +1,56 @@
-/*
- * 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.axis.description;
-
-import java.util.HashMap;
-
-public class ParameterIncludeImpl implements ParameterInclude {
- protected final HashMap parmeters;
-
- public ParameterIncludeImpl() {
- parmeters = new HashMap();
- }
-
- public void addParameter(Parameter param) {
- if (param != null) {
- parmeters.put(param.getName(), param);
- }
- }
-
- public Parameter getParameter(String name) {
- return (Parameter) parmeters.get(name);
- }
-}
+/*
+ * 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.axis.description;
+
+import java.util.HashMap;
+
+/**
+ * Class ParameterIncludeImpl
+ */
+public class ParameterIncludeImpl implements ParameterInclude {
+ /**
+ * Field parmeters
+ */
+ protected final HashMap parmeters;
+
+ /**
+ * Constructor ParameterIncludeImpl
+ */
+ public ParameterIncludeImpl() {
+ parmeters = new HashMap();
+ }
+
+ /**
+ * Method addParameter
+ *
+ * @param param
+ */
+ public void addParameter(Parameter param) {
+ if (param != null) {
+ parmeters.put(param.getName(), param);
+ }
+ }
+
+ /**
+ * Method getParameter
+ *
+ * @param name
+ * @return
+ */
+ public Parameter getParameter(String name) {
+ return (Parameter) parmeters.get(name);
+ }
+}
Modified: webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/PhaseRule.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/PhaseRule.java?view=diff&r1=154536&r2=154537
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/PhaseRule.java (original)
+++ webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/PhaseRule.java Sun Feb 20 09:56:49 2005
@@ -1,75 +1,150 @@
-/*
- * 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.axis.description;
-
-public class PhaseRule {
- //can be either name of phase or handler
- private String before;
- //can be either name of phase or handler
- private String after;
-
- private String phaseName;
- private boolean phaseFirst;
- private boolean phaseLast;
-
- public PhaseRule() {
- this.before = "";
- this.after = "";
- this.phaseName = "";
- }
-
- public String getBefore() {
- return before;
- }
-
- public void setBefore(String before) {
- this.before = before;
- }
-
- public String getAfter() {
- return after;
- }
-
- public void setAfter(String after) {
- this.after = after;
- }
-
- public String getPhaseName() {
- return phaseName;
- }
-
- public void setPhaseName(String phaseName) {
- this.phaseName = phaseName;
- }
-
- public boolean isPhaseFirst() {
- return phaseFirst;
- }
-
- public void setPhaseFirst(boolean phaseFirst) {
- this.phaseFirst = phaseFirst;
- }
-
- public boolean isPhaseLast() {
- return phaseLast;
- }
-
- public void setPhaseLast(boolean phaseLast) {
- this.phaseLast = phaseLast;
- }
-
-
-}
+/*
+ * 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.axis.description;
+
+/**
+ * Class PhaseRule
+ */
+public class PhaseRule {
+
+ // can be either name of phase or handler
+
+ /**
+ * Field before
+ */
+ private String before;
+
+ // can be either name of phase or handler
+
+ /**
+ * Field after
+ */
+ private String after;
+
+ /**
+ * Field phaseName
+ */
+ private String phaseName;
+
+ /**
+ * Field phaseFirst
+ */
+ private boolean phaseFirst;
+
+ /**
+ * Field phaseLast
+ */
+ private boolean phaseLast;
+
+ /**
+ * Constructor PhaseRule
+ */
+ public PhaseRule() {
+ this.before = "";
+ this.after = "";
+ this.phaseName = "";
+ }
+
+ /**
+ * Method getBefore
+ *
+ * @return
+ */
+ public String getBefore() {
+ return before;
+ }
+
+ /**
+ * Method setBefore
+ *
+ * @param before
+ */
+ public void setBefore(String before) {
+ this.before = before;
+ }
+
+ /**
+ * Method getAfter
+ *
+ * @return
+ */
+ public String getAfter() {
+ return after;
+ }
+
+ /**
+ * Method setAfter
+ *
+ * @param after
+ */
+ public void setAfter(String after) {
+ this.after = after;
+ }
+
+ /**
+ * Method getPhaseName
+ *
+ * @return
+ */
+ public String getPhaseName() {
+ return phaseName;
+ }
+
+ /**
+ * Method setPhaseName
+ *
+ * @param phaseName
+ */
+ public void setPhaseName(String phaseName) {
+ this.phaseName = phaseName;
+ }
+
+ /**
+ * Method isPhaseFirst
+ *
+ * @return
+ */
+ public boolean isPhaseFirst() {
+ return phaseFirst;
+ }
+
+ /**
+ * Method setPhaseFirst
+ *
+ * @param phaseFirst
+ */
+ public void setPhaseFirst(boolean phaseFirst) {
+ this.phaseFirst = phaseFirst;
+ }
+
+ /**
+ * Method isPhaseLast
+ *
+ * @return
+ */
+ public boolean isPhaseLast() {
+ return phaseLast;
+ }
+
+ /**
+ * Method setPhaseLast
+ *
+ * @param phaseLast
+ */
+ public void setPhaseLast(boolean phaseLast) {
+ this.phaseLast = phaseLast;
+ }
+}
Modified: webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/PhasesInclude.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/PhasesInclude.java?view=diff&r1=154536&r2=154537
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/PhasesInclude.java (original)
+++ webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/PhasesInclude.java Sun Feb 20 09:56:49 2005
@@ -1,34 +1,45 @@
-/*
- * 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.axis.description;
-
-import org.apache.axis.engine.AxisFault;
-
-import java.util.ArrayList;
-
-public interface PhasesInclude {
- /**
- * When the Phases are resolved they are added to the EngineRegistry as phases at deploy time.
- * At the runtime they are used to create the ExecutionChain at the runtime whic resides in the
- * MessageContext.
- *
- * @param flow
- * @return
- */
- public ArrayList getPhases(int flow) throws AxisFault;
-
- public void setPhases(ArrayList phases, int flow) throws AxisFault;
-}
+/*
+ * 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.axis.description;
+
+import org.apache.axis.engine.AxisFault;
+
+import java.util.ArrayList;
+
+/**
+ * Interface PhasesInclude
+ */
+public interface PhasesInclude {
+ /**
+ * When the Phases are resolved they are added to the EngineRegistry as phases at deploy time.
+ * At the runtime they are used to create the ExecutionChain at the runtime whic resides in the
+ * MessageContext.
+ *
+ * @param flow
+ * @return
+ * @throws AxisFault
+ */
+ public ArrayList getPhases(int flow) throws AxisFault;
+
+ /**
+ * Method setPhases
+ *
+ * @param phases
+ * @param flow
+ * @throws AxisFault
+ */
+ public void setPhases(ArrayList phases, int flow) throws AxisFault;
+}
Modified: webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/PhasesIncludeImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/PhasesIncludeImpl.java?view=diff&r1=154536&r2=154537
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/PhasesIncludeImpl.java (original)
+++ webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/PhasesIncludeImpl.java Sun Feb 20 09:56:49 2005
@@ -1,55 +1,79 @@
-/*
- * 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.axis.description;
-
-import org.apache.axis.engine.AxisFault;
-import org.apache.axis.engine.EngineRegistry;
-
-import java.util.ArrayList;
-
-/**
- * Util class to implements the Phases include with delegation
- */
-public class PhasesIncludeImpl implements PhasesInclude {
- private ArrayList inflow;
- private ArrayList outflow;
- private ArrayList faultflow;
-
- public ArrayList getPhases(int flow) throws AxisFault {
- if (flow == EngineRegistry.INFLOW) {
- return inflow;
- } else if (flow == EngineRegistry.OUTFLOW) {
- return outflow;
- } else if (flow == EngineRegistry.FAULTFLOW) {
- return faultflow;
- } else {
- throw new AxisFault("Unknown type flow ");
- }
-
- }
-
- public void setPhases(ArrayList phases, int flow) throws AxisFault {
- if (flow == EngineRegistry.INFLOW) {
- inflow = phases;
- } else if (flow == EngineRegistry.OUTFLOW) {
- outflow = phases;
- } else if (flow == EngineRegistry.FAULTFLOW) {
- faultflow = phases;
- } else {
- throw new AxisFault("Unknown type flow ");
- }
- }
-}
+/*
+ * 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.axis.description;
+
+import org.apache.axis.engine.AxisFault;
+import org.apache.axis.engine.EngineRegistry;
+
+import java.util.ArrayList;
+
+/**
+ * Util class to implements the Phases include with delegation
+ */
+public class PhasesIncludeImpl implements PhasesInclude {
+ /**
+ * Field inflow
+ */
+ private ArrayList inflow;
+
+ /**
+ * Field outflow
+ */
+ private ArrayList outflow;
+
+ /**
+ * Field faultflow
+ */
+ private ArrayList faultflow;
+
+ /**
+ * Method getPhases
+ *
+ * @param flow
+ * @return
+ * @throws AxisFault
+ */
+ public ArrayList getPhases(int flow) throws AxisFault {
+ if (flow == EngineRegistry.INFLOW) {
+ return inflow;
+ } else if (flow == EngineRegistry.OUTFLOW) {
+ return outflow;
+ } else if (flow == EngineRegistry.FAULTFLOW) {
+ return faultflow;
+ } else {
+ throw new AxisFault("Unknown type flow ");
+ }
+ }
+
+ /**
+ * Method setPhases
+ *
+ * @param phases
+ * @param flow
+ * @throws AxisFault
+ */
+ public void setPhases(ArrayList phases, int flow) throws AxisFault {
+ if (flow == EngineRegistry.INFLOW) {
+ inflow = phases;
+ } else if (flow == EngineRegistry.OUTFLOW) {
+ outflow = phases;
+ } else if (flow == EngineRegistry.FAULTFLOW) {
+ faultflow = phases;
+ } else {
+ throw new AxisFault("Unknown type flow ");
+ }
+ }
+}
Modified: webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/SimpleAxisOperationImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/SimpleAxisOperationImpl.java?view=diff&r1=154536&r2=154537
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/SimpleAxisOperationImpl.java (original)
+++ webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/description/SimpleAxisOperationImpl.java Sun Feb 20 09:56:49 2005
@@ -1,236 +1,254 @@
-/*
- * 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.axis.description;
-
-import org.apache.wsdl.MessageReference;
-import org.apache.wsdl.WSDLFeature;
-import org.apache.wsdl.WSDLOperation;
-import org.apache.wsdl.WSDLProperty;
-import org.apache.wsdl.impl.WSDLOperationImpl;
-
-import javax.xml.namespace.QName;
-import java.util.HashMap;
-import java.util.List;
-
-public class SimpleAxisOperationImpl implements AxisOperation {
- protected final WSDLOperation wsdlOperation;
- protected final ParameterInclude parameters;
-
- /**
- *
- */
- public SimpleAxisOperationImpl() {
- wsdlOperation = new WSDLOperationImpl();
- parameters = new ParameterIncludeImpl();
- }
-
- public SimpleAxisOperationImpl(QName name) {
- wsdlOperation = new WSDLOperationImpl();
- wsdlOperation.setName(name);
- parameters = new ParameterIncludeImpl();
- }
-
- /**
- * @param param
- */
- public void addParameter(Parameter param) {
- parameters.addParameter(param);
- }
-
- /**
- * @param name
- * @return
- */
- public Parameter getParameter(String name) {
- return parameters.getParameter(name);
- }
-
- /**
- * @param feature
- */
- public void addFeature(WSDLFeature feature) {
- wsdlOperation.addFeature(feature);
- }
-
- /**
- * @param wsdlProperty
- */
- public void addProperty(WSDLProperty wsdlProperty) {
- wsdlOperation.addProperty(wsdlProperty);
- }
-
- /**
- * @return
- */
- public HashMap getComponentProperties() {
- return wsdlOperation.getComponentProperties();
- }
-
- /**
- * @param key
- * @return
- */
- public Object getComponentProperty(Object key) {
- return wsdlOperation.getComponentProperty(key);
- }
-
- /**
- * @return
- */
- public List getFeatures() {
- return wsdlOperation.getFeatures();
- }
-
- /**
- * @return
- */
- public List getInfaults() {
- return wsdlOperation.getInfaults();
- }
-
- /**
- * @return
- */
- public MessageReference getInputMessage() {
- return wsdlOperation.getInputMessage();
- }
-
- /**
- * @return
- */
- public String getMessageExchangePattern() {
- return wsdlOperation.getMessageExchangePattern();
- }
-
- /**
- * @return
- */
- public QName getName() {
- return wsdlOperation.getName();
- }
-
- /**
- * @return
- */
- public List getOutfaults() {
- return wsdlOperation.getOutfaults();
- }
-
- /**
- * @return
- */
- public MessageReference getOutputMessage() {
- return wsdlOperation.getOutputMessage();
- }
-
- /**
- * @return
- */
- public List getProperties() {
- return wsdlOperation.getProperties();
- }
-
- /**
- * @return
- */
- public String getStyle() {
- return wsdlOperation.getStyle();
- }
-
- /**
- * @return
- */
- public String getTargetnemespace() {
- return wsdlOperation.getTargetnemespace();
- }
-
- /**
- * @return
- */
- public boolean isSafe() {
- return wsdlOperation.isSafe();
- }
-
- /**
- * @param properties
- */
- public void setComponentProperties(HashMap properties) {
- wsdlOperation.setComponentProperties(properties);
- }
-
- public void setMessageExchangePattern(String messageExchangePattern) {
- wsdlOperation.setMessageExchangePattern(messageExchangePattern);
- }
-
- /**
- * @param key
- * @param obj
- */
- public void setComponentProperty(Object key, Object obj) {
- wsdlOperation.setComponentProperty(key, obj);
- }
-
- /**
- * @param infaults
- */
- public void setInfaults(List infaults) {
- wsdlOperation.setInfaults(infaults);
- }
-
- /**
- * @param inputMessage
- */
- public void setInputMessage(MessageReference inputMessage) {
- wsdlOperation.setInputMessage(inputMessage);
- }
-
- /**
- * @param name
- */
- public void setName(QName name) {
- wsdlOperation.setName(name);
- }
-
- /**
- * @param outfaults
- */
- public void setOutfaults(List outfaults) {
- wsdlOperation.setOutfaults(outfaults);
- }
-
- /**
- * @param outputMessage
- */
- public void setOutputMessage(MessageReference outputMessage) {
- wsdlOperation.setOutputMessage(outputMessage);
- }
-
- /**
- * @param safe
- */
- public void setSafety(boolean safe) {
- wsdlOperation.setSafety(safe);
- }
-
- /**
- * @param style
- */
- public void setStyle(String style) {
- wsdlOperation.setStyle(style);
- }
-
-
-}
+/*
+ * 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.axis.description;
+
+import org.apache.wsdl.MessageReference;
+import org.apache.wsdl.WSDLFeature;
+import org.apache.wsdl.WSDLOperation;
+import org.apache.wsdl.WSDLProperty;
+import org.apache.wsdl.impl.WSDLOperationImpl;
+
+import javax.xml.namespace.QName;
+import java.util.HashMap;
+import java.util.List;
+
+/**
+ * Class SimpleAxisOperationImpl
+ */
+public class SimpleAxisOperationImpl implements AxisOperation {
+ /**
+ * Field wsdlOperation
+ */
+ protected final WSDLOperation wsdlOperation;
+
+ /**
+ * Field parameters
+ */
+ protected final ParameterInclude parameters;
+
+ /**
+ *
+ */
+ public SimpleAxisOperationImpl() {
+ wsdlOperation = new WSDLOperationImpl();
+ parameters = new ParameterIncludeImpl();
+ }
+
+ /**
+ * Constructor SimpleAxisOperationImpl
+ *
+ * @param name
+ */
+ public SimpleAxisOperationImpl(QName name) {
+ wsdlOperation = new WSDLOperationImpl();
+ wsdlOperation.setName(name);
+ parameters = new ParameterIncludeImpl();
+ }
+
+ /**
+ * @param param
+ */
+ public void addParameter(Parameter param) {
+ parameters.addParameter(param);
+ }
+
+ /**
+ * @param name
+ * @return
+ */
+ public Parameter getParameter(String name) {
+ return parameters.getParameter(name);
+ }
+
+ /**
+ * @param feature
+ */
+ public void addFeature(WSDLFeature feature) {
+ wsdlOperation.addFeature(feature);
+ }
+
+ /**
+ * @param wsdlProperty
+ */
+ public void addProperty(WSDLProperty wsdlProperty) {
+ wsdlOperation.addProperty(wsdlProperty);
+ }
+
+ /**
+ * @return
+ */
+ public HashMap getComponentProperties() {
+ return wsdlOperation.getComponentProperties();
+ }
+
+ /**
+ * @param key
+ * @return
+ */
+ public Object getComponentProperty(Object key) {
+ return wsdlOperation.getComponentProperty(key);
+ }
+
+ /**
+ * @return
+ */
+ public List getFeatures() {
+ return wsdlOperation.getFeatures();
+ }
+
+ /**
+ * @return
+ */
+ public List getInfaults() {
+ return wsdlOperation.getInfaults();
+ }
+
+ /**
+ * @return
+ */
+ public MessageReference getInputMessage() {
+ return wsdlOperation.getInputMessage();
+ }
+
+ /**
+ * @return
+ */
+ public String getMessageExchangePattern() {
+ return wsdlOperation.getMessageExchangePattern();
+ }
+
+ /**
+ * @return
+ */
+ public QName getName() {
+ return wsdlOperation.getName();
+ }
+
+ /**
+ * @return
+ */
+ public List getOutfaults() {
+ return wsdlOperation.getOutfaults();
+ }
+
+ /**
+ * @return
+ */
+ public MessageReference getOutputMessage() {
+ return wsdlOperation.getOutputMessage();
+ }
+
+ /**
+ * @return
+ */
+ public List getProperties() {
+ return wsdlOperation.getProperties();
+ }
+
+ /**
+ * @return
+ */
+ public String getStyle() {
+ return wsdlOperation.getStyle();
+ }
+
+ /**
+ * @return
+ */
+ public String getTargetnemespace() {
+ return wsdlOperation.getTargetnemespace();
+ }
+
+ /**
+ * @return
+ */
+ public boolean isSafe() {
+ return wsdlOperation.isSafe();
+ }
+
+ /**
+ * @param properties
+ */
+ public void setComponentProperties(HashMap properties) {
+ wsdlOperation.setComponentProperties(properties);
+ }
+
+ /**
+ * Method setMessageExchangePattern
+ *
+ * @param messageExchangePattern
+ */
+ public void setMessageExchangePattern(String messageExchangePattern) {
+ wsdlOperation.setMessageExchangePattern(messageExchangePattern);
+ }
+
+ /**
+ * @param key
+ * @param obj
+ */
+ public void setComponentProperty(Object key, Object obj) {
+ wsdlOperation.setComponentProperty(key, obj);
+ }
+
+ /**
+ * @param infaults
+ */
+ public void setInfaults(List infaults) {
+ wsdlOperation.setInfaults(infaults);
+ }
+
+ /**
+ * @param inputMessage
+ */
+ public void setInputMessage(MessageReference inputMessage) {
+ wsdlOperation.setInputMessage(inputMessage);
+ }
+
+ /**
+ * @param name
+ */
+ public void setName(QName name) {
+ wsdlOperation.setName(name);
+ }
+
+ /**
+ * @param outfaults
+ */
+ public void setOutfaults(List outfaults) {
+ wsdlOperation.setOutfaults(outfaults);
+ }
+
+ /**
+ * @param outputMessage
+ */
+ public void setOutputMessage(MessageReference outputMessage) {
+ wsdlOperation.setOutputMessage(outputMessage);
+ }
+
+ /**
+ * @param safe
+ */
+ public void setSafety(boolean safe) {
+ wsdlOperation.setSafety(safe);
+ }
+
+ /**
+ * @param style
+ */
+ public void setStyle(String style) {
+ wsdlOperation.setStyle(style);
+ }
+}
Modified: webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/engine/AxisEngine.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/engine/AxisEngine.java?view=diff&r1=154536&r2=154537
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/engine/AxisEngine.java (original)
+++ webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/engine/AxisEngine.java Sun Feb 20 09:56:49 2005
@@ -1,12 +1,12 @@
/*
* 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.
@@ -30,9 +30,21 @@
* Methods are the basic operations the Sync, Async messageing are build on top.
*/
public class AxisEngine {
+ /**
+ * Field log
+ */
private Log log = LogFactory.getLog(getClass());
+
+ /**
+ * Field registry
+ */
private final EngineRegistry registry;
+ /**
+ * Constructor AxisEngine
+ *
+ * @param registry
+ */
public AxisEngine(EngineRegistry registry) {
log.info("Axis Engine Started");
this.registry = registry;
@@ -69,9 +81,10 @@
*/
public void receive(MessageContext context) throws AxisFault {
try {
- // org.TimeRecorder.START = System.currentTimeMillis();
+
log.info("starting the out flow");
- //let us always start with a fresh EC
+
+ // let us always start with a fresh EC
context.setExecutionChain(new ExecutionChain());
ExecutionChain chain = context.getExecutionChain();
@@ -81,22 +94,21 @@
log.info("Using the transport" + transport.getName());
chain.addPhases(transport.getPhases(EngineRegistry.INFLOW));
}
- //Add the phases that are are at Global scope
+
+ // Add the phases that are are at Global scope
AxisGlobal global =
context.getGlobalContext().getRegistry().getGlobal();
chain.addPhases(global.getPhases(EngineRegistry.INFLOW));
- //create a Dispatch Phase and add it to the Execution Chain
+ // create a Dispatch Phase and add it to the Execution Chain
Dispatcher dispatcher = new Dispatcher();
Phase dispatchPhase = new Phase("DispatchPhase");
dispatchPhase.addHandler(dispatcher);
chain.addPhase(dispatchPhase);
- //Start rolling the Service Handlers will,be added by the Dispatcher
+ // Start rolling the Service Handlers will,be added by the Dispatcher
chain.invoke(context);
log.info("ending the out flow");
- // org.TimeRecorder.END = System.currentTimeMillis();
- // org.TimeRecorder.dump();
} catch (Throwable e) {
handleFault(context, e);
}
@@ -118,19 +130,23 @@
if (serverSide && !context.isProcessingFault()) {
context.setProcessingFault(true);
- //create a SOAP envelope with the Fault
+ // create a SOAP envelope with the Fault
SOAPEnvelope envelope =
OMFactory.newInstance().getDefaultEnvelope();
- //TODO do we need to set old Headers back?
+
+ // TODO do we need to set old Headers back?
envelope.getBody().addFault(new AxisFault(e.getMessage(), e));
context.setEnvelope(envelope);
- //send the error
+
+ // send the error
executeOutFlow(context, EngineRegistry.FAULTFLOW);
} else if (!serverSide) {
- //if at the client side throw the exception
+
+ // if at the client side throw the exception
throw new AxisFault("", e);
} else {
- //TODO log and exit
+
+ // TODO log and exit
log.error("Error in fault flow", e);
}
}
@@ -151,15 +167,18 @@
ExecutionChain chain = context.getExecutionChain();
AxisService service = context.getService();
if (service != null) {
- //what are we suppose to do in the client side
- //how the client side handlers are deployed ??? this is a hack and no client side handlers
+
+ // what are we suppose to do in the client side
+ // how the client side handlers are deployed ??? this is a hack and no client side handlers
chain.addPhases(service.getPhases(flow));
} else {
if (context.isServerSide() && !context.isProcessingFault()) {
- throw new AxisFault("in Server Side there must be service object");
+ throw new AxisFault(
+ "in Server Side there must be service object");
}
}
- //Add the phases that are are at Global scope
+
+ // Add the phases that are are at Global scope
AxisGlobal global =
context.getGlobalContext().getRegistry().getGlobal();
chain.addPhases(global.getPhases(flow));
@@ -172,7 +191,8 @@
Phase sendPhase = new Phase(Phase.SENDING_PHASE);
sendPhase.addHandler(TransportSenderLocator.locate(context));
chain.addPhase(sendPhase);
- //startet rolling
+
+ // startet rolling
chain.invoke(context);
} catch (AxisFault error) {
handleFault(context, error);
Modified: webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/engine/AxisFault.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/engine/AxisFault.java?view=diff&r1=154536&r2=154537
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/engine/AxisFault.java (original)
+++ webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/engine/AxisFault.java Sun Feb 20 09:56:49 2005
@@ -1,12 +1,12 @@
/*
* 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.
@@ -30,9 +30,10 @@
*/
public class AxisFault extends java.rmi.RemoteException {
/**
- *
+ *
*/
public AxisFault() {
+
// TODO Auto-generated constructor stub
}
@@ -41,6 +42,7 @@
*/
public AxisFault(String arg0) {
super(arg0);
+
// TODO Auto-generated constructor stub
}
@@ -50,6 +52,7 @@
*/
public AxisFault(String arg0, Throwable arg1) {
super(arg0, arg1);
+
// TODO Auto-generated constructor stub
}
@@ -75,6 +78,4 @@
}
return new AxisFault(e.getMessage(), e);
}
-
-
}