axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From az...@apache.org
Subject svn commit: r421538 - in /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2: context/ description/ engine/ transport/njms/
Date Thu, 13 Jul 2006 08:16:28 GMT
Author: azeez
Date: Thu Jul 13 01:16:27 2006
New Revision: 421538

URL: http://svn.apache.org/viewvc?rev=421538&view=rev
Log:
1. Set enableAllTransports = false; in the case of adding/removing transports
2. s/enableAllTransport/enableAllTransports


Modified:
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/ServiceContext.java
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/AxisService.java
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/engine/DispatchPhase.java
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/engine/ListenerManager.java
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/njms/JMSListener.java
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/njms/JMSUtils.java

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/ServiceContext.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/ServiceContext.java?rev=421538&r1=421537&r2=421538&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/ServiceContext.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/ServiceContext.java
Thu Jul 13 01:16:27 2006
@@ -76,7 +76,7 @@
      * @throws AxisFault
      */
     public EndpointReference getMyEPR(String transport) throws AxisFault {
-        axisService.isEnableAllTransport();
+        axisService.isEnableAllTransports();
         ConfigurationContext configctx = getConfigurationContext();
         if (configctx != null) {
             ListenerManager lm = configctx.getListenerManager();

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/AxisService.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/AxisService.java?rev=421538&r1=421537&r2=421538&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/AxisService.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/AxisService.java
Thu Jul 13 01:16:27 2006
@@ -117,7 +117,7 @@
     private String schematargetNamespacePrefix =
             Java2WSDLConstants.SCHEMA_NAMESPACE_PRFIX;
 
-    private boolean enableAllTransport = true;
+    private boolean enableAllTransports = true;
     private List exposedTransports = new ArrayList();
 
     /**
@@ -525,7 +525,7 @@
 
     private String[] getServiceEprs(String requestIP, ArrayList eprList) throws AxisFault
{
         AxisConfiguration axisConfig = getAxisConfiguration();
-        if (enableAllTransport) {
+        if (enableAllTransports) {
             Iterator transports = axisConfig.getTransportsIn().values().iterator();
             while (transports.hasNext()) {
                 TransportInDescription transportIn = (TransportInDescription) transports.next();
@@ -978,8 +978,8 @@
         return null;
     }
 
-    public boolean isEnableAllTransport() {
-        return enableAllTransport;
+    public boolean isEnableAllTransports() {
+        return enableAllTransports;
     }
 
     public List getExposedTransports() {
@@ -987,15 +987,17 @@
     }
 
     public void setExposedTransports(List transports) {
-        enableAllTransport = false;
+        enableAllTransports = false;
         this.exposedTransports = transports;
     }
 
     public void addExposedTransport(String transport) {
+        enableAllTransports = false;
         this.exposedTransports.add(transport);
     }
 
     public void removeExposedTransport(String transport) {
+        enableAllTransports = false;
         this.exposedTransports.remove(transport);
     }
 

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/engine/DispatchPhase.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/engine/DispatchPhase.java?rev=421538&r1=421537&r2=421538&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/engine/DispatchPhase.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/engine/DispatchPhase.java
Thu Jul 13 01:16:27 2006
@@ -77,7 +77,7 @@
      */
     private void validateTransport(MessageContext msgctx) throws AxisFault {
         AxisService service = msgctx.getAxisService();
-        if (service.isEnableAllTransport()) {
+        if (service.isEnableAllTransports()) {
             return;
         } else {
             List trs = service.getExposedTransports();

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/engine/ListenerManager.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/engine/ListenerManager.java?rev=421538&r1=421537&r2=421538&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/engine/ListenerManager.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/engine/ListenerManager.java
Thu Jul 13 01:16:27 2006
@@ -70,7 +70,7 @@
                 throw new AxisFault(Messages.getMessage(
                         "servicenotfoundinthesystem", serviceName));
             }
-            if (service.isEnableAllTransport()) {
+            if (service.isEnableAllTransports()) {
                 Iterator itr_st = startedTransports.values().iterator();
                 if (itr_st.hasNext()) {
                     TransportListener transportListener = (TransportListener) itr_st.next();

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/njms/JMSListener.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/njms/JMSListener.java?rev=421538&r1=421537&r2=421538&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/njms/JMSListener.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/njms/JMSListener.java
Thu Jul 13 01:16:27 2006
@@ -117,7 +117,7 @@
 
         while (services.hasNext()) {
             AxisService service = (AxisService) services.next();
-            boolean process = service.isEnableAllTransport();
+            boolean process = service.isEnableAllTransports();
             if (JMSUtils.isJMSService(service)) {
                 processService(service);
             }

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/njms/JMSUtils.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/njms/JMSUtils.java?rev=421538&r1=421537&r2=421538&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/njms/JMSUtils.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/njms/JMSUtils.java
Thu Jul 13 01:16:27 2006
@@ -58,7 +58,7 @@
      * @return true if JMS should be enabled
      */
     public static boolean isJMSService(AxisService service) {
-        boolean process = service.isEnableAllTransport();
+        boolean process = service.isEnableAllTransports();
         if (process) {
             return true;
 



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message