ws-wsrf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sc...@apache.org
Subject svn commit: r227033 [13/27] - in /webservices/wsrf/trunk: ./ src/java/org/apache/ws/ src/java/org/apache/ws/addressing/ src/java/org/apache/ws/addressing/v2003_03/ src/java/org/apache/ws/addressing/v2004_08_10/ src/java/org/apache/ws/resource/ src/java...
Date Tue, 02 Aug 2005 16:30:44 GMT
Modified: webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/InsertResourcePropertiesPortType.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/InsertResourcePropertiesPortType.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/InsertResourcePropertiesPortType.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/InsertResourcePropertiesPortType.java Tue Aug  2 09:28:49 2005
@@ -1,42 +1,43 @@
-/*=============================================================================*
- *  Copyright 2004 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.ws.resource.properties.v2004_11.porttype;
-
-import org.apache.ws.resource.properties.v2004_11.ResourcePropertiesConstants;
-import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.InsertResourcePropertiesDocument;
-import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.InsertResourcePropertiesResponseDocument;
-
-import javax.xml.namespace.QName;
-
-
-/**
- * The WSRF-RP InsertResourceProperties portType.
- *
- * @author Ian P. Springer (Hewlett-Packard Company)
- */
-public interface InsertResourcePropertiesPortType
-{
-    QName NAME = new QName( ResourcePropertiesConstants.NSURI_WSRP_WSDL, "InsertResourceProperties", ResourcePropertiesConstants.NSPREFIX_WSRP_SCHEMA );
-
-    /**
-    * DOCUMENT_ME
-    *
-    * @param requestDoc DOCUMENT_ME
-    *
-    * @return DOCUMENT_ME
-    */
-    InsertResourcePropertiesResponseDocument insertResourceProperties( InsertResourcePropertiesDocument requestDoc );
+/*=============================================================================*
+ *  Copyright 2004 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.ws.resource.properties.v2004_11.porttype;
+
+import org.apache.ws.resource.properties.v2004_11.ResourcePropertiesConstants;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.InsertResourcePropertiesDocument;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.InsertResourcePropertiesResponseDocument;
+import javax.xml.namespace.QName;
+
+/**
+ * The WSRF-RP InsertResourceProperties portType.
+ *
+ * @author Ian P. Springer (Hewlett-Packard Company)
+ */
+public interface InsertResourcePropertiesPortType
+{
+   /** DOCUMENT_ME */
+   QName NAME =
+      new QName( ResourcePropertiesConstants.NSURI_WSRP_WSDL, "InsertResourceProperties",
+                 ResourcePropertiesConstants.NSPREFIX_WSRP_SCHEMA );
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param requestDoc DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   InsertResourcePropertiesResponseDocument insertResourceProperties( InsertResourcePropertiesDocument requestDoc );
 }

Modified: webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/QueryResourcePropertiesPortType.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/QueryResourcePropertiesPortType.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/QueryResourcePropertiesPortType.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/QueryResourcePropertiesPortType.java Tue Aug  2 09:28:49 2005
@@ -1,43 +1,48 @@
-/*=============================================================================*
- *  Copyright 2004 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.ws.resource.properties.v2004_11.porttype;
-
-
-import org.apache.ws.resource.properties.v2004_11.ResourcePropertiesConstants;
-import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.QueryResourcePropertiesDocument;
-import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.QueryResourcePropertiesResponseDocument;
-
-import javax.xml.namespace.QName;
-
-/**
- * The WSRF-RP QueryResourceProperties portType.
- *
- * @author Ian P. Springer (Hewlett-Packard Company)
- */
-public interface QueryResourcePropertiesPortType
-{
-    QName NAME = new QName( ResourcePropertiesConstants.NSURI_WSRP_WSDL, "QueryResourceProperties", ResourcePropertiesConstants.NSPREFIX_WSRP_SCHEMA );
-    QName PROP_QNAME_QUERY_EXPRESSION_DIALECT = new QName( ResourcePropertiesConstants.NSURI_WSRP_SCHEMA, "QueryExpressionDialect", ResourcePropertiesConstants.NSPREFIX_WSRP_SCHEMA );
-
-    /**
-    * DOCUMENT_ME
-    *
-    * @param requestDoc DOCUMENT_ME
-    *
-    * @return DOCUMENT_ME
-    */
-   QueryResourcePropertiesResponseDocument queryResourceProperties( QueryResourcePropertiesDocument requestDoc );
+/*=============================================================================*
+ *  Copyright 2004 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.ws.resource.properties.v2004_11.porttype;
+
+import org.apache.ws.resource.properties.v2004_11.ResourcePropertiesConstants;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.QueryResourcePropertiesDocument;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.QueryResourcePropertiesResponseDocument;
+import javax.xml.namespace.QName;
+
+/**
+ * The WSRF-RP QueryResourceProperties portType.
+ *
+ * @author Ian P. Springer (Hewlett-Packard Company)
+ */
+public interface QueryResourcePropertiesPortType
+{
+   /** DOCUMENT_ME */
+   QName NAME                                =
+      new QName( ResourcePropertiesConstants.NSURI_WSRP_WSDL, "QueryResourceProperties",
+                 ResourcePropertiesConstants.NSPREFIX_WSRP_SCHEMA );
+
+   /** DOCUMENT_ME */
+   QName PROP_QNAME_QUERY_EXPRESSION_DIALECT =
+      new QName( ResourcePropertiesConstants.NSURI_WSRP_SCHEMA, "QueryExpressionDialect",
+                 ResourcePropertiesConstants.NSPREFIX_WSRP_SCHEMA );
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param requestDoc DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   QueryResourcePropertiesResponseDocument queryResourceProperties( QueryResourcePropertiesDocument requestDoc );
 }

Modified: webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/SetResourcePropertiesPortType.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/SetResourcePropertiesPortType.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/SetResourcePropertiesPortType.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/SetResourcePropertiesPortType.java Tue Aug  2 09:28:49 2005
@@ -1,41 +1,43 @@
-/*=============================================================================*
- *  Copyright 2004 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.ws.resource.properties.v2004_11.porttype;
-
-import org.apache.ws.resource.properties.v2004_11.ResourcePropertiesConstants;
-import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.SetResourcePropertiesDocument;
-import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.SetResourcePropertiesResponseDocument;
-
-import javax.xml.namespace.QName;
-
-/**
- * The WSRF-RP SetResourceProperties portType.
- *
- * @author Ian P. Springer (Hewlett-Packard Company)
- */
-public interface SetResourcePropertiesPortType
-{
-    QName NAME = new QName( ResourcePropertiesConstants.NSURI_WSRP_WSDL, "SetResourceProperties", ResourcePropertiesConstants.NSPREFIX_WSRP_SCHEMA );
-
-    /**
-    * DOCUMENT_ME
-    *
-    * @param requestDoc DOCUMENT_ME
-    *
-    * @return DOCUMENT_ME
-    */
-   SetResourcePropertiesResponseDocument setResourceProperties( SetResourcePropertiesDocument requestDoc );
+/*=============================================================================*
+ *  Copyright 2004 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.ws.resource.properties.v2004_11.porttype;
+
+import org.apache.ws.resource.properties.v2004_11.ResourcePropertiesConstants;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.SetResourcePropertiesDocument;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.SetResourcePropertiesResponseDocument;
+import javax.xml.namespace.QName;
+
+/**
+ * The WSRF-RP SetResourceProperties portType.
+ *
+ * @author Ian P. Springer (Hewlett-Packard Company)
+ */
+public interface SetResourcePropertiesPortType
+{
+   /** DOCUMENT_ME */
+   QName NAME =
+      new QName( ResourcePropertiesConstants.NSURI_WSRP_WSDL, "SetResourceProperties",
+                 ResourcePropertiesConstants.NSPREFIX_WSRP_SCHEMA );
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param requestDoc DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   SetResourcePropertiesResponseDocument setResourceProperties( SetResourcePropertiesDocument requestDoc );
 }

Modified: webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/UpdateResourcePropertiesPortType.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/UpdateResourcePropertiesPortType.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/UpdateResourcePropertiesPortType.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/UpdateResourcePropertiesPortType.java Tue Aug  2 09:28:49 2005
@@ -1,42 +1,43 @@
-/*=============================================================================*
- *  Copyright 2004 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.ws.resource.properties.v2004_11.porttype;
-
-import org.apache.ws.resource.properties.v2004_11.ResourcePropertiesConstants;
-import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.UpdateResourcePropertiesDocument;
-import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.UpdateResourcePropertiesResponseDocument;
-
-import javax.xml.namespace.QName;
-
-
-/**
- * The WSRF-RP UpdateResourceProperties portType.
- *
- * @author Ian P. Springer (Hewlett-Packard Company)
- */
-public interface UpdateResourcePropertiesPortType
-{
-    QName NAME = new QName( ResourcePropertiesConstants.NSURI_WSRP_WSDL, "UpdateResourceProperties", ResourcePropertiesConstants.NSPREFIX_WSRP_SCHEMA );
-
-    /**
-    * DOCUMENT_ME
-    *
-    * @param requestDoc DOCUMENT_ME
-    *
-    * @return DOCUMENT_ME
-    */
-    UpdateResourcePropertiesResponseDocument updateResourceProperties( UpdateResourcePropertiesDocument requestDoc );
+/*=============================================================================*
+ *  Copyright 2004 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.ws.resource.properties.v2004_11.porttype;
+
+import org.apache.ws.resource.properties.v2004_11.ResourcePropertiesConstants;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.UpdateResourcePropertiesDocument;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.UpdateResourcePropertiesResponseDocument;
+import javax.xml.namespace.QName;
+
+/**
+ * The WSRF-RP UpdateResourceProperties portType.
+ *
+ * @author Ian P. Springer (Hewlett-Packard Company)
+ */
+public interface UpdateResourcePropertiesPortType
+{
+   /** DOCUMENT_ME */
+   QName NAME =
+      new QName( ResourcePropertiesConstants.NSURI_WSRP_WSDL, "UpdateResourceProperties",
+                 ResourcePropertiesConstants.NSPREFIX_WSRP_SCHEMA );
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param requestDoc DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   UpdateResourcePropertiesResponseDocument updateResourceProperties( UpdateResourcePropertiesDocument requestDoc );
 }

Modified: webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/DeleteResourcePropertiesPortTypeImpl.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/DeleteResourcePropertiesPortTypeImpl.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/DeleteResourcePropertiesPortTypeImpl.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/DeleteResourcePropertiesPortTypeImpl.java Tue Aug  2 09:28:49 2005
@@ -1,69 +1,97 @@
-package org.apache.ws.resource.properties.v2004_11.porttype.impl;
-
-import org.apache.ws.resource.ResourceContext;
-import org.apache.ws.resource.properties.NamespaceVersionHolder;
-import org.apache.ws.resource.properties.impl.AbstractResourcePropertiesPortType;
-import org.apache.ws.resource.properties.impl.AbstractSetResourcePropertiesPortType;
-import org.apache.ws.resource.properties.impl.AbstractXmlBeansResourcePropertyValueChangeEvent;
-import org.apache.ws.resource.properties.v2004_11.porttype.DeleteResourcePropertiesPortType;
-import org.apache.ws.resource.properties.v2004_11.impl.NamespaceVersionHolderImpl;
-import org.apache.ws.resource.properties.v2004_11.impl.XmlBeansResourcePropertyValueChangeEvent;
-import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.DeleteResourcePropertiesDocument;
-import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.DeleteResourcePropertiesResponseDocument;
-
-import javax.xml.namespace.QName;
-
-/**
- * @author Ian Springer
- */
-public class DeleteResourcePropertiesPortTypeImpl extends AbstractSetResourcePropertiesPortType
-        implements DeleteResourcePropertiesPortType
-{
-
-    private static final NamespaceVersionHolder NAMESPACE_SET = new NamespaceVersionHolderImpl();
-
-    /**
-     * Creates a new {@link DeleteResourcePropertiesPortTypeImpl} object.
-     *
-     * @param resourceContext DOCUMENT_ME
-     */
-    public DeleteResourcePropertiesPortTypeImpl( ResourceContext resourceContext )
-    {
-        super( resourceContext );
-    }
-
-    protected AbstractXmlBeansResourcePropertyValueChangeEvent getResourcePropertyValueChangeEvent(Object[] oldValue, Object[] newValue)
-    {
-        return new XmlBeansResourcePropertyValueChangeEvent(oldValue,newValue);
-    }
-
-    /**
-     * DOCUMENT_ME
-     *
-     * @param requestDoc DOCUMENT_ME
-     *
-     * @return DOCUMENT_ME
-     */
-    public DeleteResourcePropertiesResponseDocument deleteResourceProperties(
-            DeleteResourcePropertiesDocument requestDoc )
-    {
-        DeleteResourcePropertiesResponseDocument responseDoc = createResponseDocument();
-        DeleteResourcePropertiesDocument.DeleteResourceProperties requestElem = requestDoc.getDeleteResourceProperties();
-        QName nameOfPropToBeDeleted = requestElem.getDelete().getResourceProperty();
-        deleteResourceProperty( nameOfPropToBeDeleted );
-        return responseDoc;
-    }
-
-    private DeleteResourcePropertiesResponseDocument createResponseDocument()
-    {
-        DeleteResourcePropertiesResponseDocument responseDoc = DeleteResourcePropertiesResponseDocument.Factory.newInstance();
-        responseDoc.addNewDeleteResourcePropertiesResponse();
-        return responseDoc;
-    }
-
-    protected NamespaceVersionHolder getNamespaceSet()
-    {
-        return NAMESPACE_SET;
-    }
-
-}
+/*=============================================================================*
+ *  Copyright 2004 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.ws.resource.properties.v2004_11.porttype.impl;
+
+import org.apache.ws.resource.ResourceContext;
+import org.apache.ws.resource.properties.NamespaceVersionHolder;
+import org.apache.ws.resource.properties.impl.AbstractSetResourcePropertiesPortType;
+import org.apache.ws.resource.properties.impl.AbstractXmlBeansResourcePropertyValueChangeEvent;
+import org.apache.ws.resource.properties.v2004_11.impl.NamespaceVersionHolderImpl;
+import org.apache.ws.resource.properties.v2004_11.impl.XmlBeansResourcePropertyValueChangeEvent;
+import org.apache.ws.resource.properties.v2004_11.porttype.DeleteResourcePropertiesPortType;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.DeleteResourcePropertiesDocument;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.DeleteResourcePropertiesResponseDocument;
+import javax.xml.namespace.QName;
+
+/**
+ * @author Ian Springer
+ */
+public class DeleteResourcePropertiesPortTypeImpl
+   extends AbstractSetResourcePropertiesPortType
+   implements DeleteResourcePropertiesPortType
+{
+   private static final NamespaceVersionHolder NAMESPACE_SET = new NamespaceVersionHolderImpl(  );
+
+   /**
+    * Creates a new {@link DeleteResourcePropertiesPortTypeImpl} object.
+    *
+    * @param resourceContext DOCUMENT_ME
+    */
+   public DeleteResourcePropertiesPortTypeImpl( ResourceContext resourceContext )
+   {
+      super( resourceContext );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param requestDoc DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public DeleteResourcePropertiesResponseDocument deleteResourceProperties( DeleteResourcePropertiesDocument requestDoc )
+   {
+      DeleteResourcePropertiesResponseDocument                  responseDoc           = createResponseDocument(  );
+      DeleteResourcePropertiesDocument.DeleteResourceProperties requestElem           =
+         requestDoc.getDeleteResourceProperties(  );
+      QName                                                     nameOfPropToBeDeleted =
+         requestElem.getDelete(  ).getResourceProperty(  );
+      deleteResourceProperty( nameOfPropToBeDeleted );
+      return responseDoc;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   protected NamespaceVersionHolder getNamespaceSet(  )
+   {
+      return NAMESPACE_SET;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param oldValue DOCUMENT_ME
+    * @param newValue DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   protected AbstractXmlBeansResourcePropertyValueChangeEvent getResourcePropertyValueChangeEvent( Object[] oldValue,
+                                                                                                   Object[] newValue )
+   {
+      return new XmlBeansResourcePropertyValueChangeEvent( oldValue, newValue );
+   }
+
+   private DeleteResourcePropertiesResponseDocument createResponseDocument(  )
+   {
+      DeleteResourcePropertiesResponseDocument responseDoc =
+         DeleteResourcePropertiesResponseDocument.Factory.newInstance(  );
+      responseDoc.addNewDeleteResourcePropertiesResponse(  );
+      return responseDoc;
+   }
+}
\ No newline at end of file

Modified: webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/GetMultipleResourcePropertiesPortTypeImpl.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/GetMultipleResourcePropertiesPortTypeImpl.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/GetMultipleResourcePropertiesPortTypeImpl.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/GetMultipleResourcePropertiesPortTypeImpl.java Tue Aug  2 09:28:49 2005
@@ -1,62 +1,82 @@
-package org.apache.ws.resource.properties.v2004_11.porttype.impl;
-
-import org.apache.ws.resource.ResourceContext;
-import org.apache.ws.resource.properties.NamespaceVersionHolder;
-import org.apache.ws.resource.properties.ResourceProperty;
-import org.apache.ws.resource.properties.impl.AbstractGetResourcePropertiesPortType;
-import org.apache.ws.resource.properties.v2004_11.porttype.GetMultipleResourcePropertiesPortType;
-import org.apache.ws.resource.properties.v2004_11.impl.NamespaceVersionHolderImpl;
-import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetMultipleResourcePropertiesDocument;
-import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetMultipleResourcePropertiesResponseDocument;
-
-import javax.xml.namespace.QName;
-
-/**
- * @author Ian Springer
- */
-public class GetMultipleResourcePropertiesPortTypeImpl extends AbstractGetResourcePropertiesPortType
-        implements GetMultipleResourcePropertiesPortType
-{
-
-    private static final NamespaceVersionHolder NAMESPACE_SET = new NamespaceVersionHolderImpl();
-
-    /**
-     * Creates a new {@link GetMultipleResourcePropertiesPortTypeImpl} object.
-     *
-     * @param resourceContext DOCUMENT_ME
-     */
-    public GetMultipleResourcePropertiesPortTypeImpl( ResourceContext resourceContext )
-    {
-        super( resourceContext );
-    }
-
-    /**
-     * DOCUMENT_ME
-     *
-     * @param requestDoc DOCUMENT_ME
-     *
-     * @return DOCUMENT_ME
-     */
-    public GetMultipleResourcePropertiesResponseDocument getMultipleResourceProperties(
-            GetMultipleResourcePropertiesDocument requestDoc )
-    {
-        GetMultipleResourcePropertiesResponseDocument responseDoc = createResponseDocument();
-        QName[] propNames = requestDoc.getGetMultipleResourceProperties().getResourcePropertyArray();
-        ResourceProperty[] props = getMultipleProperties( propNames );
-        addPropertiesToResponse( props, responseDoc.getGetMultipleResourcePropertiesResponse() );
-        return responseDoc;
-    }
-
-
-    private GetMultipleResourcePropertiesResponseDocument createResponseDocument()
-    {
-        GetMultipleResourcePropertiesResponseDocument responseDoc = GetMultipleResourcePropertiesResponseDocument.Factory.newInstance();
-        responseDoc.addNewGetMultipleResourcePropertiesResponse();
-        return responseDoc;
-    }
-
-    protected NamespaceVersionHolder getNamespaceSet()
-    {
-        return NAMESPACE_SET;
-    }
-}
+/*=============================================================================*
+ *  Copyright 2004 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.ws.resource.properties.v2004_11.porttype.impl;
+
+import org.apache.ws.resource.ResourceContext;
+import org.apache.ws.resource.properties.NamespaceVersionHolder;
+import org.apache.ws.resource.properties.ResourceProperty;
+import org.apache.ws.resource.properties.impl.AbstractGetResourcePropertiesPortType;
+import org.apache.ws.resource.properties.v2004_11.impl.NamespaceVersionHolderImpl;
+import org.apache.ws.resource.properties.v2004_11.porttype.GetMultipleResourcePropertiesPortType;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetMultipleResourcePropertiesDocument;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetMultipleResourcePropertiesResponseDocument;
+import javax.xml.namespace.QName;
+
+/**
+ * @author Ian Springer
+ */
+public class GetMultipleResourcePropertiesPortTypeImpl
+   extends AbstractGetResourcePropertiesPortType
+   implements GetMultipleResourcePropertiesPortType
+{
+   private static final NamespaceVersionHolder NAMESPACE_SET = new NamespaceVersionHolderImpl(  );
+
+   /**
+    * Creates a new {@link GetMultipleResourcePropertiesPortTypeImpl} object.
+    *
+    * @param resourceContext DOCUMENT_ME
+    */
+   public GetMultipleResourcePropertiesPortTypeImpl( ResourceContext resourceContext )
+   {
+      super( resourceContext );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param requestDoc DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public GetMultipleResourcePropertiesResponseDocument getMultipleResourceProperties( GetMultipleResourcePropertiesDocument requestDoc )
+   {
+      GetMultipleResourcePropertiesResponseDocument responseDoc = createResponseDocument(  );
+      QName[]                                       propNames =
+         requestDoc.getGetMultipleResourceProperties(  ).getResourcePropertyArray(  );
+      ResourceProperty[]                            props     = getMultipleProperties( propNames );
+      addPropertiesToResponse( props,
+                               responseDoc.getGetMultipleResourcePropertiesResponse(  ) );
+      return responseDoc;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   protected NamespaceVersionHolder getNamespaceSet(  )
+   {
+      return NAMESPACE_SET;
+   }
+
+   private GetMultipleResourcePropertiesResponseDocument createResponseDocument(  )
+   {
+      GetMultipleResourcePropertiesResponseDocument responseDoc =
+         GetMultipleResourcePropertiesResponseDocument.Factory.newInstance(  );
+      responseDoc.addNewGetMultipleResourcePropertiesResponse(  );
+      return responseDoc;
+   }
+}
\ No newline at end of file

Modified: webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/GetResourcePropertyDocumentPortTypeImpl.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/GetResourcePropertyDocumentPortTypeImpl.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/GetResourcePropertyDocumentPortTypeImpl.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/GetResourcePropertyDocumentPortTypeImpl.java Tue Aug  2 09:28:49 2005
@@ -1,65 +1,91 @@
-package org.apache.ws.resource.properties.v2004_11.porttype.impl;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.apache.ws.resource.ResourceContext;
-import org.apache.ws.resource.i18n.MessagesImpl;
-import org.apache.ws.resource.properties.NamespaceVersionHolder;
-import org.apache.ws.resource.properties.impl.AbstractResourcePropertiesPortType;
-import org.apache.ws.resource.properties.impl.XmlBeansResourcePropertySet;
-import org.apache.ws.resource.properties.v2004_11.porttype.GetResourcePropertyDocumentPortType;
-import org.apache.ws.resource.properties.v2004_11.impl.NamespaceVersionHolderImpl;
-import org.apache.ws.util.XmlBeanUtils;
-import org.apache.ws.util.i18n.Messages;
-import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetResourcePropertyDocumentDocument1;
-import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetResourcePropertyDocumentResponseDocument;
-
-
-/**
- * @author Sal Campana
- */
-public class GetResourcePropertyDocumentPortTypeImpl extends AbstractResourcePropertiesPortType implements GetResourcePropertyDocumentPortType
-{
-    private static final Log LOG = LogFactory.getLog( GetMultipleResourcePropertiesPortTypeImpl.class );
-    private static final Messages MSG = MessagesImpl.getInstance();
-    private static final NamespaceVersionHolder NAMESPACE_SET = new NamespaceVersionHolderImpl();
-    /**
-     * Creates a new {@link AbstractResourcePropertiesPortType} object.
-     *
-     * @param resourceContext DOCUMENT_ME
-     */
-    public GetResourcePropertyDocumentPortTypeImpl(ResourceContext resourceContext)
-    {
-        super(resourceContext);
-    }
-
-
-    /**
-     * DOCUMENT_ME
-     *
-     * @param requestDoc DOCUMENT_ME
-     * @return DOCUMENT_ME
-     */
-    public GetResourcePropertyDocumentResponseDocument getResourcePropertyDocument(GetResourcePropertyDocumentDocument1 requestDoc)
-    {
-        GetResourcePropertyDocumentResponseDocument responseDocument = createResponseDocument();
-        GetResourcePropertyDocumentResponseDocument.GetResourcePropertyDocumentResponse responseDoc = responseDocument.getGetResourcePropertyDocumentResponse();
-        XmlBeansResourcePropertySet properties = (XmlBeansResourcePropertySet) getProperties();
-
-        XmlBeanUtils.addChildElement(responseDoc, properties.toXmlObject());
-        return responseDocument;
-    }
-
-     private GetResourcePropertyDocumentResponseDocument createResponseDocument()
-    {
-        GetResourcePropertyDocumentResponseDocument responseDoc =
-                GetResourcePropertyDocumentResponseDocument.Factory.newInstance();
-        responseDoc.addNewGetResourcePropertyDocumentResponse();
-        return responseDoc;
-    }
-
-    protected NamespaceVersionHolder getNamespaceSet()
-    {
-        return NAMESPACE_SET;
-    }
-}
+/*=============================================================================*
+ *  Copyright 2004 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.ws.resource.properties.v2004_11.porttype.impl;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.ws.resource.ResourceContext;
+import org.apache.ws.resource.i18n.MessagesImpl;
+import org.apache.ws.resource.properties.NamespaceVersionHolder;
+import org.apache.ws.resource.properties.impl.AbstractResourcePropertiesPortType;
+import org.apache.ws.resource.properties.impl.XmlBeansResourcePropertySet;
+import org.apache.ws.resource.properties.v2004_11.impl.NamespaceVersionHolderImpl;
+import org.apache.ws.resource.properties.v2004_11.porttype.GetResourcePropertyDocumentPortType;
+import org.apache.ws.util.XmlBeanUtils;
+import org.apache.ws.util.i18n.Messages;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetResourcePropertyDocumentDocument1;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetResourcePropertyDocumentResponseDocument;
+
+/**
+ * @author Sal Campana
+ */
+public class GetResourcePropertyDocumentPortTypeImpl
+   extends AbstractResourcePropertiesPortType
+   implements GetResourcePropertyDocumentPortType
+{
+   private static final Log                    LOG           =
+      LogFactory.getLog( GetMultipleResourcePropertiesPortTypeImpl.class );
+   private static final Messages               MSG           = MessagesImpl.getInstance(  );
+   private static final NamespaceVersionHolder NAMESPACE_SET = new NamespaceVersionHolderImpl(  );
+
+   /**
+    * Creates a new {@link AbstractResourcePropertiesPortType} object.
+    *
+    * @param resourceContext DOCUMENT_ME
+    */
+   public GetResourcePropertyDocumentPortTypeImpl( ResourceContext resourceContext )
+   {
+      super( resourceContext );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param requestDoc DOCUMENT_ME
+    * @return DOCUMENT_ME
+    */
+   public GetResourcePropertyDocumentResponseDocument getResourcePropertyDocument( GetResourcePropertyDocumentDocument1 requestDoc )
+   {
+      GetResourcePropertyDocumentResponseDocument                                     responseDocument =
+         createResponseDocument(  );
+      GetResourcePropertyDocumentResponseDocument.GetResourcePropertyDocumentResponse responseDoc =
+         responseDocument.getGetResourcePropertyDocumentResponse(  );
+      XmlBeansResourcePropertySet                                                     properties  =
+         (XmlBeansResourcePropertySet) getProperties(  );
+
+      XmlBeanUtils.addChildElement( responseDoc,
+                                    properties.toXmlObject(  ) );
+      return responseDocument;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   protected NamespaceVersionHolder getNamespaceSet(  )
+   {
+      return NAMESPACE_SET;
+   }
+
+   private GetResourcePropertyDocumentResponseDocument createResponseDocument(  )
+   {
+      GetResourcePropertyDocumentResponseDocument responseDoc =
+         GetResourcePropertyDocumentResponseDocument.Factory.newInstance(  );
+      responseDoc.addNewGetResourcePropertyDocumentResponse(  );
+      return responseDoc;
+   }
+}
\ No newline at end of file

Modified: webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/GetResourcePropertyPortTypeImpl.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/GetResourcePropertyPortTypeImpl.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/GetResourcePropertyPortTypeImpl.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/GetResourcePropertyPortTypeImpl.java Tue Aug  2 09:28:49 2005
@@ -1,85 +1,88 @@
-/*=============================================================================*
- *  Copyright 2004 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.ws.resource.properties.v2004_11.porttype.impl;
-
-import org.apache.ws.resource.ResourceContext;
-import org.apache.ws.resource.properties.NamespaceVersionHolder;
-import org.apache.ws.resource.properties.ResourceProperty;
-import org.apache.ws.resource.properties.faults.InvalidResourcePropertyQNameFaultException;
-import org.apache.ws.resource.properties.impl.AbstractGetResourcePropertiesPortType;
-import org.apache.ws.resource.properties.v2004_11.porttype.GetResourcePropertyPortType;
-import org.apache.ws.resource.properties.v2004_11.impl.NamespaceVersionHolderImpl;
-import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetResourcePropertyDocument;
-import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetResourcePropertyResponseDocument;
-
-import javax.xml.namespace.QName;
-
-/**
- * An operation provider for wsrp:GetResourceProperty.
- *
- * @author Ian P. Springer
- */
-public class GetResourcePropertyPortTypeImpl
-        extends AbstractGetResourcePropertiesPortType
-        implements GetResourcePropertyPortType
-{
-
-    private static final NamespaceVersionHolder NAMESPACE_SET = new NamespaceVersionHolderImpl() ;
-
-    /**
-     * Creates a new {@link GetResourcePropertyPortTypeImpl} object.
-     *
-     * @param resourceContext DOCUMENT_ME
-     */
-    public GetResourcePropertyPortTypeImpl( ResourceContext resourceContext )
-    {
-        super( resourceContext );
-    }
-
-    /**
-     * Implementation of the wsrp:GetResourceProperty operation.
-     *
-     * @param requestDoc the requestDoc XMLBean
-     *
-     * @return the response XMLBean
-     *
-     * @throws InvalidResourcePropertyQNameFaultException
-     *
-     * @throws org.apache.ws.resource.faults.ResourceKeyHeaderNotFoundFaultException
-     *
-     */
-    public GetResourcePropertyResponseDocument getResourceProperty( GetResourcePropertyDocument requestDoc )
-    {
-        GetResourcePropertyResponseDocument responseDoc = createResponseDocument();
-        QName propName = requestDoc.getGetResourceProperty();
-        ResourceProperty prop = getProperty( propName );
-        addPropertyToResponse( prop, responseDoc.getGetResourcePropertyResponse() );
-        return responseDoc;
-    }
-
-    private GetResourcePropertyResponseDocument createResponseDocument()
-    {
-        GetResourcePropertyResponseDocument responseDoc = GetResourcePropertyResponseDocument.Factory.newInstance();
-        responseDoc.addNewGetResourcePropertyResponse();
-        return responseDoc;
-    }
-
-    protected NamespaceVersionHolder getNamespaceSet()
-    {
-        return NAMESPACE_SET;
-    }
-
+/*=============================================================================*
+ *  Copyright 2004 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.ws.resource.properties.v2004_11.porttype.impl;
+
+import org.apache.ws.resource.ResourceContext;
+import org.apache.ws.resource.properties.NamespaceVersionHolder;
+import org.apache.ws.resource.properties.ResourceProperty;
+import org.apache.ws.resource.properties.impl.AbstractGetResourcePropertiesPortType;
+import org.apache.ws.resource.properties.v2004_11.impl.NamespaceVersionHolderImpl;
+import org.apache.ws.resource.properties.v2004_11.porttype.GetResourcePropertyPortType;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetResourcePropertyDocument;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetResourcePropertyResponseDocument;
+import javax.xml.namespace.QName;
+
+/**
+ * An operation provider for wsrp:GetResourceProperty.
+ *
+ * @author Ian P. Springer
+ */
+public class GetResourcePropertyPortTypeImpl
+   extends AbstractGetResourcePropertiesPortType
+   implements GetResourcePropertyPortType
+{
+   private static final NamespaceVersionHolder NAMESPACE_SET = new NamespaceVersionHolderImpl(  );
+
+   /**
+    * Creates a new {@link GetResourcePropertyPortTypeImpl} object.
+    *
+    * @param resourceContext DOCUMENT_ME
+    */
+   public GetResourcePropertyPortTypeImpl( ResourceContext resourceContext )
+   {
+      super( resourceContext );
+   }
+
+   /**
+    * Implementation of the wsrp:GetResourceProperty operation.
+    *
+    * @param requestDoc the requestDoc XMLBean
+    *
+    * @return the response XMLBean
+    *
+    * @throws InvalidResourcePropertyQNameFaultException
+    *
+    * @throws org.apache.ws.resource.faults.ResourceKeyHeaderNotFoundFaultException
+    *
+    */
+   public GetResourcePropertyResponseDocument getResourceProperty( GetResourcePropertyDocument requestDoc )
+   {
+      GetResourcePropertyResponseDocument responseDoc = createResponseDocument(  );
+      QName                               propName = requestDoc.getGetResourceProperty(  );
+      ResourceProperty                    prop     = getProperty( propName );
+      addPropertyToResponse( prop,
+                             responseDoc.getGetResourcePropertyResponse(  ) );
+      return responseDoc;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   protected NamespaceVersionHolder getNamespaceSet(  )
+   {
+      return NAMESPACE_SET;
+   }
+
+   private GetResourcePropertyResponseDocument createResponseDocument(  )
+   {
+      GetResourcePropertyResponseDocument responseDoc =
+         GetResourcePropertyResponseDocument.Factory.newInstance(  );
+      responseDoc.addNewGetResourcePropertyResponse(  );
+      return responseDoc;
+   }
 }

Modified: webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/InsertResourcePropertiesPortTypeImpl.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/InsertResourcePropertiesPortTypeImpl.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/InsertResourcePropertiesPortTypeImpl.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/InsertResourcePropertiesPortTypeImpl.java Tue Aug  2 09:28:49 2005
@@ -1,67 +1,98 @@
-package org.apache.ws.resource.properties.v2004_11.porttype.impl;
-
-import org.apache.ws.resource.ResourceContext;
-import org.apache.ws.resource.properties.NamespaceVersionHolder;
-import org.apache.ws.resource.properties.impl.AbstractSetResourcePropertiesPortType;
-import org.apache.ws.resource.properties.impl.AbstractXmlBeansResourcePropertyValueChangeEvent;
-import org.apache.ws.resource.properties.v2004_11.porttype.InsertResourcePropertiesPortType;
-import org.apache.ws.resource.properties.v2004_11.impl.NamespaceVersionHolderImpl;
-import org.apache.ws.resource.properties.v2004_11.impl.XmlBeansResourcePropertyValueChangeEvent;
-import org.apache.ws.util.XmlBeanUtils;
-import org.apache.xmlbeans.XmlObject;
-import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.InsertResourcePropertiesDocument;
-import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.InsertResourcePropertiesResponseDocument;
-
-/**
- * @author Sal Campana
- */
-public class InsertResourcePropertiesPortTypeImpl extends AbstractSetResourcePropertiesPortType
-        implements InsertResourcePropertiesPortType
-{
-
-    private static final NamespaceVersionHolder NAMESPACE_SET = new NamespaceVersionHolderImpl();
-
-    /**
-     * Creates a new {@link InsertResourcePropertiesPortTypeImpl} object.
-     *
-     * @param resourceContext DOCUMENT_ME
-     */
-    public InsertResourcePropertiesPortTypeImpl( ResourceContext resourceContext )
-    {
-        super( resourceContext );
-    }
-
-    /**
-     * DOCUMENT_ME
-     *
-     * @param requestDoc DOCUMENT_ME
-     *
-     * @return DOCUMENT_ME
-     */
-    public InsertResourcePropertiesResponseDocument insertResourceProperties(
-            InsertResourcePropertiesDocument requestDoc )
-    {
-        InsertResourcePropertiesResponseDocument responseDoc = createResponseDocument();
-        InsertResourcePropertiesDocument.InsertResourceProperties requestElem = requestDoc.getInsertResourceProperties();
-        XmlObject[] propElemsToBeInserted = XmlBeanUtils.getChildElements( requestElem.getInsert() );
-        insertResourceProperty( propElemsToBeInserted );
-        return responseDoc;
-    }
-
-    private InsertResourcePropertiesResponseDocument createResponseDocument()
-    {
-        InsertResourcePropertiesResponseDocument responseDoc = InsertResourcePropertiesResponseDocument.Factory.newInstance();
-        responseDoc.addNewInsertResourcePropertiesResponse();
-        return responseDoc;
-    }
-
-    protected NamespaceVersionHolder getNamespaceSet()
-    {
-        return NAMESPACE_SET;
-    }
-
-    protected AbstractXmlBeansResourcePropertyValueChangeEvent getResourcePropertyValueChangeEvent(Object[] oldValue, Object[] newValue)
-    {
-        return new XmlBeansResourcePropertyValueChangeEvent(oldValue,newValue);
-    }
-}
+/*=============================================================================*
+ *  Copyright 2004 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.ws.resource.properties.v2004_11.porttype.impl;
+
+import org.apache.ws.resource.ResourceContext;
+import org.apache.ws.resource.properties.NamespaceVersionHolder;
+import org.apache.ws.resource.properties.impl.AbstractSetResourcePropertiesPortType;
+import org.apache.ws.resource.properties.impl.AbstractXmlBeansResourcePropertyValueChangeEvent;
+import org.apache.ws.resource.properties.v2004_11.impl.NamespaceVersionHolderImpl;
+import org.apache.ws.resource.properties.v2004_11.impl.XmlBeansResourcePropertyValueChangeEvent;
+import org.apache.ws.resource.properties.v2004_11.porttype.InsertResourcePropertiesPortType;
+import org.apache.ws.util.XmlBeanUtils;
+import org.apache.xmlbeans.XmlObject;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.InsertResourcePropertiesDocument;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.InsertResourcePropertiesResponseDocument;
+
+/**
+ * @author Sal Campana
+ */
+public class InsertResourcePropertiesPortTypeImpl
+   extends AbstractSetResourcePropertiesPortType
+   implements InsertResourcePropertiesPortType
+{
+   private static final NamespaceVersionHolder NAMESPACE_SET = new NamespaceVersionHolderImpl(  );
+
+   /**
+    * Creates a new {@link InsertResourcePropertiesPortTypeImpl} object.
+    *
+    * @param resourceContext DOCUMENT_ME
+    */
+   public InsertResourcePropertiesPortTypeImpl( ResourceContext resourceContext )
+   {
+      super( resourceContext );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param requestDoc DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public InsertResourcePropertiesResponseDocument insertResourceProperties( InsertResourcePropertiesDocument requestDoc )
+   {
+      InsertResourcePropertiesResponseDocument                  responseDoc           = createResponseDocument(  );
+      InsertResourcePropertiesDocument.InsertResourceProperties requestElem           =
+         requestDoc.getInsertResourceProperties(  );
+      XmlObject[]                                               propElemsToBeInserted =
+         XmlBeanUtils.getChildElements( requestElem.getInsert(  ) );
+      insertResourceProperty( propElemsToBeInserted );
+      return responseDoc;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   protected NamespaceVersionHolder getNamespaceSet(  )
+   {
+      return NAMESPACE_SET;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param oldValue DOCUMENT_ME
+    * @param newValue DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   protected AbstractXmlBeansResourcePropertyValueChangeEvent getResourcePropertyValueChangeEvent( Object[] oldValue,
+                                                                                                   Object[] newValue )
+   {
+      return new XmlBeansResourcePropertyValueChangeEvent( oldValue, newValue );
+   }
+
+   private InsertResourcePropertiesResponseDocument createResponseDocument(  )
+   {
+      InsertResourcePropertiesResponseDocument responseDoc =
+         InsertResourcePropertiesResponseDocument.Factory.newInstance(  );
+      responseDoc.addNewInsertResourcePropertiesResponse(  );
+      return responseDoc;
+   }
+}
\ No newline at end of file

Modified: webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/QueryResourcePropertiesPortTypeImpl.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/QueryResourcePropertiesPortTypeImpl.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/QueryResourcePropertiesPortTypeImpl.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/QueryResourcePropertiesPortTypeImpl.java Tue Aug  2 09:28:49 2005
@@ -1,157 +1,167 @@
-/*=============================================================================*
- *  Copyright 2004 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.ws.resource.properties.v2004_11.porttype.impl;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.apache.ws.resource.ResourceContext;
-import org.apache.ws.resource.i18n.Keys;
-import org.apache.ws.resource.i18n.MessagesImpl;
-import org.apache.ws.resource.properties.NamespaceVersionHolder;
-import org.apache.ws.resource.properties.faults.InvalidQueryExpressionFaultException;
-import org.apache.ws.resource.properties.faults.QueryEvaluationErrorFaultException;
-import org.apache.ws.resource.properties.faults.UnknownQueryExpressionDialectFaultException;
-import org.apache.ws.resource.properties.impl.AbstractResourcePropertiesPortType;
-import org.apache.ws.resource.properties.query.InvalidQueryExpressionException;
-import org.apache.ws.resource.properties.query.QueryEngine;
-import org.apache.ws.resource.properties.query.QueryEvaluationErrorException;
-import org.apache.ws.resource.properties.query.UnknownQueryExpressionDialectException;
-import org.apache.ws.resource.properties.query.impl.QueryEngineImpl;
-import org.apache.ws.resource.properties.query.impl.XmlBeansQueryExpression;
-import org.apache.ws.resource.properties.v2004_11.impl.NamespaceVersionHolderImpl;
-import org.apache.ws.resource.properties.v2004_11.porttype.QueryResourcePropertiesPortType;
-import org.apache.ws.util.XmlBeanUtils;
-import org.apache.ws.util.i18n.Messages;
-import org.apache.xmlbeans.XmlObject;
-import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.QueryExpressionType;
-import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.QueryResourcePropertiesDocument;
-import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.QueryResourcePropertiesResponseDocument;
-
-import java.lang.reflect.Array;
-
-/**
- * LOG-DONE An operation provider for wsrp:QueryResourceProperties.
- *
- * TODO (v1.1): factor out a common base class to be shared across spec versions
- * 
- * @author Ian P. Springer
- */
-public class QueryResourcePropertiesPortTypeImpl
-        extends AbstractResourcePropertiesPortType
-        implements QueryResourcePropertiesPortType
-{
-
-    private static final Log LOG = LogFactory.getLog( QueryResourcePropertiesPortTypeImpl.class );
-    private static final Messages MSG = MessagesImpl.getInstance();
-    private static final NamespaceVersionHolder NAMESPACE_SET = new NamespaceVersionHolderImpl();
-    private static final QueryEngine QUERY_ENGINE = new QueryEngineImpl();
-
-    /**
-     * Creates a new {@link QueryResourcePropertiesPortTypeImpl} object.
-     *
-     * @param resourceContext DOCUMENT_ME
-     */
-    public QueryResourcePropertiesPortTypeImpl( ResourceContext resourceContext )
-    {
-        super( resourceContext );
-    }
-
-    protected NamespaceVersionHolder getNamespaceSet()
-    {
-        return NAMESPACE_SET;
-    }
-
-    /**
-     * Implementation of the wsrp:QueryResourceProperties operation.
-     *
-     * @param requestDoc the requestDoc XMLBean
-     *
-     * @return the response XMLBean
-     *
-     * @throws org.apache.ws.resource.faults.ResourceKeyHeaderNotFoundFaultException
-     *
-     * @throws UnknownQueryExpressionDialectFaultException
-     *          if query dialect is unsupported.
-     * @throws QueryEvaluationErrorFaultException
-     *          if query evaluation fails.
-     * @throws InvalidQueryExpressionFaultException
-     *          if query expression is invalid.
-     */
-    public QueryResourcePropertiesResponseDocument queryResourceProperties( QueryResourcePropertiesDocument requestDoc )
-    {
-        if ( LOG.isDebugEnabled() )
-        {
-            LOG.debug( MSG.getMessage( Keys.QUERY_RP_REQ,
-                    requestDoc.toString() ) );
-        }
-
-        QueryResourcePropertiesResponseDocument responseDoc = createResponseDocument();
-        QueryExpressionType queryExprType = requestDoc.getQueryResourceProperties().getQueryExpression();
-        XmlBeansQueryExpression queryExpr = new XmlBeansQueryExpression( queryExprType );
-        refreshAllProperties();
-        Object result = null;
-        try
-        {
-            result = QUERY_ENGINE.executeQuery( queryExpr,
-                    getProperties() );
-        }
-        catch ( UnknownQueryExpressionDialectException uqede )
-        {
-            throw new UnknownQueryExpressionDialectFaultException( NAMESPACE_SET, uqede.getDialect() );
-        }
-        catch ( QueryEvaluationErrorException qeee )
-        {
-            throw new QueryEvaluationErrorFaultException(NAMESPACE_SET,  qeee.getMessage() );
-        }
-        catch ( InvalidQueryExpressionException iqee )
-        {
-            throw new InvalidQueryExpressionFaultException(NAMESPACE_SET,  queryExpr );
-        }
-
-        QueryResourcePropertiesResponseDocument.QueryResourcePropertiesResponse responseElem =
-                responseDoc.getQueryResourcePropertiesResponse();
-        if ( result.getClass().isArray() )
-        {
-            for ( int i = 0; i < Array.getLength( result ); i++ )
-            {
-                Object resultItem = Array.get( result, i );
-                XmlObject resultXBean = null;
-                try
-                {
-                    resultXBean = XmlBeanUtils.toXmlObject( resultItem );
-                }
-                catch ( Exception e )
-                {
-                    throw new RuntimeException( "Unable to convert query result object to XmlObject.", e );
-                }
-                XmlBeanUtils.addChildElement( responseElem, resultXBean );
-            }
-        }
-        else
-        {
-            XmlBeanUtils.setValue( responseElem, result.toString() );
-        }
-        return responseDoc;
-    }
-
-    private QueryResourcePropertiesResponseDocument createResponseDocument()
-    {
-        QueryResourcePropertiesResponseDocument responseDoc =
-                QueryResourcePropertiesResponseDocument.Factory.newInstance();
-        responseDoc.addNewQueryResourcePropertiesResponse();
-        return responseDoc;
-    }
+/*=============================================================================*
+ *  Copyright 2004 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.ws.resource.properties.v2004_11.porttype.impl;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.ws.resource.ResourceContext;
+import org.apache.ws.resource.i18n.Keys;
+import org.apache.ws.resource.i18n.MessagesImpl;
+import org.apache.ws.resource.properties.NamespaceVersionHolder;
+import org.apache.ws.resource.properties.faults.InvalidQueryExpressionFaultException;
+import org.apache.ws.resource.properties.faults.QueryEvaluationErrorFaultException;
+import org.apache.ws.resource.properties.faults.UnknownQueryExpressionDialectFaultException;
+import org.apache.ws.resource.properties.impl.AbstractResourcePropertiesPortType;
+import org.apache.ws.resource.properties.query.InvalidQueryExpressionException;
+import org.apache.ws.resource.properties.query.QueryEngine;
+import org.apache.ws.resource.properties.query.QueryEvaluationErrorException;
+import org.apache.ws.resource.properties.query.UnknownQueryExpressionDialectException;
+import org.apache.ws.resource.properties.query.impl.QueryEngineImpl;
+import org.apache.ws.resource.properties.query.impl.XmlBeansQueryExpression;
+import org.apache.ws.resource.properties.v2004_11.impl.NamespaceVersionHolderImpl;
+import org.apache.ws.resource.properties.v2004_11.porttype.QueryResourcePropertiesPortType;
+import org.apache.ws.util.XmlBeanUtils;
+import org.apache.ws.util.i18n.Messages;
+import org.apache.xmlbeans.XmlObject;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.QueryExpressionType;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.QueryResourcePropertiesDocument;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.QueryResourcePropertiesResponseDocument;
+import java.lang.reflect.Array;
+
+/**
+ * LOG-DONE An operation provider for wsrp:QueryResourceProperties.
+ *
+ * TODO (v1.1): factor out a common base class to be shared across spec versions
+ *
+ * @author Ian P. Springer
+ */
+public class QueryResourcePropertiesPortTypeImpl
+   extends AbstractResourcePropertiesPortType
+   implements QueryResourcePropertiesPortType
+{
+   private static final Log                    LOG           =
+      LogFactory.getLog( QueryResourcePropertiesPortTypeImpl.class );
+   private static final Messages               MSG           = MessagesImpl.getInstance(  );
+   private static final NamespaceVersionHolder NAMESPACE_SET = new NamespaceVersionHolderImpl(  );
+   private static final QueryEngine            QUERY_ENGINE  = new QueryEngineImpl(  );
+
+   /**
+    * Creates a new {@link QueryResourcePropertiesPortTypeImpl} object.
+    *
+    * @param resourceContext DOCUMENT_ME
+    */
+   public QueryResourcePropertiesPortTypeImpl( ResourceContext resourceContext )
+   {
+      super( resourceContext );
+   }
+
+   /**
+    * Implementation of the wsrp:QueryResourceProperties operation.
+    *
+    * @param requestDoc the requestDoc XMLBean
+    *
+    * @return the response XMLBean
+    *
+    * @throws org.apache.ws.resource.faults.ResourceKeyHeaderNotFoundFaultException
+    *
+    * @throws UnknownQueryExpressionDialectFaultException
+    *          if query dialect is unsupported.
+    * @throws QueryEvaluationErrorFaultException
+    *          if query evaluation fails.
+    * @throws InvalidQueryExpressionFaultException
+    *          if query expression is invalid.
+    */
+   public QueryResourcePropertiesResponseDocument queryResourceProperties( QueryResourcePropertiesDocument requestDoc )
+   {
+      if ( LOG.isDebugEnabled(  ) )
+      {
+         LOG.debug( MSG.getMessage( Keys.QUERY_RP_REQ,
+                                    requestDoc.toString(  ) ) );
+      }
+
+      QueryResourcePropertiesResponseDocument responseDoc   = createResponseDocument(  );
+      QueryExpressionType                     queryExprType =
+         requestDoc.getQueryResourceProperties(  ).getQueryExpression(  );
+      XmlBeansQueryExpression                 queryExpr     = new XmlBeansQueryExpression( queryExprType );
+      refreshAllProperties(  );
+      Object result = null;
+      try
+      {
+         result = QUERY_ENGINE.executeQuery( queryExpr,
+                                             getProperties(  ) );
+      }
+      catch ( UnknownQueryExpressionDialectException uqede )
+      {
+         throw new UnknownQueryExpressionDialectFaultException( NAMESPACE_SET,
+                                                                uqede.getDialect(  ) );
+      }
+      catch ( QueryEvaluationErrorException qeee )
+      {
+         throw new QueryEvaluationErrorFaultException( NAMESPACE_SET,
+                                                       qeee.getMessage(  ) );
+      }
+      catch ( InvalidQueryExpressionException iqee )
+      {
+         throw new InvalidQueryExpressionFaultException( NAMESPACE_SET, queryExpr );
+      }
+
+      QueryResourcePropertiesResponseDocument.QueryResourcePropertiesResponse responseElem =
+         responseDoc.getQueryResourcePropertiesResponse(  );
+      if ( result.getClass(  ).isArray(  ) )
+      {
+         for ( int i = 0; i < Array.getLength( result ); i++ )
+         {
+            Object    resultItem  = Array.get( result, i );
+            XmlObject resultXBean = null;
+            try
+            {
+               resultXBean = XmlBeanUtils.toXmlObject( resultItem );
+            }
+            catch ( Exception e )
+            {
+               throw new RuntimeException( "Unable to convert query result object to XmlObject.", e );
+            }
+
+            XmlBeanUtils.addChildElement( responseElem, resultXBean );
+         }
+      }
+      else
+      {
+         XmlBeanUtils.setValue( responseElem,
+                                result.toString(  ) );
+      }
+
+      return responseDoc;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   protected NamespaceVersionHolder getNamespaceSet(  )
+   {
+      return NAMESPACE_SET;
+   }
+
+   private QueryResourcePropertiesResponseDocument createResponseDocument(  )
+   {
+      QueryResourcePropertiesResponseDocument responseDoc =
+         QueryResourcePropertiesResponseDocument.Factory.newInstance(  );
+      responseDoc.addNewQueryResourcePropertiesResponse(  );
+      return responseDoc;
+   }
 }

Modified: webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/SetResourcePropertiesPortTypeImpl.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/SetResourcePropertiesPortTypeImpl.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/SetResourcePropertiesPortTypeImpl.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/SetResourcePropertiesPortTypeImpl.java Tue Aug  2 09:28:49 2005
@@ -1,160 +1,178 @@
-/*=============================================================================*
- *  Copyright 2004 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.ws.resource.properties.v2004_11.porttype.impl;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.apache.ws.resource.ResourceContext;
-import org.apache.ws.resource.i18n.Keys;
-import org.apache.ws.resource.i18n.MessagesImpl;
-import org.apache.ws.resource.properties.NamespaceVersionHolder;
-import org.apache.ws.resource.properties.faults.InvalidResourcePropertyQNameFaultException;
-import org.apache.ws.resource.properties.faults.InsertResourcePropertyRequestFailedFaultException;
-import org.apache.ws.resource.properties.faults.SetResourcePropertyRequestFailedFaultException;
-import org.apache.ws.resource.properties.faults.InvalidInsertResourcePropertiesRequestContentFaultException;
-import org.apache.ws.resource.properties.faults.InvalidSetResourcePropertiesRequestContentFaultException;
-import org.apache.ws.resource.properties.faults.DeleteResourcePropertyRequestFailedFaultException;
-import org.apache.ws.resource.properties.faults.UpdateResourcePropertyRequestFailedFaultException;
-import org.apache.ws.resource.properties.faults.InvalidUpdateResourcePropertiesRequestContentFaultException;
-import org.apache.ws.resource.properties.impl.AbstractSetResourcePropertiesPortType;
-import org.apache.ws.resource.properties.impl.AbstractXmlBeansResourcePropertyValueChangeEvent;
-import org.apache.ws.resource.properties.v2004_11.porttype.SetResourcePropertiesPortType;
-import org.apache.ws.resource.properties.v2004_11.impl.NamespaceVersionHolderImpl;
-import org.apache.ws.resource.properties.v2004_11.impl.XmlBeansResourcePropertyValueChangeEvent;
-import org.apache.ws.util.XmlBeanUtils;
-import org.apache.ws.util.i18n.Messages;
-import org.apache.xmlbeans.XmlObject;
-import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.DeleteType;
-import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.InsertType;
-import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.SetResourcePropertiesDocument;
-import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.SetResourcePropertiesResponseDocument;
-import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.UpdateType;
-
-/**
- * An implementation of the wsrpw:SetResourceProperties portType.
- *
- * @author Ian P. Springer
- */
-public class SetResourcePropertiesPortTypeImpl
-        extends AbstractSetResourcePropertiesPortType
-        implements SetResourcePropertiesPortType
-{
-
-    private static final Log LOG = LogFactory.getLog( SetResourcePropertiesPortTypeImpl.class );
-    private static final Messages MSG = MessagesImpl.getInstance();
-    private static final NamespaceVersionHolder NAMESPACE_SET = new NamespaceVersionHolderImpl() ;
-
-    /**
-     * Creates a new {@link SetResourcePropertiesPortTypeImpl} object.
-     *
-     * @param resourceContext DOCUMENT_ME
-     */
-    public SetResourcePropertiesPortTypeImpl( ResourceContext resourceContext )
-    {
-        super( resourceContext );
-    }
-
-    /**
-     * Implementation of the wsrpw:SetResourceProperties operation.
-     *
-     * @param requestDoc the requestDoc XMLBean
-     *
-     * @return the response XMLBean
-     *
-     * @throws InvalidResourcePropertyQNameFaultException
-     *
-     * @throws org.apache.ws.resource.faults.ResourceKeyHeaderNotFoundFaultException
-     */
-    public SetResourcePropertiesResponseDocument setResourceProperties( SetResourcePropertiesDocument requestDoc )
-    {
-        if ( LOG.isDebugEnabled() )
-        {
-            LOG.debug( MSG.getMessage( Keys.SET_RP_REQ, requestDoc ) );
-        }
-
-        SetResourcePropertiesResponseDocument responseDoc = createResponseDocument();
-        SetResourcePropertiesDocument.SetResourceProperties requestElem = requestDoc.getSetResourceProperties();
-
-        InsertType[] insertElems = requestElem.getInsertArray();
-        for ( int i = 0; i < insertElems.length; i++ )
-        {
-            XmlObject[] propElemsToBeInserted = XmlBeanUtils.getChildElements( insertElems[i] );
-            try
-            {
-                insertResourceProperty( propElemsToBeInserted );
-            }
-            catch ( InsertResourcePropertyRequestFailedFaultException fault )
-            {
-                throw new SetResourcePropertyRequestFailedFaultException( getNamespaceSet(), fault.getFaultString() );
-            }
-            catch ( InvalidInsertResourcePropertiesRequestContentFaultException fault )
-            {
-                throw new InvalidSetResourcePropertiesRequestContentFaultException( getNamespaceSet(), fault.getFaultString() );
-            }
-        }
-
-        DeleteType[] deleteElems = requestElem.getDeleteArray();
-        for ( int i = 0; i < deleteElems.length; i++ )
-        {
-            try
-            {
-                deleteResourceProperty( deleteElems[i].getResourceProperty() );
-            }
-            catch ( DeleteResourcePropertyRequestFailedFaultException fault )
-            {
-                throw new SetResourcePropertyRequestFailedFaultException( getNamespaceSet(), fault.getFaultString() );
-            }
-        }
-
-        UpdateType[] updateElems = requestElem.getUpdateArray();
-        for ( int i = 0; i < updateElems.length; i++ )
-        {
-            XmlObject[] newPropElems = XmlBeanUtils.getChildElements( updateElems[i] );
-            try
-            {
-                updateResourceProperty( newPropElems );
-            }
-            catch ( UpdateResourcePropertyRequestFailedFaultException fault )
-            {
-                throw new SetResourcePropertyRequestFailedFaultException( getNamespaceSet(), fault.getFaultString() );
-            }
-            catch ( InvalidUpdateResourcePropertiesRequestContentFaultException fault )
-            {
-                throw new InvalidSetResourcePropertiesRequestContentFaultException( getNamespaceSet(), fault.getFaultString() );
-            }
-        }
-
-        return responseDoc;
-    }
-
-    private SetResourcePropertiesResponseDocument createResponseDocument()
-    {
-        SetResourcePropertiesResponseDocument responseDoc =
-                SetResourcePropertiesResponseDocument.Factory.newInstance();
-        responseDoc.addNewSetResourcePropertiesResponse();
-        return responseDoc;
-    }
-
-    protected NamespaceVersionHolder getNamespaceSet()
-    {
-        return NAMESPACE_SET;
-    }
-
-    protected AbstractXmlBeansResourcePropertyValueChangeEvent getResourcePropertyValueChangeEvent(Object[] oldValue, Object[] newValue)
-    {
-        return new XmlBeansResourcePropertyValueChangeEvent(oldValue,newValue);
-    }
+/*=============================================================================*
+ *  Copyright 2004 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.ws.resource.properties.v2004_11.porttype.impl;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.ws.resource.ResourceContext;
+import org.apache.ws.resource.i18n.Keys;
+import org.apache.ws.resource.i18n.MessagesImpl;
+import org.apache.ws.resource.properties.NamespaceVersionHolder;
+import org.apache.ws.resource.properties.faults.DeleteResourcePropertyRequestFailedFaultException;
+import org.apache.ws.resource.properties.faults.InsertResourcePropertyRequestFailedFaultException;
+import org.apache.ws.resource.properties.faults.InvalidInsertResourcePropertiesRequestContentFaultException;
+import org.apache.ws.resource.properties.faults.InvalidSetResourcePropertiesRequestContentFaultException;
+import org.apache.ws.resource.properties.faults.InvalidUpdateResourcePropertiesRequestContentFaultException;
+import org.apache.ws.resource.properties.faults.SetResourcePropertyRequestFailedFaultException;
+import org.apache.ws.resource.properties.faults.UpdateResourcePropertyRequestFailedFaultException;
+import org.apache.ws.resource.properties.impl.AbstractSetResourcePropertiesPortType;
+import org.apache.ws.resource.properties.impl.AbstractXmlBeansResourcePropertyValueChangeEvent;
+import org.apache.ws.resource.properties.v2004_11.impl.NamespaceVersionHolderImpl;
+import org.apache.ws.resource.properties.v2004_11.impl.XmlBeansResourcePropertyValueChangeEvent;
+import org.apache.ws.resource.properties.v2004_11.porttype.SetResourcePropertiesPortType;
+import org.apache.ws.util.XmlBeanUtils;
+import org.apache.ws.util.i18n.Messages;
+import org.apache.xmlbeans.XmlObject;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.DeleteType;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.InsertType;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.SetResourcePropertiesDocument;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.SetResourcePropertiesResponseDocument;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.UpdateType;
+
+/**
+ * An implementation of the wsrpw:SetResourceProperties portType.
+ *
+ * @author Ian P. Springer
+ */
+public class SetResourcePropertiesPortTypeImpl
+   extends AbstractSetResourcePropertiesPortType
+   implements SetResourcePropertiesPortType
+{
+   private static final Log                    LOG           =
+      LogFactory.getLog( SetResourcePropertiesPortTypeImpl.class );
+   private static final Messages               MSG           = MessagesImpl.getInstance(  );
+   private static final NamespaceVersionHolder NAMESPACE_SET = new NamespaceVersionHolderImpl(  );
+
+   /**
+    * Creates a new {@link SetResourcePropertiesPortTypeImpl} object.
+    *
+    * @param resourceContext DOCUMENT_ME
+    */
+   public SetResourcePropertiesPortTypeImpl( ResourceContext resourceContext )
+   {
+      super( resourceContext );
+   }
+
+   /**
+    * Implementation of the wsrpw:SetResourceProperties operation.
+    *
+    * @param requestDoc the requestDoc XMLBean
+    *
+    * @return the response XMLBean
+    *
+    * @throws InvalidResourcePropertyQNameFaultException
+    *
+    * @throws org.apache.ws.resource.faults.ResourceKeyHeaderNotFoundFaultException
+    */
+   public SetResourcePropertiesResponseDocument setResourceProperties( SetResourcePropertiesDocument requestDoc )
+   {
+      if ( LOG.isDebugEnabled(  ) )
+      {
+         LOG.debug( MSG.getMessage( Keys.SET_RP_REQ, requestDoc ) );
+      }
+
+      SetResourcePropertiesResponseDocument               responseDoc = createResponseDocument(  );
+      SetResourcePropertiesDocument.SetResourceProperties requestElem = requestDoc.getSetResourceProperties(  );
+
+      InsertType[]                                        insertElems = requestElem.getInsertArray(  );
+      for ( int i = 0; i < insertElems.length; i++ )
+      {
+         XmlObject[] propElemsToBeInserted = XmlBeanUtils.getChildElements( insertElems[i] );
+         try
+         {
+            insertResourceProperty( propElemsToBeInserted );
+         }
+         catch ( InsertResourcePropertyRequestFailedFaultException fault )
+         {
+            throw new SetResourcePropertyRequestFailedFaultException( getNamespaceSet(  ),
+                                                                      fault.getFaultString(  ) );
+         }
+         catch ( InvalidInsertResourcePropertiesRequestContentFaultException fault )
+         {
+            throw new InvalidSetResourcePropertiesRequestContentFaultException( getNamespaceSet(  ),
+                                                                                fault.getFaultString(  ) );
+         }
+      }
+
+      DeleteType[] deleteElems = requestElem.getDeleteArray(  );
+      for ( int i = 0; i < deleteElems.length; i++ )
+      {
+         try
+         {
+            deleteResourceProperty( deleteElems[i].getResourceProperty(  ) );
+         }
+         catch ( DeleteResourcePropertyRequestFailedFaultException fault )
+         {
+            throw new SetResourcePropertyRequestFailedFaultException( getNamespaceSet(  ),
+                                                                      fault.getFaultString(  ) );
+         }
+      }
+
+      UpdateType[] updateElems = requestElem.getUpdateArray(  );
+      for ( int i = 0; i < updateElems.length; i++ )
+      {
+         XmlObject[] newPropElems = XmlBeanUtils.getChildElements( updateElems[i] );
+         try
+         {
+            updateResourceProperty( newPropElems );
+         }
+         catch ( UpdateResourcePropertyRequestFailedFaultException fault )
+         {
+            throw new SetResourcePropertyRequestFailedFaultException( getNamespaceSet(  ),
+                                                                      fault.getFaultString(  ) );
+         }
+         catch ( InvalidUpdateResourcePropertiesRequestContentFaultException fault )
+         {
+            throw new InvalidSetResourcePropertiesRequestContentFaultException( getNamespaceSet(  ),
+                                                                                fault.getFaultString(  ) );
+         }
+      }
+
+      return responseDoc;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   protected NamespaceVersionHolder getNamespaceSet(  )
+   {
+      return NAMESPACE_SET;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param oldValue DOCUMENT_ME
+    * @param newValue DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   protected AbstractXmlBeansResourcePropertyValueChangeEvent getResourcePropertyValueChangeEvent( Object[] oldValue,
+                                                                                                   Object[] newValue )
+   {
+      return new XmlBeansResourcePropertyValueChangeEvent( oldValue, newValue );
+   }
+
+   private SetResourcePropertiesResponseDocument createResponseDocument(  )
+   {
+      SetResourcePropertiesResponseDocument responseDoc =
+         SetResourcePropertiesResponseDocument.Factory.newInstance(  );
+      responseDoc.addNewSetResourcePropertiesResponse(  );
+      return responseDoc;
+   }
 }



Mime
View raw message