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 2006/07/12 19:32:15 UTC

svn commit: r421334 - /webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/schema/OpenPropertiesSchema.java

Author: danj
Date: Wed Jul 12 10:32:14 2006
New Revision: 421334

URL: http://svn.apache.org/viewvc?rev=421334&view=rev
Log:
Changed get/setCapability to throw UnsupportedOperationException, because users shouldn't be trying 
to assign properties to capabilities if they have no schema/open content on their WS-resource state 
model.

Modified:
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/schema/OpenPropertiesSchema.java

Modified: webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/schema/OpenPropertiesSchema.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/schema/OpenPropertiesSchema.java?rev=421334&r1=421333&r2=421334&view=diff
==============================================================================
--- webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/schema/OpenPropertiesSchema.java (original)
+++ webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/schema/OpenPropertiesSchema.java Wed Jul 12 10:32:14 2006
@@ -138,7 +138,7 @@
 
     public WsResourceCapability getCapability(QName property)
     {
-        return null;
+        throw new UnsupportedOperationException();
     }
 
     public boolean hasCapability(QName property)
@@ -148,8 +148,6 @@
 
     public void setCapability(QName property, WsResourceCapability capability)
     {
-        //
-        // no capability mapping is stored
-        //
+        throw new UnsupportedOperationException();
     }
 }



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