You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-commits@ws.apache.org by da...@apache.org on 2007/01/09 19:14:29 UTC

svn commit: r494506 - in /webservices/muse/trunk/modules/muse-wsrf-impl/src/org/apache/muse/ws/resource/sg: impl/AddRequest.java remote/ServiceGroupClient.java

Author: danj
Date: Tue Jan  9 10:14:28 2007
New Revision: 494506

URL: http://svn.apache.org/viewvc?view=rev&rev=494506
Log:
Updated SG client so that an empty content element is used for add(), thus avoiding any attempt to contact the 
member resource and get the content elements. People can still get this behavior by using the getMultipleRP() 
method in the client for the member resource.

Modified:
    webservices/muse/trunk/modules/muse-wsrf-impl/src/org/apache/muse/ws/resource/sg/impl/AddRequest.java
    webservices/muse/trunk/modules/muse-wsrf-impl/src/org/apache/muse/ws/resource/sg/remote/ServiceGroupClient.java

Modified: webservices/muse/trunk/modules/muse-wsrf-impl/src/org/apache/muse/ws/resource/sg/impl/AddRequest.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsrf-impl/src/org/apache/muse/ws/resource/sg/impl/AddRequest.java?view=diff&rev=494506&r1=494505&r2=494506
==============================================================================
--- webservices/muse/trunk/modules/muse-wsrf-impl/src/org/apache/muse/ws/resource/sg/impl/AddRequest.java (original)
+++ webservices/muse/trunk/modules/muse-wsrf-impl/src/org/apache/muse/ws/resource/sg/impl/AddRequest.java Tue Jan  9 10:14:28 2007
@@ -93,11 +93,17 @@
     
     public AddRequest(EndpointReference memberEPR, Date termination)
     {
+        this(memberEPR, termination, null);
+    }
+    
+    public AddRequest(EndpointReference memberEPR, Date termination, Element content)
+    {
         if (memberEPR == null)
             throw new NullPointerException(_MESSAGES.get("NullMemberEPR"));
         
         _memberEPR = memberEPR;
         _termination = termination;
+        _content = content;
     }
     
     public Element getContent()

Modified: webservices/muse/trunk/modules/muse-wsrf-impl/src/org/apache/muse/ws/resource/sg/remote/ServiceGroupClient.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsrf-impl/src/org/apache/muse/ws/resource/sg/remote/ServiceGroupClient.java?view=diff&rev=494506&r1=494505&r2=494506
==============================================================================
--- webservices/muse/trunk/modules/muse-wsrf-impl/src/org/apache/muse/ws/resource/sg/remote/ServiceGroupClient.java (original)
+++ webservices/muse/trunk/modules/muse-wsrf-impl/src/org/apache/muse/ws/resource/sg/remote/ServiceGroupClient.java Tue Jan  9 10:14:28 2007
@@ -77,8 +77,11 @@
     public WsResourceClient add(EndpointReference memberEPR, Date termination)
         throws SoapFault
     {
-        AddRequest add = new AddRequest(memberEPR, termination);
+        Element emptyContent = XmlUtils.createElement(WssgConstants.CONTENT_QNAME);
+        AddRequest add = new AddRequest(memberEPR, termination, emptyContent);
+        
         Element responseXML = invoke(WssgConstants.ADD_URI, add.toXML());
+        
         AddResponse response = new AddResponse(responseXML);
         return response.getEntryClient();
     }



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