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/09/02 19:07:33 UTC
svn commit: r572036 -
/webservices/muse/trunk/modules/muse-wsrf-impl/src/org/apache/muse/ws/resource/remote/WsResourceClient.java
Author: danj
Date: Sun Sep 2 10:07:26 2007
New Revision: 572036
URL: http://svn.apache.org/viewvc?rev=572036&view=rev
Log:
Added WsResourceClient.getTerminationTime() convenience method as part of MUSE-263.
Modified:
webservices/muse/trunk/modules/muse-wsrf-impl/src/org/apache/muse/ws/resource/remote/WsResourceClient.java
Modified: webservices/muse/trunk/modules/muse-wsrf-impl/src/org/apache/muse/ws/resource/remote/WsResourceClient.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsrf-impl/src/org/apache/muse/ws/resource/remote/WsResourceClient.java?rev=572036&r1=572035&r2=572036&view=diff
==============================================================================
--- webservices/muse/trunk/modules/muse-wsrf-impl/src/org/apache/muse/ws/resource/remote/WsResourceClient.java (original)
+++ webservices/muse/trunk/modules/muse-wsrf-impl/src/org/apache/muse/ws/resource/remote/WsResourceClient.java Sun Sep 2 10:07:26 2007
@@ -147,6 +147,13 @@
return XmlUtils.getFirstElement(response);
}
+ public Date getTerminationTime()
+ throws SoapFault
+ {
+ Date[] values = (Date[])getPropertyAsObject(WsrlConstants.TERMINATION_TIME_QNAME, Date.class);
+ return values.length == 0 ? null : values[0];
+ }
+
public void insertResourceProperty(QName qname, Object[] values)
throws SoapFault
{
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-commits-help@ws.apache.org