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 gd...@apache.org on 2007/07/26 18:27:24 UTC
svn commit: r559872 - in
/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2:
description/AxisService.java engine/DispatchPhase.java
Author: gdaniels
Date: Thu Jul 26 09:27:15 2007
New Revision: 559872
URL: http://svn.apache.org/viewvc?view=rev&rev=559872
Log:
Add JavaDoc and a constant for SUPPORT_SINGLE_OP
Modified:
webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService.java
webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/DispatchPhase.java
Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService.java?view=diff&rev=559872&r1=559871&r2=559872
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService.java Thu Jul 26 09:27:15 2007
@@ -86,6 +86,18 @@
*/
public class AxisService extends AxisDescription {
+ //////////////////////////////////////////////////////////////////
+ // Standard Parameter names
+
+ /**
+ * If this param is true, and the service has exactly one AxisOperation,
+ * normal operation dispatch (via URI/soapAction/etc) will not be necessary,
+ * and we'll just default to funneling all messages to that op. This is
+ * useful for passthrough/ESB/embedded applications.
+ */
+ public static final String SUPPORT_SINGLE_OP = "supportSingleOperation";
+ //////////////////////////////////////////////////////////////////
+
public static final String IMPORT_TAG = "import";
public static final String INCLUDE_TAG = "include";
public static final String SCHEMA_LOCATION = "schemaLocation";
Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/DispatchPhase.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/DispatchPhase.java?view=diff&rev=559872&r1=559871&r2=559872
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/DispatchPhase.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/DispatchPhase.java Thu Jul 26 09:27:15 2007
@@ -31,7 +31,6 @@
import org.apache.axis2.description.AxisOperation;
import org.apache.axis2.description.AxisService;
import org.apache.axis2.description.AxisServiceGroup;
-import org.apache.axis2.description.WSDL2Constants;
import org.apache.axis2.i18n.Messages;
import org.apache.axis2.transport.RequestResponseTransport;
import org.apache.axis2.transport.TransportListener;
@@ -68,7 +67,7 @@
AxisOperation operation = msgContext.getAxisOperation();
// If we're configured to do so, check the service for a single op...
if (operation == null &&
- JavaUtils.isTrue(service.getParameterValue("supportSingleOperation"))) {
+ JavaUtils.isTrue(service.getParameterValue(AxisService.SUPPORT_SINGLE_OP))) {
Iterator ops = service.getOperations();
// If there's exactly one, that's the one we want. If there's more, forget it.
if (ops.hasNext()) {
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org