cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r825284 - in /cxf/trunk/rt: frontend/jaxws/src/main/java/org/apache/cxf/jaxws/support/JaxWsServiceFactoryBean.java transports/http/src/main/java/org/apache/cxf/transport/servlet/ServletController.java
Date Wed, 14 Oct 2009 21:10:00 GMT
Author: dkulp
Date: Wed Oct 14 21:09:59 2009
New Revision: 825284

URL: http://svn.apache.org/viewvc?rev=825284&view=rev
Log:
[CXF-2470] Mark the invoke operation as synthetic so it doesn't show in
the services list

Modified:
    cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/support/JaxWsServiceFactoryBean.java
    cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/ServletController.java

Modified: cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/support/JaxWsServiceFactoryBean.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/support/JaxWsServiceFactoryBean.java?rev=825284&r1=825283&r2=825284&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/support/JaxWsServiceFactoryBean.java
(original)
+++ cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/support/JaxWsServiceFactoryBean.java
Wed Oct 14 21:09:59 2009
@@ -328,6 +328,8 @@
                             mpi.setTypeQName(XMLSchemaQNames.XSD_ANY);
                         
                             BindingOperationInfo bo = new BindingOperationInfo(bind, op);
+                            op.setProperty("operation.is.synthetic", Boolean.TRUE);
+                            bo.setProperty("operation.is.synthetic", Boolean.TRUE);
                             bind.addOperation(bo);
                         }
                     }

Modified: cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/ServletController.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/ServletController.java?rev=825284&r1=825283&r2=825284&view=diff
==============================================================================
--- cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/ServletController.java
(original)
+++ cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/ServletController.java
Wed Oct 14 21:09:59 2009
@@ -246,7 +246,9 @@
                         + "</span>");
                 response.getWriter().write("<ul>");
                 for (OperationInfo oi : sd.getEndpointInfo().getInterface().getOperations())
{
-                    response.getWriter().write("<li>" + oi.getName().getLocalPart()
+ "</li>");
+                    if (oi.getProperty("operation.is.synthetic") != Boolean.TRUE) {
+                        response.getWriter().write("<li>" + oi.getName().getLocalPart()
+ "</li>");
+                    }
                 }
                 response.getWriter().write("</ul>");
                 response.getWriter().write("</td><td>");



Mime
View raw message