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/06/16 00:17:07 UTC

svn commit: r414694 [1/7] - in /webservices/muse/trunk/modules/muse-wsrf: ./ src-api/ src-api/org/ src-api/org/apache/ src-api/org/apache/muse/ src-api/org/apache/muse/ws/ src-api/org/apache/muse/ws/resource/ src-api/org/apache/muse/ws/resource/basefau...

Author: danj
Date: Thu Jun 15 15:16:59 2006
New Revision: 414694

URL: http://svn.apache.org/viewvc?rev=414694&view=rev
Log:
Changed directory structure of source code so that files 
are split into src-api and src-impl, with one Maven POM 
for each sub-project. This was required because Maven 
only generates one jar (build) per POM.

Added:
    webservices/muse/trunk/modules/muse-wsrf/pom-api.xml
    webservices/muse/trunk/modules/muse-wsrf/pom-impl.xml
    webservices/muse/trunk/modules/muse-wsrf/src-api/
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/WsResource.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/WsResourceCapability.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/WsResourceCapabilityProperties.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/WsrfConstants.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/basefaults/
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/basefaults/BaseFault.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/basefaults/WsbfConstants.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/basefaults/WsbfUtils.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/ext/
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/ext/WsrfExtConstants.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/ext/faults/
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/ext/faults/InvalidMessageFormatFault.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/ext/faults/ResourceInitializationFault.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/ext/faults/SerializationErrorFault.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/faults/
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/faults/ResourceUnavailableFault.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/faults/ResourceUnknownFault.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/lifetime/
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/lifetime/ImmediateTermination.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/lifetime/ScheduledTermination.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/lifetime/WsrlConstants.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/lifetime/faults/
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/lifetime/faults/ResourceNotDestroyedFault.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/lifetime/faults/TerminationTimeChangeRejectedFault.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/lifetime/faults/UnableToSetTerminationTimeFault.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/metadata/
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/metadata/MetadataDescriptor.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/metadata/OpenMetadataDescriptor.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/metadata/ResourcePropertiesMetadataValidation.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/metadata/RmdFileFilter.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/metadata/WsrmdConstants.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/metadata/faults/
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/metadata/faults/MetadataValidationErrorFault.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/ResourcePropertyCollection.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/WsrpConstants.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/get/
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/get/GetCapability.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/get/GetMultipleResourceProperties.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/get/GetResourceProperty.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/get/GetResourcePropertyDocument.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/get/ext/
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/get/ext/GetResourcePropertyExtensions.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/get/faults/
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/get/faults/InvalidResourcePropertyQNameFault.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/listeners/
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/listeners/AbstractChangeApprover.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/listeners/PropertyChangeApprover.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/listeners/PropertyChangeListener.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/listeners/PropertyReadListener.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/listeners/ResourcePropertyListeners.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/query/
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/query/QueryCapability.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/query/QueryExpression.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/query/QueryExpressionFactory.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/query/QueryResourceProperties.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/query/faults/
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/query/faults/InvalidQueryExpressionFault.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/query/faults/QueryEvaluationErrorFault.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/query/faults/UnknownQueryExpressionDialectFault.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/schema/
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/schema/OpenPropertiesSchema.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/schema/ResourcePropertiesSchema.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/schema/ResourcePropertiesSchemaValidation.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/schema/faults/
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/schema/faults/SchemaValidationErrorFault.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/set/
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/set/PutResourcePropertyDocument.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/set/SetCapability.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/set/SetOperationFactory.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/set/SetRequest.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/set/SetRequestComponent.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/set/SetResourceProperties.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/set/SetResourcePropertiesComponents.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/set/SetResourcePropertiesPermissions.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/set/ext/
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/set/ext/SetResourcePropertiesExtensions.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/set/faults/
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/set/faults/InvalidModificationFault.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/set/faults/SetResourcePropertyRequestFailedFault.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/properties/set/faults/UnableToModifyResourcePropertyFault.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/sg/
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/sg/Entry.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/sg/MembershipContentRule.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/sg/ServiceGroup.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/sg/ServiceGroupRegistration.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/sg/WssgConstants.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/sg/faults/
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/sg/faults/AddRefusedFault.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/sg/faults/ContentCreationFailedFault.java
    webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/sg/faults/UnsupportedMemberInterfaceFault.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/impl/
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/impl/AbstractWsResourceCapability.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/impl/Messages.properties
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/impl/SimpleWsResource.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/lifetime/
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/lifetime/impl/
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/lifetime/impl/Messages.properties
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/lifetime/impl/SetTerminationTime.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/lifetime/impl/SetTerminationTimeHandler.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/lifetime/impl/SetTerminationTimeResponse.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/lifetime/impl/SimpleImmediateTermination.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/lifetime/impl/SimpleScheduledTermination.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/metadata/
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/metadata/impl/
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/metadata/impl/ExternalChangeApprover.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/metadata/impl/InsertOnlyApprover.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/metadata/impl/Messages.properties
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/metadata/impl/PropertyMetadata.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/metadata/impl/ReadOnlyApprover.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/metadata/impl/SimpleMetadataDescriptor.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/metadata/impl/StaticValuesApprover.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/metadata/impl/ValidValuesApprover.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/properties/
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/properties/get/
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/properties/get/impl/
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/properties/get/impl/GetDocumentHandler.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/properties/get/impl/GetHandler.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/properties/get/impl/GetMultipleHandler.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/properties/get/impl/GetMultipleRequest.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/properties/get/impl/GetMultipleResponse.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/properties/get/impl/GetRequest.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/properties/get/impl/GetResponse.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/properties/get/impl/Messages.properties
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/properties/get/impl/SimpleGetCapability.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/properties/impl/
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/properties/impl/Messages.properties
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/properties/impl/SimpleResourcePropertyCollection.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/properties/impl/WsrpUtils.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/properties/query/
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/properties/query/impl/
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/properties/query/impl/Messages.properties
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/properties/query/impl/QueryHandler.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/properties/query/impl/QueryRequest.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/properties/query/impl/QueryResponse.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/properties/query/impl/SimpleQueryCapability.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/properties/query/impl/XPathQueryExpression.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/properties/query/impl/XPathQueryExpressionFactory.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/properties/schema/
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/properties/schema/impl/
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/properties/schema/impl/Messages.properties
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/properties/schema/impl/PropertySchemaDefinition.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/properties/schema/impl/SimpleResourcePropertiesSchema.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/properties/set/
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/properties/set/impl/
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/properties/set/impl/AbstractSetRequestComponent.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/properties/set/impl/DeleteRequest.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/properties/set/impl/InsertRequest.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/properties/set/impl/Messages.properties
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/properties/set/impl/SetHandler.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/properties/set/impl/SetResponse.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/properties/set/impl/SimpleSetCapability.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/properties/set/impl/SimpleSetOperationFactory.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/properties/set/impl/SimpleSetRequest.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/properties/set/impl/UpdateRequest.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/remote/
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/remote/Messages.properties
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/remote/WsResourceClient.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/sg/
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/sg/impl/
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/sg/impl/AddHandler.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/sg/impl/AddRequest.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/sg/impl/AddResponse.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/sg/impl/Messages.properties
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/sg/impl/SimpleEntry.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/sg/impl/SimpleMembershipContentRule.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/sg/impl/SimpleServiceGroup.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/sg/impl/SimpleServiceGroupRegistration.java
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/sg/remote/
    webservices/muse/trunk/modules/muse-wsrf/src-impl/org/apache/muse/ws/resource/sg/remote/ServiceGroupClient.java
Removed:
    webservices/muse/trunk/modules/muse-wsrf/src/

Added: webservices/muse/trunk/modules/muse-wsrf/pom-api.xml
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsrf/pom-api.xml?rev=414694&view=auto
==============================================================================
--- webservices/muse/trunk/modules/muse-wsrf/pom-api.xml (added)
+++ webservices/muse/trunk/modules/muse-wsrf/pom-api.xml Thu Jun 15 15:16:59 2006
@@ -0,0 +1,37 @@
+<?xml version="1.0"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" 
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>muse</groupId>
+  <artifactId>muse-wsrf-api</artifactId>
+  <packaging>jar</packaging>
+  <version>1.9.0-SNAPSHOT</version>
+  <name>Apache Muse - WS-ResourceFramework 1.2 API</name>
+  <url>http://ws.apache.org/muse</url>
+  <dependencies>
+    <dependency>
+      <groupId>muse</groupId>
+      <artifactId>muse-core</artifactId>
+      <version>1.9.0-SNAPSHOT</version>
+      <scope>compile</scope>
+    </dependency>
+    <dependency>
+      <groupId>muse</groupId>
+      <artifactId>muse-util-qname</artifactId>
+      <version>1.9.0-SNAPSHOT</version>
+      <scope>compile</scope>
+    </dependency>
+    <dependency>
+      <groupId>muse</groupId>
+      <artifactId>muse-wsa-soap</artifactId>
+      <version>1.9.0-SNAPSHOT</version>
+      <scope>compile</scope>
+    </dependency>
+  </dependencies>
+  <build>
+    <sourceDirectory>src-api</sourceDirectory>
+    <outputDirectory>build/classes-api</outputDirectory>
+    <directory>build/jars</directory>
+  </build>
+</project>

Added: webservices/muse/trunk/modules/muse-wsrf/pom-impl.xml
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsrf/pom-impl.xml?rev=414694&view=auto
==============================================================================
--- webservices/muse/trunk/modules/muse-wsrf/pom-impl.xml (added)
+++ webservices/muse/trunk/modules/muse-wsrf/pom-impl.xml Thu Jun 15 15:16:59 2006
@@ -0,0 +1,55 @@
+<?xml version="1.0"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" 
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>muse</groupId>
+  <artifactId>muse-wsrf-impl</artifactId>
+  <packaging>jar</packaging>
+  <version>1.9.0-SNAPSHOT</version>
+  <name>Apache Muse - WS-ResourceFramework 1.2 Default Implementation</name>
+  <url>http://ws.apache.org/muse</url>
+  <dependencies>
+    <dependency>
+      <groupId>muse</groupId>
+      <artifactId>muse-core</artifactId>
+      <version>1.9.0-SNAPSHOT</version>
+      <scope>compile</scope>
+    </dependency>
+    <dependency>
+      <groupId>muse</groupId>
+      <artifactId>muse-util</artifactId>
+      <version>1.9.0-SNAPSHOT</version>
+      <scope>compile</scope>
+    </dependency>
+    <dependency>
+      <groupId>muse</groupId>
+      <artifactId>muse-util-qname</artifactId>
+      <version>1.9.0-SNAPSHOT</version>
+      <scope>compile</scope>
+    </dependency>
+    <dependency>
+      <groupId>muse</groupId>
+      <artifactId>muse-util-xml</artifactId>
+      <version>1.9.0-SNAPSHOT</version>
+      <scope>compile</scope>
+    </dependency>
+    <dependency>
+      <groupId>muse</groupId>
+      <artifactId>muse-wsa-soap</artifactId>
+      <version>1.9.0-SNAPSHOT</version>
+      <scope>compile</scope>
+    </dependency>
+    <dependency>
+      <groupId>muse</groupId>
+      <artifactId>muse-wsrf-api</artifactId>
+      <version>1.9.0-SNAPSHOT</version>
+      <scope>compile</scope>
+    </dependency>
+  </dependencies>
+  <build>
+    <sourceDirectory>src-impl</sourceDirectory>
+    <outputDirectory>build/classes-impl</outputDirectory>
+    <directory>build/jars</directory>
+  </build>
+</project>

Added: webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/WsResource.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/WsResource.java?rev=414694&view=auto
==============================================================================
--- webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/WsResource.java (added)
+++ webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/WsResource.java Thu Jun 15 15:16:59 2006
@@ -0,0 +1,39 @@
+/*=============================================================================*
+ *  Copyright 2006 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+
+package org.apache.muse.ws.resource;
+
+import org.apache.muse.core.Resource;
+import org.apache.muse.ws.resource.properties.ResourcePropertyCollection;
+
+/**
+ * 
+ * WsResource is an extension of the core Muse Resource component. It adds the 
+ * concept of a state model via WS-ResourceProperties. Note that the addition 
+ * of the WSRP ResourcePropertyCollection does <b>not</b> imply that WsResource 
+ * resource types have to expose any of the WSRP capabilities. The state model 
+ * will be available no matter how many WSRP capabilities are exposed to remote 
+ * clients, if any; the WSRP capabilities themselves will simply push down on 
+ * the ResourcePropertyCollection as part of their implementations.
+ *  
+ * @author Dan Jemiolo (danj)
+ * 
+ */
+
+public interface WsResource extends Resource
+{
+    ResourcePropertyCollection getPropertyCollection();
+}

Added: webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/WsResourceCapability.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/WsResourceCapability.java?rev=414694&view=auto
==============================================================================
--- webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/WsResourceCapability.java (added)
+++ webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/WsResourceCapability.java Thu Jun 15 15:16:59 2006
@@ -0,0 +1,40 @@
+/*=============================================================================*
+ *  Copyright 2006 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+
+package org.apache.muse.ws.resource;
+
+import org.apache.muse.core.Capability;
+
+/**
+ * 
+ * WsResourceCapability is an extension of the core Muse Capability concept. 
+ * It provides a safely-typed convenience method for accessing the WS-resource 
+ * that contains the capability as well as generic, WSRP-like methods for 
+ * accessing its property values. A WsResourceCapability is responsible for 
+ * its own state - the WSRP ResourcePropertyCollection will use these capabilities 
+ * as delegates for reading and writing property values. This allows the 
+ * WS-resource capabilities to leverage different state models within a single 
+ * resource type.
+ *
+ * @author Dan Jemiolo (danj)
+ *
+ */
+
+public interface WsResourceCapability 
+    extends Capability, WsResourceCapabilityProperties
+{
+    WsResource getWsResource();
+}

Added: webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/WsResourceCapabilityProperties.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/WsResourceCapabilityProperties.java?rev=414694&view=auto
==============================================================================
--- webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/WsResourceCapabilityProperties.java (added)
+++ webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/WsResourceCapabilityProperties.java Thu Jun 15 15:16:59 2006
@@ -0,0 +1,59 @@
+/*=============================================================================*
+ *  Copyright 2006 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+
+package org.apache.muse.ws.resource;
+
+import javax.xml.namespace.QName;
+
+import org.w3c.dom.Element;
+
+import org.apache.muse.ws.resource.basefaults.BaseFault;
+
+/**
+ * 
+ * WsResourceCapabilityProperties is a collection of generic, WSRP-like methods 
+ * that can be used by the WSRP ResourcePropertyCollection (or any other code) 
+ * to read and write a capability's property values. In the case of the WSRP 
+ * implementation, these methods will be used as part of its delegation model, 
+ * wherein the capability is responsible for the maintenance of its properties 
+ * and the WSRP implementation provides any WSRP-specific logic related to 
+ * permissions, validation, and faults.
+ *
+ * @author Dan Jemiolo (danj)
+ *
+ */
+
+public interface WsResourceCapabilityProperties
+{
+    /**
+     * 
+     * @return The names of the resource properties defined by this capability.
+     *
+     */
+    QName[] getPropertyNames();
+    
+    Element[] getProperty(QName property)
+        throws BaseFault;
+    
+    void deleteProperty(QName property) 
+        throws BaseFault;
+    
+    void insertProperty(QName property, Element[] values)
+        throws BaseFault;
+    
+    void updateProperty(QName property, Element[] values)
+        throws BaseFault;
+}

Added: webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/WsrfConstants.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/WsrfConstants.java?rev=414694&view=auto
==============================================================================
--- webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/WsrfConstants.java (added)
+++ webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/WsrfConstants.java Thu Jun 15 15:16:59 2006
@@ -0,0 +1,46 @@
+/*=============================================================================*
+ *  Copyright 2006 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+
+package org.apache.muse.ws.resource;
+
+import javax.xml.namespace.QName;
+
+/**
+ * 
+ * WsrfConstants is a collection of constants defined in the WS-ResourceFramework 
+ * spec, version 1.2. These values only pertain to the core WSRF spec, not the 
+ * other four specs that build on top of it.
+ *
+ * @author Dan Jemiolo (danj)
+ *
+ */
+
+public class WsrfConstants
+{
+    public static final String NAMESPACE_URI = "http://docs.oasis-open.org/wsrf/r-2";
+
+    public static final String WSDL_NAMESPACE_URI = "http://docs.oasis-open.org/wsrf/rw-2";
+    
+    public static final String PREFIX = "wsrf-r";
+    
+    public static final String WSDL_PREFIX = "wsrf-rw";
+    
+    public static final QName RESOURCE_UNKNOWN_QNAME = 
+        new QName(WSDL_NAMESPACE_URI, "ResourceUnknownFault", WSDL_PREFIX);
+    
+    public static final QName RESOURCE_UNAVAILABLE_QNAME = 
+        new QName(WSDL_NAMESPACE_URI, "ResourceUnavailableFault", WSDL_PREFIX);
+}

Added: webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/basefaults/BaseFault.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/basefaults/BaseFault.java?rev=414694&view=auto
==============================================================================
--- webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/basefaults/BaseFault.java (added)
+++ webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/basefaults/BaseFault.java Thu Jun 15 15:16:59 2006
@@ -0,0 +1,197 @@
+/*=============================================================================*
+ *  Copyright 2006 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+
+package org.apache.muse.ws.resource.basefaults;
+
+import java.text.ParseException;
+import java.util.Date;
+
+import javax.xml.namespace.QName;
+
+import org.w3c.dom.Element;
+import org.apache.muse.util.xml.XmlUtils;
+import org.apache.muse.util.xml.XsdUtils;
+import org.apache.muse.ws.addressing.EndpointReference;
+import org.apache.muse.ws.addressing.soap.SoapFault;
+
+/**
+ *
+ * SimpleBaseFault is Muse's default implementation of the WS-BaseFaults 
+ * SimpleBaseFault type. This can be used as a standalone class or (more commonly) 
+ * as a base class for more concrete fault types. WS-BF XML parsing and 
+ * serialization is also handled by this class.
+ *
+ * @author Dan Jemiolo (danj)
+ *
+ */
+
+public abstract class BaseFault extends SoapFault
+{
+    private static final long serialVersionUID = 7582724758621882686L;
+        
+    //
+    // Where the fault was generated
+    //
+    private EndpointReference _origin = null;
+    
+    //
+    // When the fault was generated
+    //
+    private Date _timestamp = new Date();
+    
+    private Element _errorCode = null;    
+    private String _errorCodeDialect = null;
+    
+    private QName _name = null;
+    
+    /**
+     * 
+     * Creates a new SimpleBaseFault by parsing the given XML according to the 
+     * WS-BF spec. This constructor only checks for elements and values 
+     * defined in WS-BF and does not fail if extensions are added to the 
+     * fault type.
+     * <br><br>
+     * The timestamp for this fault is the one specified in the XML, 
+     * regardless of when this object is created.
+     *
+     * @param xml
+     *        The XML representation of a WS-BF SimpleBaseFault.
+     *
+     */
+    public BaseFault(Element xml)
+    {
+        //
+        // set the exception message to be the WS-BF Description
+        //
+        super(xml);
+        
+        Element detail = getDetail();
+        _name = XmlUtils.getElementQName(detail);
+        
+        //
+        // set the timestamp - this is a required field
+        //
+        String timeText = XmlUtils.getElementText(detail, WsbfConstants.TIMESTAMP_QNAME);
+        
+        try
+        {
+            if (timeText != null)
+                _timestamp = XsdUtils.getLocalTime(timeText);
+        }
+        
+        catch (ParseException error)
+        {
+            //
+            // nothing we can do - throwing on a fault creation won't help us. 
+            // this fault will just use the system's current timestamp.
+            //
+        }
+        
+        //
+        // set the origin EPR (optional)
+        //
+        Element eprXML = XmlUtils.getElement(detail, WsbfConstants.ORIGINATOR_QNAME);
+        
+        try
+        {
+            if (eprXML != null)
+                setOriginReference(new EndpointReference(eprXML, false));
+        }
+        
+        catch (Throwable error)
+        {
+            //
+            // NOTE: This error occurs if the SimpleBaseFault XML had an invalid 
+            //       EPR definition for wsbf:OriginReference. Because this 
+            //       fault may be coming from an external service, we do 
+            //       not want to throw - the only thing worse than having a 
+            //       fault with incomplete data is having a runtime exception 
+            //       thrown when you really want to respond to the fault.
+            //
+        }
+        
+        //
+        // set the error code (optional)
+        //
+        Element errorXML = XmlUtils.getElement(detail, WsbfConstants.ERROR_CODE_QNAME);
+        
+        if (errorXML != null)
+        {
+            Element error = XmlUtils.getFirstElement(errorXML);
+            String dialect = errorXML.getAttribute(WsbfConstants.ERROR_CODE_DIALECT);
+            setErrorCode(error, dialect);
+        }
+    }
+    
+    public BaseFault(QName name, String message)
+    {
+        super(message);
+        _name = name;
+    }
+    
+    public BaseFault(QName name, String message, Throwable cause)
+    {
+        super(message, cause);
+        _name = name;
+    }
+    
+    public BaseFault(QName name, Throwable cause)
+    {
+        super(cause);
+        _name = name;
+    }
+    
+    public final QName getName()
+    {
+        return _name;
+    }
+    
+    public final String getDescription()
+    {
+        return getMessage();
+    }
+    
+    public final Element getErrorCode()
+    {
+        return _errorCode;
+    }
+    
+    public final String getErrorCodeDialect()
+    {
+        return _errorCodeDialect;
+    }
+    
+    public final EndpointReference getOriginReference()
+    {
+        return _origin;
+    }
+    
+    public final Date getTimestamp()
+    {
+        return _timestamp;
+    }
+    
+    public final void setErrorCode(Element errorCode, String errorCodeDialect)
+    {
+        _errorCode = errorCode;
+        _errorCodeDialect = errorCodeDialect;
+    }
+    
+    public final void setOriginReference(EndpointReference origin)
+    {
+        _origin = new EndpointReference(origin, WsbfConstants.ORIGINATOR_QNAME);
+    }
+}

Added: webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/basefaults/WsbfConstants.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/basefaults/WsbfConstants.java?rev=414694&view=auto
==============================================================================
--- webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/basefaults/WsbfConstants.java (added)
+++ webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/basefaults/WsbfConstants.java Thu Jun 15 15:16:59 2006
@@ -0,0 +1,55 @@
+/*=============================================================================*
+ *  Copyright 2006 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+
+package org.apache.muse.ws.resource.basefaults;
+
+import javax.xml.namespace.QName;
+
+/**
+ *
+ * WsbfConstants is a collection of properties that is useful when programming 
+ * against the WS-BaseFaults spec. This class uses WS-BF v1.2, draft 01.
+ *
+ * @author Dan Jemiolo (danj)
+ *
+ */
+
+public class WsbfConstants
+{
+    public static final String NAMESPACE_URI = "http://docs.oasis-open.org/wsrf/bf-2";
+
+    public static final String PREFIX = "wsrf-bf";
+    
+    public static final QName BASE_FAULT_QNAME = 
+        new QName(NAMESPACE_URI, "BaseFault", PREFIX);
+
+    public static final QName DESCRIPTION_QNAME = 
+        new QName(NAMESPACE_URI, "Description", PREFIX);
+    
+    public static final QName ERROR_CODE_QNAME = 
+        new QName(NAMESPACE_URI, "ErrorCode", PREFIX);
+    
+    public static final String ERROR_CODE_DIALECT = "dialect";
+
+    public static final QName ORIGINATOR_QNAME = 
+        new QName(NAMESPACE_URI, "OriginatorReference", PREFIX);
+    
+    public static final QName TIMESTAMP_QNAME = 
+        new QName(NAMESPACE_URI, "Timestamp", PREFIX);
+    
+    public static final QName FAULT_CAUSE_QNAME = 
+        new QName(NAMESPACE_URI, "FaultCause", PREFIX);
+}

Added: webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/basefaults/WsbfUtils.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/basefaults/WsbfUtils.java?rev=414694&view=auto
==============================================================================
--- webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/basefaults/WsbfUtils.java (added)
+++ webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/basefaults/WsbfUtils.java Thu Jun 15 15:16:59 2006
@@ -0,0 +1,30 @@
+/*=============================================================================*
+ *  Copyright 2006 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+
+package org.apache.muse.ws.resource.basefaults;
+
+import org.apache.muse.ws.resource.faults.ResourceUnavailableFault;
+
+public class WsbfUtils
+{
+    public static BaseFault convertToFault(Throwable error)
+    {
+        if (error instanceof BaseFault)
+            return (BaseFault)error;
+        
+        return new ResourceUnavailableFault(error);
+    }
+}

Added: webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/ext/WsrfExtConstants.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/ext/WsrfExtConstants.java?rev=414694&view=auto
==============================================================================
--- webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/ext/WsrfExtConstants.java (added)
+++ webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/ext/WsrfExtConstants.java Thu Jun 15 15:16:59 2006
@@ -0,0 +1,51 @@
+/*=============================================================================*
+ *  Copyright 2006 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+
+package org.apache.muse.ws.resource.ext;
+
+import javax.xml.namespace.QName;
+
+/**
+ * 
+ * WsrfExtConstants is a collection of constants used by Muse to extend the 
+ * base WSRF spec. Most of the identifiers here are for common faults that 
+ * happen frequently in the WSRP capability implementations.
+ *
+ * @author Dan Jemiolo (danj)
+ *
+ */
+
+public class WsrfExtConstants
+{
+    public static final String NAMESPACE_URI = "http://ws.apache.org/muse/wsrf";
+    
+    public static final String PREFIX = "muse-wsrf";
+    
+    public static final QName INVALID_MESSAGE_FORMAT_QNAME = 
+        new QName(NAMESPACE_URI, "InvalidMessageFormat", PREFIX);
+    
+    public static final QName METADATA_VALIDATION_ERROR_QNAME = 
+        new QName(NAMESPACE_URI, "MetadataValidationErrorFault", PREFIX);
+    
+    public static final QName RESOURCE_INITIALIZATION_QNAME = 
+        new QName(NAMESPACE_URI, "ResourceInitializationFault", PREFIX);
+    
+    public static final QName SCHEMA_VALIDATION_ERROR_QNAME = 
+        new QName(NAMESPACE_URI, "SchemaValidationErrorFault", PREFIX);
+    
+    public static final QName SERIALIZATION_ERROR_QNAME = 
+        new QName(NAMESPACE_URI, "SerializationErrorFault", PREFIX);
+}

Added: webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/ext/faults/InvalidMessageFormatFault.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/ext/faults/InvalidMessageFormatFault.java?rev=414694&view=auto
==============================================================================
--- webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/ext/faults/InvalidMessageFormatFault.java (added)
+++ webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/ext/faults/InvalidMessageFormatFault.java Thu Jun 15 15:16:59 2006
@@ -0,0 +1,51 @@
+/*=============================================================================*
+ *  Copyright 2006 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+
+package org.apache.muse.ws.resource.ext.faults;
+
+import org.w3c.dom.Element;
+
+import org.apache.muse.ws.addressing.soap.SoapConstants;
+import org.apache.muse.ws.resource.basefaults.BaseFault;
+import org.apache.muse.ws.resource.ext.WsrfExtConstants;
+
+public class InvalidMessageFormatFault extends BaseFault
+{
+    private static final long serialVersionUID = 4874022523783312375L;
+
+    public InvalidMessageFormatFault(Element xml)
+    {
+        super(xml);
+    }
+
+    public InvalidMessageFormatFault(String message)
+    {
+        super(WsrfExtConstants.INVALID_MESSAGE_FORMAT_QNAME, message);
+        setCode(SoapConstants.SENDER_QNAME);
+    }
+
+    public InvalidMessageFormatFault(String message, Throwable cause)
+    {
+        super(WsrfExtConstants.INVALID_MESSAGE_FORMAT_QNAME, message, cause);
+        setCode(SoapConstants.SENDER_QNAME);
+    }
+
+    public InvalidMessageFormatFault(Throwable cause)
+    {
+        super(WsrfExtConstants.INVALID_MESSAGE_FORMAT_QNAME, cause);
+        setCode(SoapConstants.SENDER_QNAME);
+    }
+}

Added: webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/ext/faults/ResourceInitializationFault.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/ext/faults/ResourceInitializationFault.java?rev=414694&view=auto
==============================================================================
--- webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/ext/faults/ResourceInitializationFault.java (added)
+++ webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/ext/faults/ResourceInitializationFault.java Thu Jun 15 15:16:59 2006
@@ -0,0 +1,47 @@
+/*=============================================================================*
+ *  Copyright 2006 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+
+package org.apache.muse.ws.resource.ext.faults;
+
+import org.w3c.dom.Element;
+
+import org.apache.muse.ws.resource.basefaults.BaseFault;
+import org.apache.muse.ws.resource.ext.WsrfExtConstants;
+
+public class ResourceInitializationFault extends BaseFault
+{
+    private static final long serialVersionUID = 4539155047536939584L;
+
+    public ResourceInitializationFault(Element xml)
+    {
+        super(xml);
+    }
+
+    public ResourceInitializationFault(String message)
+    {
+        super(WsrfExtConstants.RESOURCE_INITIALIZATION_QNAME, message);
+    }
+
+    public ResourceInitializationFault(String message, Throwable cause)
+    {
+        super(WsrfExtConstants.RESOURCE_INITIALIZATION_QNAME, message, cause);
+    }
+
+    public ResourceInitializationFault(Throwable cause)
+    {
+        super(WsrfExtConstants.RESOURCE_INITIALIZATION_QNAME, cause);
+    }
+}

Added: webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/ext/faults/SerializationErrorFault.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/ext/faults/SerializationErrorFault.java?rev=414694&view=auto
==============================================================================
--- webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/ext/faults/SerializationErrorFault.java (added)
+++ webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/ext/faults/SerializationErrorFault.java Thu Jun 15 15:16:59 2006
@@ -0,0 +1,47 @@
+/*=============================================================================*
+ *  Copyright 2006 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+
+package org.apache.muse.ws.resource.ext.faults;
+
+import org.w3c.dom.Element;
+
+import org.apache.muse.ws.resource.basefaults.BaseFault;
+import org.apache.muse.ws.resource.ext.WsrfExtConstants;
+
+public class SerializationErrorFault extends BaseFault
+{
+    private static final long serialVersionUID = 6757289952824788179L;
+
+    public SerializationErrorFault(Element xml)
+    {
+        super(xml);
+    }
+
+    public SerializationErrorFault(String message)
+    {
+        super(WsrfExtConstants.SERIALIZATION_ERROR_QNAME, message);
+    }
+
+    public SerializationErrorFault(String message, Throwable cause)
+    {
+        super(WsrfExtConstants.SERIALIZATION_ERROR_QNAME, message, cause);
+    }
+
+    public SerializationErrorFault(Throwable cause)
+    {
+        super(WsrfExtConstants.SERIALIZATION_ERROR_QNAME, cause);
+    }
+}

Added: webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/faults/ResourceUnavailableFault.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/faults/ResourceUnavailableFault.java?rev=414694&view=auto
==============================================================================
--- webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/faults/ResourceUnavailableFault.java (added)
+++ webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/faults/ResourceUnavailableFault.java Thu Jun 15 15:16:59 2006
@@ -0,0 +1,47 @@
+/*=============================================================================*
+ *  Copyright 2006 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+
+package org.apache.muse.ws.resource.faults;
+
+import org.w3c.dom.Element;
+
+import org.apache.muse.ws.resource.WsrfConstants;
+import org.apache.muse.ws.resource.basefaults.BaseFault;
+
+public class ResourceUnavailableFault extends BaseFault
+{
+    private static final long serialVersionUID = -7569634397313256251L;
+
+    public ResourceUnavailableFault(Element xml)
+    {
+        super(xml);
+    }
+
+    public ResourceUnavailableFault(String message)
+    {
+        super(WsrfConstants.RESOURCE_UNAVAILABLE_QNAME, message);
+    }
+
+    public ResourceUnavailableFault(String message, Throwable cause)
+    {
+        super(WsrfConstants.RESOURCE_UNAVAILABLE_QNAME, message, cause);
+    }
+
+    public ResourceUnavailableFault(Throwable cause)
+    {
+        super(WsrfConstants.RESOURCE_UNAVAILABLE_QNAME, cause);
+    }
+}

Added: webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/faults/ResourceUnknownFault.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/faults/ResourceUnknownFault.java?rev=414694&view=auto
==============================================================================
--- webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/faults/ResourceUnknownFault.java (added)
+++ webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/faults/ResourceUnknownFault.java Thu Jun 15 15:16:59 2006
@@ -0,0 +1,47 @@
+/*=============================================================================*
+ *  Copyright 2006 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+
+package org.apache.muse.ws.resource.faults;
+
+import org.w3c.dom.Element;
+
+import org.apache.muse.ws.resource.WsrfConstants;
+import org.apache.muse.ws.resource.basefaults.BaseFault;
+
+public class ResourceUnknownFault extends BaseFault
+{
+    private static final long serialVersionUID = 6896678425171432138L;
+
+    public ResourceUnknownFault(Element xml)
+    {
+        super(xml);
+    }
+
+    public ResourceUnknownFault(String message)
+    {
+        super(WsrfConstants.RESOURCE_UNKNOWN_QNAME, message);
+    }
+
+    public ResourceUnknownFault(String message, Throwable cause)
+    {
+        super(WsrfConstants.RESOURCE_UNKNOWN_QNAME, message, cause);
+    }
+
+    public ResourceUnknownFault(Throwable cause)
+    {
+        super(WsrfConstants.RESOURCE_UNKNOWN_QNAME, cause);
+    }
+}

Added: webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/lifetime/ImmediateTermination.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/lifetime/ImmediateTermination.java?rev=414694&view=auto
==============================================================================
--- webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/lifetime/ImmediateTermination.java (added)
+++ webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/lifetime/ImmediateTermination.java Thu Jun 15 15:16:59 2006
@@ -0,0 +1,47 @@
+/*=============================================================================*
+ *  Copyright 2006 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+
+package org.apache.muse.ws.resource.lifetime;
+
+import org.apache.muse.ws.resource.WsResourceCapability;
+import org.apache.muse.ws.resource.lifetime.faults.ResourceNotDestroyedFault;
+
+/**
+ * 
+ * @author Dan Jemiolo (danj)
+ * 
+ */
+
+public interface ImmediateTermination extends WsResourceCapability
+{
+    /**
+     * 
+     * Makes the resource unavailable to external clients. Note that this does 
+     * not affect any destruction code in the Resource's destroy() operation; 
+     * the WS-RL destroy only pertains to the visibility of the resource instance. 
+     * WS-RL resources will need to remove the visibility of the resource and 
+     * then invoke any destruction/shutdown code that exists.
+     *
+     * @throws ResourceNotDestroyedFault
+     *         <ul>
+     *         <li>If the resource cannot be removed, or if a destructor 
+     *         callback fails.</li>
+     *         </ul>
+     *
+     */
+    void destroy() 
+        throws ResourceNotDestroyedFault;
+}

Added: webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/lifetime/ScheduledTermination.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/lifetime/ScheduledTermination.java?rev=414694&view=auto
==============================================================================
--- webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/lifetime/ScheduledTermination.java (added)
+++ webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/lifetime/ScheduledTermination.java Thu Jun 15 15:16:59 2006
@@ -0,0 +1,87 @@
+/*=============================================================================*
+ *  Copyright 2006 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+
+package org.apache.muse.ws.resource.lifetime;
+
+import java.util.Date;
+
+import javax.xml.namespace.QName;
+
+import org.apache.muse.ws.resource.WsResourceCapability;
+import org.apache.muse.ws.resource.basefaults.BaseFault;
+import org.apache.muse.ws.resource.lifetime.faults.TerminationTimeChangeRejectedFault;
+import org.apache.muse.ws.resource.lifetime.faults.UnableToSetTerminationTimeFault;
+
+public interface ScheduledTermination extends WsResourceCapability
+{
+    QName[] PROPERTIES = new QName[]{
+        WsrlConstants.CURRENT_TIME_QNAME, 
+        WsrlConstants.TERMINATION_TIME_QNAME    
+    };
+    
+    /**
+     * 
+     * @return The current time, according to the resource.
+     * 
+     * @throws BaseFault
+     *         <ul>
+     *         <li>If there is a WS-RP-based error.</li>
+     *         </ul>
+     *
+     */
+    Date getCurrentTime() 
+        throws BaseFault;
+    
+    /**
+     * 
+     * @return The termination time for this resource. The method returns 
+     *         null if the resource is not scheduled for termination.
+     * 
+     * @throws BaseFault
+     *         <ul>
+     *         <li>If there is a WS-RP-based error.</li>
+     *         </ul>
+     *
+     */
+    Date getTerminationTime() 
+        throws BaseFault;
+    
+    /**
+     * 
+     * @param time
+     *        The new termination time. If the time is null, the resource 
+     *        will not be scheduled for destruction. If the time is in the 
+     *        past, it will be destroyed immediately. 
+     * 
+     * @return The previous termination time value (or null, if none existed).
+     *  
+     * @throws UnableToSetTerminationTimeFault
+     *         <ul>
+     *         <li>If the new time is invalid or the current time cannot 
+     *         be adjusted.</li>
+     *         </ul>
+     *         
+     * @throws TerminationTimeChangeRejectedFault
+     *         <ul>
+     *         <li>If the new time is invalid according to a policy of 
+     *         the WS-RL implementation.</li>
+     *         </ul>
+     *
+     */
+    Date setTerminationTime(Date time) 
+        throws UnableToSetTerminationTimeFault, 
+               TerminationTimeChangeRejectedFault;
+}

Added: webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/lifetime/WsrlConstants.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/lifetime/WsrlConstants.java?rev=414694&view=auto
==============================================================================
--- webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/lifetime/WsrlConstants.java (added)
+++ webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/lifetime/WsrlConstants.java Thu Jun 15 15:16:59 2006
@@ -0,0 +1,121 @@
+/*=============================================================================*
+ *  Copyright 2006 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+
+package org.apache.muse.ws.resource.lifetime;
+
+import javax.xml.namespace.QName;
+
+/**
+ *
+ * WsrlConstants is a collection of properties that is useful when programming 
+ * against the WS-ResourceLifetime spec. This class uses WS-RL v1.2.
+ *
+ * @author Dan Jemiolo (danj)
+ *
+ */
+
+public class WsrlConstants
+{
+    public static final String NAMESPACE_URI = "http://docs.oasis-open.org/wsrf/rl-2";
+    
+    public static final String WSDL_NAMESPACE_URI = "http://docs.oasis-open.org/wsrf/rlw-2";
+    
+    public static final String PREFIX = "wsrf-rl";
+
+    public static final String WSDL_PREFIX = "wsrf-rlw";
+    
+    public static final String IMMEDIATE_TERMINATION_URI = 
+        WSDL_NAMESPACE_URI + "/ImmediateResourceTermination";
+    
+    public static final String SCHEDULED_TERMINATION_URI = 
+        WSDL_NAMESPACE_URI + "/ScheduledResourceTermination";
+    
+    /**
+     * 
+     * The WS-A Action URI of the Destroy operation.
+     * 
+     */
+    public static final String DESTROY_URI = WSDL_NAMESPACE_URI + "/DestroyRequest";
+    
+    /**
+     * 
+     * The WS-A Action URI of the SetTerminationTime operation.
+     * 
+     */
+    public static final String SET_TERMINATION_URI = WSDL_NAMESPACE_URI + "/SetTerminationTimeRequest";
+    
+    public static final QName DESTROY_QNAME = 
+        new QName(NAMESPACE_URI, "Destroy", PREFIX); 
+    
+    public static final QName DESTROY_RESPONSE_QNAME = 
+        new QName(NAMESPACE_URI, "DestroyResponse", PREFIX);
+    
+    public static final QName RESOURCE_NOT_DESTROYED_QNAME = 
+        new QName(WSDL_NAMESPACE_URI, "ResourceNotDestroyedFault", WSDL_PREFIX);
+    
+    public static final QName SET_TERMINATION_QNAME = 
+        new QName(NAMESPACE_URI, "SetTerminationTime", PREFIX);
+    
+    public static final QName SET_TERMINATION_RESPONSE_QNAME = 
+        new QName(NAMESPACE_URI, "SetTerminationTimeResponse", PREFIX); 
+    
+    public static final QName UNABLE_TO_SET_TERMINATION_TIME_QNAME = 
+        new QName(WSDL_NAMESPACE_URI, "UnableToSetTerminationTimeFault", WSDL_PREFIX); 
+    
+    public static final QName TERMINATION_TIME_CHANGE_REJECTED_QNAME = 
+        new QName(WSDL_NAMESPACE_URI, "TerminationTimeChangeRejectedFault", WSDL_PREFIX);   
+    
+    public static final QName NEW_TIME_QNAME = 
+        new QName(NAMESPACE_URI, "NewTerminationTime", PREFIX);
+    
+    public static final QName REQUESTED_TIME_QNAME = 
+        new QName(NAMESPACE_URI, "RequestedTerminationTime", PREFIX);
+    
+    public static final QName REQUESTED_DURATION_QNAME = 
+        new QName(NAMESPACE_URI, "RequestedLifetimeDuration", PREFIX);
+    
+    /**
+     * 
+     * The name of the wsrl:CurrentTime property.
+     * 
+     */
+    public static final QName CURRENT_TIME_QNAME = 
+        new QName(NAMESPACE_URI, "CurrentTime", PREFIX);
+    
+    /**
+     * 
+     * The name of the wsrl:TerminationTime property.
+     * 
+     */
+    public static final QName TERMINATION_TIME_QNAME = 
+        new QName(NAMESPACE_URI, "TerminationTime", PREFIX);
+    
+    /**
+     * 
+     * The name of the WS-RL resource termination event.
+     * 
+     */
+    public static final QName NOTIFICATION_QNAME = 
+        new QName(NAMESPACE_URI, "TerminationNotification", PREFIX);
+    
+    /**
+     * 
+     * The name of the WS-N Topic for WS-RL termination events.
+     * 
+     */
+    public static final QName TERMINATION_TOPIC_QNAME = 
+        new QName(NAMESPACE_URI, "ResourceTermination", PREFIX);
+}

Added: webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/lifetime/faults/ResourceNotDestroyedFault.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/lifetime/faults/ResourceNotDestroyedFault.java?rev=414694&view=auto
==============================================================================
--- webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/lifetime/faults/ResourceNotDestroyedFault.java (added)
+++ webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/lifetime/faults/ResourceNotDestroyedFault.java Thu Jun 15 15:16:59 2006
@@ -0,0 +1,47 @@
+/*=============================================================================*
+ *  Copyright 2006 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+
+package org.apache.muse.ws.resource.lifetime.faults;
+
+import org.w3c.dom.Element;
+
+import org.apache.muse.ws.resource.basefaults.BaseFault;
+import org.apache.muse.ws.resource.lifetime.WsrlConstants;
+
+public class ResourceNotDestroyedFault extends BaseFault
+{
+    private static final long serialVersionUID = 6866739382979399756L;
+
+    public ResourceNotDestroyedFault(Element xml)
+    {
+        super(xml);
+    }
+
+    public ResourceNotDestroyedFault(String message)
+    {
+        super(WsrlConstants.RESOURCE_NOT_DESTROYED_QNAME, message);
+    }
+
+    public ResourceNotDestroyedFault(String message, Throwable cause)
+    {
+        super(WsrlConstants.RESOURCE_NOT_DESTROYED_QNAME, message, cause);
+    }
+
+    public ResourceNotDestroyedFault(Throwable cause)
+    {
+        super(WsrlConstants.RESOURCE_NOT_DESTROYED_QNAME, cause);
+    }
+}

Added: webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/lifetime/faults/TerminationTimeChangeRejectedFault.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/lifetime/faults/TerminationTimeChangeRejectedFault.java?rev=414694&view=auto
==============================================================================
--- webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/lifetime/faults/TerminationTimeChangeRejectedFault.java (added)
+++ webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/lifetime/faults/TerminationTimeChangeRejectedFault.java Thu Jun 15 15:16:59 2006
@@ -0,0 +1,47 @@
+/*=============================================================================*
+ *  Copyright 2006 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+
+package org.apache.muse.ws.resource.lifetime.faults;
+
+import org.w3c.dom.Element;
+
+import org.apache.muse.ws.resource.basefaults.BaseFault;
+import org.apache.muse.ws.resource.lifetime.WsrlConstants;
+
+public class TerminationTimeChangeRejectedFault extends BaseFault
+{
+    private static final long serialVersionUID = 5635627685023367442L;
+
+    public TerminationTimeChangeRejectedFault(Element xml)
+    {
+        super(xml);
+    }
+
+    public TerminationTimeChangeRejectedFault(String message)
+    {
+        super(WsrlConstants.TERMINATION_TIME_CHANGE_REJECTED_QNAME, message);
+    }
+
+    public TerminationTimeChangeRejectedFault(String message, Throwable cause)
+    {
+        super(WsrlConstants.TERMINATION_TIME_CHANGE_REJECTED_QNAME, message, cause);
+    }
+
+    public TerminationTimeChangeRejectedFault(Throwable cause)
+    {
+        super(WsrlConstants.TERMINATION_TIME_CHANGE_REJECTED_QNAME, cause);
+    }
+}

Added: webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/lifetime/faults/UnableToSetTerminationTimeFault.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/lifetime/faults/UnableToSetTerminationTimeFault.java?rev=414694&view=auto
==============================================================================
--- webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/lifetime/faults/UnableToSetTerminationTimeFault.java (added)
+++ webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/lifetime/faults/UnableToSetTerminationTimeFault.java Thu Jun 15 15:16:59 2006
@@ -0,0 +1,47 @@
+/*=============================================================================*
+ *  Copyright 2006 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+
+package org.apache.muse.ws.resource.lifetime.faults;
+
+import org.w3c.dom.Element;
+
+import org.apache.muse.ws.resource.basefaults.BaseFault;
+import org.apache.muse.ws.resource.lifetime.WsrlConstants;
+
+public class UnableToSetTerminationTimeFault extends BaseFault
+{
+    private static final long serialVersionUID = 7831882443947531527L;
+
+    public UnableToSetTerminationTimeFault(Element xml)
+    {
+        super(xml);
+    }
+
+    public UnableToSetTerminationTimeFault(String message)
+    {
+        super(WsrlConstants.UNABLE_TO_SET_TERMINATION_TIME_QNAME, message);
+    }
+
+    public UnableToSetTerminationTimeFault(String message, Throwable cause)
+    {
+        super(WsrlConstants.UNABLE_TO_SET_TERMINATION_TIME_QNAME, message, cause);
+    }
+
+    public UnableToSetTerminationTimeFault(Throwable cause)
+    {
+        super(WsrlConstants.UNABLE_TO_SET_TERMINATION_TIME_QNAME, cause);
+    }
+}

Added: webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/metadata/MetadataDescriptor.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/metadata/MetadataDescriptor.java?rev=414694&view=auto
==============================================================================
--- webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/metadata/MetadataDescriptor.java (added)
+++ webservices/muse/trunk/modules/muse-wsrf/src-api/org/apache/muse/ws/resource/metadata/MetadataDescriptor.java Thu Jun 15 15:16:59 2006
@@ -0,0 +1,261 @@
+/*=============================================================================*
+ *  Copyright 2006 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+
+package org.apache.muse.ws.resource.metadata;
+
+import java.util.Collection;
+
+import javax.xml.namespace.QName;
+
+import org.apache.muse.ws.addressing.soap.SoapFault;
+
+/**
+ *
+ * MetadataDescriptor is an interface for a single metadata descriptor. 
+ * It defines a lookup service for property metadata; in addition to 
+ * actual metadata values, the interface has convenience methods for 
+ * answering common questions ("Can I delete this property?", etc.) 
+ * rather than requiring the user to calculate the answers based on 
+ * metadata values.
+ *
+ * @author Dan Jemiolo (danj)
+ *
+ */
+
+public interface MetadataDescriptor
+{
+    /**
+     * 
+     * @param property
+     * 
+     * @return True if the property can be deleted (it is read-write and 
+     *         mutable)
+     *
+     */
+    boolean canDelete(QName property);
+
+    /**
+     * 
+     * @param property
+     * 
+     * @return True if the property can have new instances inserted (it is 
+     *         read-write and mutable/appendable).
+     *
+     */
+    boolean canInsert(QName property);
+    
+    /**
+     *
+     * @param property
+     * 
+     * @return True if the property generates events to which users can 
+     *         subscribe.
+     *
+     */
+    boolean canSubscribe(QName property);
+    
+    /**
+     * 
+     * @param property
+     * 
+     * @return True if the property's instances can be updated (it is 
+     *         read-write and mutable).
+     *
+     */
+    boolean canUpdate(QName property);
+    
+    /**
+     * 
+     * This method allows you to extend a wsrmd:Property definition and provide 
+     * application-specific metadata for a property. These will be parsed as 
+     * simple name-value pairs - you cannot associate complex types or XML 
+     * fragments with an extended metadata item.
+     *
+     * @param property
+     * 
+     * @param elementName
+     *        The name of the extended metadata item.
+     * 
+     * @return The value of the extended metadata item, or null if there is no 
+     *         such item.
+     *
+     */
+    String getExtendedMetadata(QName property, QName elementName);
+    
+    /**
+     * 
+     * @param property
+     * 
+     * @return The lower bound of the property's valid value range, if one 
+     *         is defined. The user must interpret the string value in the 
+     *         context of the property's type. The method returns null if 
+     *         no range is defined.
+     *
+     */
+    String getLowerBound(QName property);
+    
+    /**
+     * 
+     * @return The name of the metadata descriptor (defined in XML by its 
+     *         "name" attribute).
+     *
+     */
+    String getName();
+    
+    /**
+     *
+     * @return The collection of property names that are defined in this 
+     *         descriptor.
+     *
+     */
+    Collection getPropertyNames();
+    
+    /**
+     * 
+     * @param property
+     * 
+     * @return The collection of static values defined for this property. If 
+     *         no static values exist, the collection will be empty.
+     *         <br><br>
+     *         The actual values are DOM Elements, since that is how they are 
+     *         described in the RMD. They can be compared to the results of a 
+     *         WS-RP GetResourceProperty call.
+     * 
+     * @see #getStaticValues(QName, Class)
+     *
+     */
+    Collection getStaticValues(QName property);
+    
+    /**
+     * 
+     * @param property
+     * 
+     * @param javaType
+     *        The type whose serializer should be used to convert the 
+     *        property values (DOM Elements) into POJOs.
+     * 
+     * @return The array of getStaticValues(QName) in POJO form.
+     * 
+     * @throws SoapFault
+     *         <ul>
+     *         <li>If there is no Serializer registered for the given type.</li>
+     *         <li>If the property value XML can not be translated into an 
+     *         instance of the given type.</li>
+     *         </ul>
+     * 
+     * @see #getStaticValues(QName)
+     *
+     */
+    Object getStaticValues(QName property, Class javaType)
+        throws SoapFault;
+    
+    /**
+     * 
+     * @param property
+     * 
+     * @return The upper bound of the property's valid value range, if one 
+     *         is defined. The user must interpret the string value in the 
+     *         context of the property's type. The method returns null if 
+     *         no range is defined.
+     *
+     */
+    String getUpperBound(QName property);
+    
+    /**
+     * 
+     * @param property
+     * 
+     * @return The collection of valid values defined for this property. If 
+     *         no valid values exist, the collection will be empty (in this 
+     *         case, <b>all</b> values are valid).
+     *         <br><br>
+     *         The actual values are DOM Elements, since that is how they are 
+     *         described in the RMD (unlike a valid value range, the valid 
+     *         values are complete property instances). They can be compared 
+     *         to the results of a WS-RP GetResourceProperty call.
+     * 
+     * @see #getValidValues(QName, Class)
+     * 
+     */
+    Collection getValidValues(QName property);
+    
+    /**
+     * 
+     * @param property
+     * 
+     * @param javaType
+     *        The type whose serializer should be used to convert the 
+     *        property values (DOM Elements) into POJOs.
+     * 
+     * @return The array of getValidValues(QName) in POJO form.
+     * 
+     * @throws SoapFault
+     *         <ul>
+     *         <li>If there is no Serializer registered for the given type.</li>
+     *         <li>If the property value XML can not be translated into an 
+     *         instance of the given type.</li>
+     *         </ul>
+     * @throws SoapFault
+     * 
+     * @see #getValidValues(QName)
+     *
+     */
+    Object getValidValues(QName property, Class javaType)
+        throws SoapFault;
+    
+    /**
+     * 
+     * @param property
+     * 
+     * @return True if the descriptor defines a property with the given name. 
+     *
+     */
+    boolean hasProperty(QName property);
+    
+    /**
+     * 
+     * @param property
+     * 
+     * @return True if the property cannot be modified by external clients, 
+     *         but is mutable by internal code (it is read-only but mutable).
+     *
+     */
+    boolean isReadOnlyExternal(QName property);
+    
+    /**
+     * 
+     * @param property
+     * @param value
+     * 
+     * @return True if the given value is found in the property's set of 
+     *         static values. If the property has no static values defined, 
+     *         the method returns "false".
+     *
+     */
+    boolean isStaticValue(QName property, Object value);
+    
+    /**
+     * 
+     * @param property
+     * @param value
+     * 
+     * @return True if the given value is found in the property's set of 
+     *         valid values. If the property has no valid values defined, 
+     *         the method returns "true".
+     *
+     */
+    boolean isValidValue(QName property, Object value);
+}



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