geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r531688 - in /geronimo/server/trunk/modules/geronimo-jaxws/src/main/java/org/apache/geronimo/jaxws/client: PortMethodFilter.java PortMethodInterceptor.java
Date Tue, 24 Apr 2007 02:32:43 GMT
Author: gawor
Date: Mon Apr 23 19:32:42 2007
New Revision: 531688

URL: http://svn.apache.org/viewvc?view=rev&rev=531688
Log:
overwrite endpoint address for createDispatch methods as well

Modified:
    geronimo/server/trunk/modules/geronimo-jaxws/src/main/java/org/apache/geronimo/jaxws/client/PortMethodFilter.java
    geronimo/server/trunk/modules/geronimo-jaxws/src/main/java/org/apache/geronimo/jaxws/client/PortMethodInterceptor.java

Modified: geronimo/server/trunk/modules/geronimo-jaxws/src/main/java/org/apache/geronimo/jaxws/client/PortMethodFilter.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-jaxws/src/main/java/org/apache/geronimo/jaxws/client/PortMethodFilter.java?view=diff&rev=531688&r1=531687&r2=531688
==============================================================================
--- geronimo/server/trunk/modules/geronimo-jaxws/src/main/java/org/apache/geronimo/jaxws/client/PortMethodFilter.java
(original)
+++ geronimo/server/trunk/modules/geronimo-jaxws/src/main/java/org/apache/geronimo/jaxws/client/PortMethodFilter.java
Mon Apr 23 19:32:42 2007
@@ -25,7 +25,9 @@
 public class PortMethodFilter implements CallbackFilter {
 
     public int accept(Method method) {
-        if (isGenericPortMethod(method) || isGeneratedPortMethod(method)) {
+        if (isGenericPortMethod(method) || 
+            isGeneratedPortMethod(method) || 
+            isCreateDispatchMethod(method)) {
             return 1; // use second method interceptor
         } else {
             return 0; // use first method interceptor
@@ -40,4 +42,7 @@
         return (method.getName().startsWith("get") && method.isAnnotationPresent(WebEndpoint.class));
     }
 
+    private boolean isCreateDispatchMethod(Method method) {
+        return (method.getName().equals("createDispatch"));
+    }
 }

Modified: geronimo/server/trunk/modules/geronimo-jaxws/src/main/java/org/apache/geronimo/jaxws/client/PortMethodInterceptor.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-jaxws/src/main/java/org/apache/geronimo/jaxws/client/PortMethodInterceptor.java?view=diff&rev=531688&r1=531687&r2=531688
==============================================================================
--- geronimo/server/trunk/modules/geronimo-jaxws/src/main/java/org/apache/geronimo/jaxws/client/PortMethodInterceptor.java
(original)
+++ geronimo/server/trunk/modules/geronimo-jaxws/src/main/java/org/apache/geronimo/jaxws/client/PortMethodInterceptor.java
Mon Apr 23 19:32:42 2007
@@ -68,6 +68,9 @@
             // it's a generated get<PortName>() method
             WebEndpoint endpoint = method.getAnnotation(WebEndpoint.class);
             setProperties((BindingProvider)proxy, endpoint.name());
+        } else if (method.getName().equals("createDispatch")) {
+            // it's one of createDispatch() methods
+            setProperties((BindingProvider)proxy, ((QName)arguments[0]).getLocalPart());
         }
                 
         return proxy;



Mime
View raw message