You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsrf-dev@ws.apache.org by ip...@apache.org on 2005/03/19 00:16:05 UTC
svn commit: r158163 [2/3] - in incubator/apollo/trunk/src:
java/org/apache/ws/resource/faults/v2004_06/
java/org/apache/ws/resource/faults/v2004_11/
java/org/apache/ws/resource/lifetime/v2004_06/
java/org/apache/ws/resource/lifetime/v2004_06/porttype/
java/org/apache/ws/resource/lifetime/v2004_06/porttype/impl/
java/org/apache/ws/resource/lifetime/v2004_11/
java/org/apache/ws/resource/lifetime/v2004_11/porttype/
java/org/apache/ws/resource/lifetime/v2004_11/porttype/impl/
java/org/apache/ws/resource/properties/v2004_06/
java/org/apache/ws/resource/properties/v2004_06/impl/
java/org/apache/ws/resource/properties/v2004_06/porttype/
java/org/apache/ws/resource/properties/v2004_06/porttype/impl/
java/org/apache/ws/resource/properties/v2004_11/
java/org/apache/ws/resource/properties/v2004_11/impl/
java/org/apache/ws/resource/properties/v2004_11/porttype/
java/org/apache/ws/resource/properties/v2004_11/porttype/impl/
java/org/apache/ws/resource/servicegroup/v2004_06/
java/org/apache/ws/resource/servicegroup/v2004_06/porttype/
java/org/apache/ws/resource/servicegroup/v2004_11/
test/org/apache/ws/resource/properties/
Added: incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_06/porttype/impl/SetResourcePropertiesPortTypeImpl.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_06/porttype/impl/SetResourcePropertiesPortTypeImpl.java?view=auto&rev=158163
==============================================================================
--- incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_06/porttype/impl/SetResourcePropertiesPortTypeImpl.java (added)
+++ incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_06/porttype/impl/SetResourcePropertiesPortTypeImpl.java Fri Mar 18 15:15:56 2005
@@ -0,0 +1,154 @@
+/*=============================================================================*
+ * 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_06.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.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.v2004_06.porttype.SetResourcePropertiesPortType;
+import org.apache.ws.resource.properties.v2004_06.impl.NamespaceVersionHolderImpl;
+import org.apache.ws.util.i18n.Messages;
+import org.apache.ws.util.XmlBeanUtils;
+import org.apache.xmlbeans.XmlObject;
+import org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.DeleteType;
+import org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.InsertType;
+import org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.SetResourcePropertiesDocument;
+import org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.SetResourcePropertiesResponseDocument;
+import org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.UpdateType;
+
+/**
+ * LOG-DONE An operation provider for wsrp:SetResourceProperties.
+ *
+ * @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 wsrp:SetResourceProperties operation.
+ *
+ * @param requestDoc the requestDoc XMLBean
+ *
+ * @return the response XMLBean
+ *
+ * @throws org.apache.ws.resource.properties.faults.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;
+ }
+
+}
\ No newline at end of file
Added: incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/ResourcePropertiesConstants.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/ResourcePropertiesConstants.java?view=auto&rev=158163
==============================================================================
--- incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/ResourcePropertiesConstants.java (added)
+++ incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/ResourcePropertiesConstants.java Fri Mar 18 15:15:56 2005
@@ -0,0 +1,54 @@
+/*=============================================================================*
+ * 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;
+
+import org.apache.ws.resource.v2004_11.WsrfConstants;
+
+import javax.xml.namespace.QName;
+
+/**
+ * Constants for namespaces defined by the 2004/11 version of the WSRF ResourceProperties specification.
+ */
+public interface ResourcePropertiesConstants
+{
+
+ /**
+ * Namespace URI for WS-ResourceProperties schema.
+ */
+ String NSURI_WSRP_SCHEMA = WsrfConstants.BASE_URI_WSRF + "wsrf-WS-ResourceProperties-1.2-draft-05.xsd";
+
+ /**
+ * Namespace prefix for WS-ResourceProperties schema.
+ */
+ String NSPREFIX_WSRP_SCHEMA = "wsrf-rp";
+
+ /**
+ * Namespace URI for WS-ResourceProperties WSDL.
+ */
+ String NSURI_WSRP_WSDL = WsrfConstants.BASE_URI_WSRF + "wsrf-WS-ResourceProperties-1.2-draft-05.wsdl";
+
+ /**
+ * Namespace prefix for WS-ResourceProperties WSDL.
+ */
+ String NSPREFIX_WSRP_WSDL = "wsrf-rpw";
+
+ /**
+ * QName of the "ResourceProperties" portType attribute.
+ */
+ QName RESOURCE_PROPERTIES_PORTTYPE_ATTRIB =
+ new QName( NSURI_WSRP_SCHEMA, "ResourceProperties", NSPREFIX_WSRP_SCHEMA );
+
+}
\ No newline at end of file
Added: incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/impl/NamespaceVersionHolderImpl.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/impl/NamespaceVersionHolderImpl.java?view=auto&rev=158163
==============================================================================
--- incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/impl/NamespaceVersionHolderImpl.java (added)
+++ incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/impl/NamespaceVersionHolderImpl.java Fri Mar 18 15:15:56 2005
@@ -0,0 +1,41 @@
+package org.apache.ws.resource.properties.v2004_11.impl;
+
+import org.apache.axis.message.addressing.Constants;
+import org.apache.ws.resource.faults.v2004_11.FaultsConstants;
+import org.apache.ws.resource.lifetime.v2004_11.ResourceLifetimeConstants;
+import org.apache.ws.resource.properties.NamespaceVersionHolder;
+import org.apache.ws.resource.properties.v2004_11.ResourcePropertiesConstants;
+import org.apache.ws.resource.servicegroup.v2004_11.ServiceGroupConstants;
+
+
+/**
+ * @author Sal Campana
+ */
+public class NamespaceVersionHolderImpl implements NamespaceVersionHolder
+{
+
+ public String getPropertiesXsdNamespace()
+ {
+ return ResourcePropertiesConstants.NSURI_WSRP_SCHEMA;
+ }
+
+ public String getLifetimeXsdNamespace()
+ {
+ return ResourceLifetimeConstants.NSURI_WSRL_SCHEMA;
+ }
+
+ public String getBaseFaultsXsdNamespace()
+ {
+ return FaultsConstants.NSURI_BASEFAULTS_SCHEMA;
+ }
+
+ public String getAddressingNamespace()
+ {
+ return Constants.NS_URI_ADDRESSING_2004_08;
+ }
+
+ public String getServiceGroupsXsdNamespace()
+ {
+ return ServiceGroupConstants.NSURI_WSSG_SCHEMA;
+ }
+}
Added: incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/impl/XmlBeansResourcePropertyValueChangeEvent.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/impl/XmlBeansResourcePropertyValueChangeEvent.java?view=auto&rev=158163
==============================================================================
--- incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/impl/XmlBeansResourcePropertyValueChangeEvent.java (added)
+++ incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/impl/XmlBeansResourcePropertyValueChangeEvent.java Fri Mar 18 15:15:56 2005
@@ -0,0 +1,67 @@
+/*
+ * 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.impl;
+
+import org.apache.ws.XmlObjectWrapper;
+import org.apache.ws.resource.properties.ResourcePropertyValueChangeEvent;
+import org.apache.ws.resource.properties.impl.AbstractXmlBeansResourcePropertyValueChangeEvent;
+import org.apache.ws.util.XmlBeanUtils;
+import org.apache.xmlbeans.XmlObject;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.ResourcePropertyValueChangeNotificationDocument;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.ResourcePropertyValueChangeNotificationType;
+
+/**
+ * @author Ian P. Springer (Hewlett-Packard Company)
+ */
+public class XmlBeansResourcePropertyValueChangeEvent extends AbstractXmlBeansResourcePropertyValueChangeEvent implements ResourcePropertyValueChangeEvent, XmlObjectWrapper
+{
+ public XmlBeansResourcePropertyValueChangeEvent(Object[] oldValue, Object[] newValue)
+ {
+ super(oldValue, newValue);
+ }
+
+ protected XmlObject buildPropValueChangeNotifDocXmlBean( Object[] oldValue, Object[] newValue )
+ {
+ ResourcePropertyValueChangeNotificationDocument propValueChangeNotifDocXBean = ResourcePropertyValueChangeNotificationDocument.Factory.newInstance();
+ ResourcePropertyValueChangeNotificationType propValueChangeNotifXBean = propValueChangeNotifDocXBean.addNewResourcePropertyValueChangeNotification();
+ ResourcePropertyValueChangeNotificationType.OldValue oldValueXBean = propValueChangeNotifXBean.addNewOldValue();
+ if ( oldValue != null )
+ {
+ for ( int i = 0; i < oldValue.length; i++ )
+ {
+ XmlBeanUtils.addChildElement( oldValueXBean, (XmlObject) oldValue[i] );
+ }
+ }
+ else
+ {
+ oldValueXBean.setNil();
+ }
+ ResourcePropertyValueChangeNotificationType.NewValue newValueXBean = propValueChangeNotifXBean.addNewNewValue();
+ if ( newValue != null )
+ {
+ for ( int i = 0; i < oldValue.length; i++ )
+ {
+ XmlBeanUtils.addChildElement( newValueXBean, (XmlObject) newValue[i] );
+ }
+ }
+ else
+ {
+ newValueXBean.setNil();
+ }
+ return propValueChangeNotifDocXBean;
+ }
+
+}
Added: incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/DeleteResourcePropertiesPortType.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/DeleteResourcePropertiesPortType.java?view=auto&rev=158163
==============================================================================
--- incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/DeleteResourcePropertiesPortType.java (added)
+++ incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/DeleteResourcePropertiesPortType.java Fri Mar 18 15:15:56 2005
@@ -0,0 +1,42 @@
+/*=============================================================================*
+ * 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.DeleteResourcePropertiesDocument;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.DeleteResourcePropertiesResponseDocument;
+
+import javax.xml.namespace.QName;
+
+
+/**
+ * The WSRF-RP DeleteResourceProperties portType.
+ *
+ * @author Ian P. Springer (Hewlett-Packard Company)
+ */
+public interface DeleteResourcePropertiesPortType
+{
+ QName NAME = new QName( ResourcePropertiesConstants.NSURI_WSRP_WSDL, "DeleteResourceProperties", ResourcePropertiesConstants.NSPREFIX_WSRP_SCHEMA );
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param requestDoc DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ DeleteResourcePropertiesResponseDocument deleteResourceProperties( DeleteResourcePropertiesDocument requestDoc );
+}
\ No newline at end of file
Added: incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/GetMultipleResourcePropertiesPortType.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/GetMultipleResourcePropertiesPortType.java?view=auto&rev=158163
==============================================================================
--- incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/GetMultipleResourcePropertiesPortType.java (added)
+++ incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/GetMultipleResourcePropertiesPortType.java Fri Mar 18 15:15:56 2005
@@ -0,0 +1,41 @@
+/*=============================================================================*
+ * 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.GetMultipleResourcePropertiesDocument;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetMultipleResourcePropertiesResponseDocument;
+
+import javax.xml.namespace.QName;
+
+/**
+ * The WSRF-RP GetMultipleResourceProperties portType.
+ *
+ * @author Ian P. Springer (Hewlett-Packard Company)
+ */
+public interface GetMultipleResourcePropertiesPortType
+{
+ QName NAME = new QName( ResourcePropertiesConstants.NSURI_WSRP_WSDL, "GetMultipleResourceProperties", ResourcePropertiesConstants.NSPREFIX_WSRP_SCHEMA );
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param requestDoc DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ GetMultipleResourcePropertiesResponseDocument getMultipleResourceProperties( GetMultipleResourcePropertiesDocument requestDoc );
+}
\ No newline at end of file
Added: incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/GetResourcePropertyDocumentPortType.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/GetResourcePropertyDocumentPortType.java?view=auto&rev=158163
==============================================================================
--- incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/GetResourcePropertyDocumentPortType.java (added)
+++ incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/GetResourcePropertyDocumentPortType.java Fri Mar 18 15:15:56 2005
@@ -0,0 +1,41 @@
+/*=============================================================================*
+ * 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.GetResourcePropertyDocumentDocument1;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetResourcePropertyDocumentResponseDocument;
+
+import javax.xml.namespace.QName;
+
+/**
+ * The WSRF-RP GetResourcePropertyDocument portType.
+ *
+ * @author Ian P. Springer (Hewlett-Packard Company)
+ */
+public interface GetResourcePropertyDocumentPortType
+{
+ QName NAME = new QName( ResourcePropertiesConstants.NSURI_WSRP_WSDL, "GetResourcePropertyDocument", ResourcePropertiesConstants.NSPREFIX_WSRP_SCHEMA );
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param requestDoc DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ GetResourcePropertyDocumentResponseDocument getResourcePropertyDocument( GetResourcePropertyDocumentDocument1 requestDoc );
+}
\ No newline at end of file
Added: incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/GetResourcePropertyPortType.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/GetResourcePropertyPortType.java?view=auto&rev=158163
==============================================================================
--- incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/GetResourcePropertyPortType.java (added)
+++ incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/GetResourcePropertyPortType.java Fri Mar 18 15:15:56 2005
@@ -0,0 +1,42 @@
+/*=============================================================================*
+ * 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.GetResourcePropertyDocument;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetResourcePropertyResponseDocument;
+
+import javax.xml.namespace.QName;
+
+
+/**
+ * The WSRF-RP GetResourceProperty portType.
+ *
+ * @author Ian P. Springer (Hewlett-Packard Company)
+ */
+public interface GetResourcePropertyPortType
+{
+ QName NAME = new QName( ResourcePropertiesConstants.NSURI_WSRP_WSDL, "GetResourceProperty", ResourcePropertiesConstants.NSPREFIX_WSRP_SCHEMA );
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param requestDoc DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ GetResourcePropertyResponseDocument getResourceProperty( GetResourcePropertyDocument requestDoc );
+}
\ No newline at end of file
Added: incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/InsertResourcePropertiesPortType.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/InsertResourcePropertiesPortType.java?view=auto&rev=158163
==============================================================================
--- incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/InsertResourcePropertiesPortType.java (added)
+++ incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/InsertResourcePropertiesPortType.java Fri Mar 18 15:15:56 2005
@@ -0,0 +1,42 @@
+/*=============================================================================*
+ * 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 );
+}
\ No newline at end of file
Added: incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/QueryResourcePropertiesPortType.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/QueryResourcePropertiesPortType.java?view=auto&rev=158163
==============================================================================
--- incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/QueryResourcePropertiesPortType.java (added)
+++ incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/QueryResourcePropertiesPortType.java Fri Mar 18 15:15:56 2005
@@ -0,0 +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.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 );
+}
\ No newline at end of file
Added: incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/SetResourcePropertiesPortType.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/SetResourcePropertiesPortType.java?view=auto&rev=158163
==============================================================================
--- incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/SetResourcePropertiesPortType.java (added)
+++ incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/SetResourcePropertiesPortType.java Fri Mar 18 15:15:56 2005
@@ -0,0 +1,41 @@
+/*=============================================================================*
+ * 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 );
+}
\ No newline at end of file
Added: incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/UpdateResourcePropertiesPortType.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/UpdateResourcePropertiesPortType.java?view=auto&rev=158163
==============================================================================
--- incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/UpdateResourcePropertiesPortType.java (added)
+++ incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/UpdateResourcePropertiesPortType.java Fri Mar 18 15:15:56 2005
@@ -0,0 +1,42 @@
+/*=============================================================================*
+ * 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 );
+}
\ No newline at end of file
Added: incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/DeleteResourcePropertiesPortTypeImpl.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/DeleteResourcePropertiesPortTypeImpl.java?view=auto&rev=158163
==============================================================================
--- incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/DeleteResourcePropertiesPortTypeImpl.java (added)
+++ incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/DeleteResourcePropertiesPortTypeImpl.java Fri Mar 18 15:15:56 2005
@@ -0,0 +1,62 @@
+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.v2004_11.porttype.DeleteResourcePropertiesPortType;
+import org.apache.ws.resource.properties.v2004_11.impl.NamespaceVersionHolderImpl;
+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;
+ }
+
+ private DeleteResourcePropertiesResponseDocument createResponseDocument()
+ {
+ DeleteResourcePropertiesResponseDocument responseDoc = DeleteResourcePropertiesResponseDocument.Factory.newInstance();
+ responseDoc.addNewDeleteResourcePropertiesResponse();
+ return responseDoc;
+ }
+
+ protected NamespaceVersionHolder getNamespaceSet()
+ {
+ return NAMESPACE_SET;
+ }
+
+}
Added: incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/GetMultipleResourcePropertiesPortTypeImpl.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/GetMultipleResourcePropertiesPortTypeImpl.java?view=auto&rev=158163
==============================================================================
--- incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/GetMultipleResourcePropertiesPortTypeImpl.java (added)
+++ incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/GetMultipleResourcePropertiesPortTypeImpl.java Fri Mar 18 15:15:56 2005
@@ -0,0 +1,62 @@
+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;
+ }
+}
Added: incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/GetResourcePropertyDocumentPortTypeImpl.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/GetResourcePropertyDocumentPortTypeImpl.java?view=auto&rev=158163
==============================================================================
--- incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/GetResourcePropertyDocumentPortTypeImpl.java (added)
+++ incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/GetResourcePropertyDocumentPortTypeImpl.java Fri Mar 18 15:15:56 2005
@@ -0,0 +1,65 @@
+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;
+ }
+}
Added: incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/GetResourcePropertyPortTypeImpl.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/GetResourcePropertyPortTypeImpl.java?view=auto&rev=158163
==============================================================================
--- incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/GetResourcePropertyPortTypeImpl.java (added)
+++ incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/GetResourcePropertyPortTypeImpl.java Fri Mar 18 15:15:56 2005
@@ -0,0 +1,85 @@
+/*=============================================================================*
+ * 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;
+ }
+
+}
\ No newline at end of file
Added: incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/InsertResourcePropertiesPortTypeImpl.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/InsertResourcePropertiesPortTypeImpl.java?view=auto&rev=158163
==============================================================================
--- incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/InsertResourcePropertiesPortTypeImpl.java (added)
+++ incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/InsertResourcePropertiesPortTypeImpl.java Fri Mar 18 15:15:56 2005
@@ -0,0 +1,61 @@
+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.v2004_11.porttype.InsertResourcePropertiesPortType;
+import org.apache.ws.resource.properties.v2004_11.impl.NamespaceVersionHolderImpl;
+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;
+ }
+
+}
Added: incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/QueryResourcePropertiesPortTypeImpl.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/QueryResourcePropertiesPortTypeImpl.java?view=auto&rev=158163
==============================================================================
--- incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/QueryResourcePropertiesPortTypeImpl.java (added)
+++ incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/QueryResourcePropertiesPortTypeImpl.java Fri Mar 18 15:15:56 2005
@@ -0,0 +1,180 @@
+/*=============================================================================*
+ * 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.porttype.QueryResourcePropertiesPortType;
+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.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 javax.xml.rpc.JAXRPCException;
+import javax.xml.soap.SOAPEnvelope;
+import javax.xml.soap.SOAPException;
+import java.lang.reflect.Array;
+
+/**
+ * LOG-DONE An operation provider for wsrp:QueryResourceProperties.
+ *
+ * TODO: 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();
+
+ /**
+ * DOCUMENT_ME
+ */
+ 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 queryExprElem =
+ requestDoc.getQueryResourceProperties().getQueryExpression();
+ SOAPEnvelope envelope;
+ try
+ {
+ envelope = getResourceContext().getSOAPMessage().getSOAPPart().getEnvelope();
+ }
+ catch ( SOAPException soape )
+ {
+ throw new JAXRPCException( MSG.getMessage( Keys.FAILED_TO_EXTRACT_SOAP_ENV, soape ) );
+ }
+
+ XmlBeansQueryExpression queryExpr = new XmlBeansQueryExpression( queryExprElem );
+
+ refreshAllProperties();
+ Object result = null;
+ try
+ {
+ result = QUERY_ENGINE.executeQuery( queryExpr,
+ getProperties(),
+ envelope );
+ }
+ 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 JAXRPCException( 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;
+ }
+}
\ No newline at end of file
Added: incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/SetResourcePropertiesPortTypeImpl.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/SetResourcePropertiesPortTypeImpl.java?view=auto&rev=158163
==============================================================================
--- incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/SetResourcePropertiesPortTypeImpl.java (added)
+++ incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/SetResourcePropertiesPortTypeImpl.java Fri Mar 18 15:15:56 2005
@@ -0,0 +1,154 @@
+/*=============================================================================*
+ * 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.v2004_11.porttype.SetResourcePropertiesPortType;
+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.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;
+ }
+
+}
\ No newline at end of file
Added: incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/UpdateResourcePropertiesPortTypeImpl.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/UpdateResourcePropertiesPortTypeImpl.java?view=auto&rev=158163
==============================================================================
--- incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/UpdateResourcePropertiesPortTypeImpl.java (added)
+++ incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/UpdateResourcePropertiesPortTypeImpl.java Fri Mar 18 15:15:56 2005
@@ -0,0 +1,58 @@
+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.v2004_11.porttype.UpdateResourcePropertiesPortType;
+import org.apache.ws.resource.properties.v2004_11.impl.NamespaceVersionHolderImpl;
+import org.apache.ws.util.XmlBeanUtils;
+import org.apache.xmlbeans.XmlObject;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.UpdateResourcePropertiesDocument;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.UpdateResourcePropertiesResponseDocument;
+
+/**
+ * @author Ian Springer
+ */
+public class UpdateResourcePropertiesPortTypeImpl extends AbstractSetResourcePropertiesPortType implements UpdateResourcePropertiesPortType
+{
+
+ private static final NamespaceVersionHolder NAMESPACE_SET = new NamespaceVersionHolderImpl() ;
+
+ /**
+ * Creates a new {@link UpdateResourcePropertiesPortTypeImpl} object.
+ *
+ * @param resourceContext DOCUMENT_ME
+ */
+ public UpdateResourcePropertiesPortTypeImpl(ResourceContext resourceContext)
+ {
+ super(resourceContext);
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param requestDoc DOCUMENT_ME
+ * @return DOCUMENT_ME
+ */
+ public UpdateResourcePropertiesResponseDocument updateResourceProperties(UpdateResourcePropertiesDocument requestDoc)
+ {
+ UpdateResourcePropertiesResponseDocument responseDoc = createResponseDocument();
+ UpdateResourcePropertiesDocument.UpdateResourceProperties requestElem = requestDoc.getUpdateResourceProperties();
+ XmlObject[] newPropElems = XmlBeanUtils.getChildElements( requestElem.getUpdate() );
+ updateResourceProperty( newPropElems );
+ return responseDoc;
+ }
+
+ private UpdateResourcePropertiesResponseDocument createResponseDocument()
+ {
+ UpdateResourcePropertiesResponseDocument responseDoc = UpdateResourcePropertiesResponseDocument.Factory.newInstance();
+ responseDoc.addNewUpdateResourcePropertiesResponse();
+ return responseDoc;
+ }
+
+ protected NamespaceVersionHolder getNamespaceSet()
+ {
+ return NAMESPACE_SET;
+ }
+
+}
Added: incubator/apollo/trunk/src/java/org/apache/ws/resource/servicegroup/v2004_06/ServiceGroupConstants.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/servicegroup/v2004_06/ServiceGroupConstants.java?view=auto&rev=158163
==============================================================================
--- incubator/apollo/trunk/src/java/org/apache/ws/resource/servicegroup/v2004_06/ServiceGroupConstants.java (added)
+++ incubator/apollo/trunk/src/java/org/apache/ws/resource/servicegroup/v2004_06/ServiceGroupConstants.java Fri Mar 18 15:15:56 2005
@@ -0,0 +1,46 @@
+/*=============================================================================*
+ * 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.servicegroup.v2004_06;
+
+import org.apache.ws.resource.v2004_06.WsrfConstants;
+
+/**
+ * Constants for namespaces defined by the 2004/06 version of the WSRF ServiceGroup specification.
+ */
+public interface ServiceGroupConstants
+{
+
+ /**
+ * Namespace URI for WS-ServiceGroup schema.
+ */
+ String NSURI_WSSG_SCHEMA = WsrfConstants.BASE_URI_WSRF + "wsrf-WS-ServiceGroup-1.2-draft-01.xsd";
+
+ /**
+ * Namespace prefix for WS-ServiceGroup schema.
+ */
+ String NSPREFIX_WSSG_SCHEMA = "wssg";
+
+ /**
+ * Namespace URI for WS-ServiceGroup WSDL.
+ */
+ String NSURI_WSSG_WSDL = WsrfConstants.BASE_URI_WSRF + "wsrf-WS-ServiceGroup-1.2-draft-01.wsdl";
+
+ /**
+ * Namespace prefix for WS-ServiceGroup WSDL.
+ */
+ String NSPREFIX_WSSG_WSDL = "wssgw";
+
+}
\ No newline at end of file
Added: incubator/apollo/trunk/src/java/org/apache/ws/resource/servicegroup/v2004_06/porttype/ServiceGroupEntryPortType.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/servicegroup/v2004_06/porttype/ServiceGroupEntryPortType.java?view=auto&rev=158163
==============================================================================
--- incubator/apollo/trunk/src/java/org/apache/ws/resource/servicegroup/v2004_06/porttype/ServiceGroupEntryPortType.java (added)
+++ incubator/apollo/trunk/src/java/org/apache/ws/resource/servicegroup/v2004_06/porttype/ServiceGroupEntryPortType.java Fri Mar 18 15:15:56 2005
@@ -0,0 +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.servicegroup.v2004_06.porttype;
+
+import org.apache.ws.resource.properties.v2004_06.porttype.GetResourcePropertyPortType;
+import org.apache.ws.resource.servicegroup.v2004_06.ServiceGroupConstants;
+
+import javax.xml.namespace.QName;
+
+/**
+ * The WSRF-SG ServiceGroupEntry portType.
+ *
+ * @author Ian P. Springer (Hewlett-Packard Company)
+ */
+public interface ServiceGroupEntryPortType extends GetResourcePropertyPortType
+{
+
+ QName NAME = new QName( ServiceGroupConstants.NSURI_WSSG_WSDL, "ServiceGroupEntry", ServiceGroupConstants.NSPREFIX_WSSG_WSDL );
+
+ /**
+ * "ServiceGroupEPR" property (type="wsa:EndpointReferenceType", minOccurs="1", maxOccurs="1").
+ */
+ QName PROP_NAME_SERVICE_GROUP_EPR = new QName( ServiceGroupConstants.NSURI_WSSG_SCHEMA, "ServiceGroupEPR", ServiceGroupConstants.NSPREFIX_WSSG_SCHEMA );
+
+ /**
+ * "MemberEPR" property (type="wsa:EndpointReferenceType", minOccurs="1", maxOccurs="1").
+ */
+ QName PROP_NAME_MEMBER_EPR = new QName( ServiceGroupConstants.NSURI_WSSG_SCHEMA, "MemberEPR", ServiceGroupConstants.NSPREFIX_WSSG_SCHEMA );
+
+ /**
+ * "Content" property (type="xsd:anyType", minOccurs="1", maxOccurs="1").
+ */
+ QName PROP_NAME_CONTENT = new QName( ServiceGroupConstants.NSURI_WSSG_SCHEMA, "Content", ServiceGroupConstants.NSPREFIX_WSSG_SCHEMA );
+
+}
Added: incubator/apollo/trunk/src/java/org/apache/ws/resource/servicegroup/v2004_06/porttype/ServiceGroupPortType.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/servicegroup/v2004_06/porttype/ServiceGroupPortType.java?view=auto&rev=158163
==============================================================================
--- incubator/apollo/trunk/src/java/org/apache/ws/resource/servicegroup/v2004_06/porttype/ServiceGroupPortType.java (added)
+++ incubator/apollo/trunk/src/java/org/apache/ws/resource/servicegroup/v2004_06/porttype/ServiceGroupPortType.java Fri Mar 18 15:15:56 2005
@@ -0,0 +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.servicegroup.v2004_06.porttype;
+
+import org.apache.ws.resource.properties.v2004_06.porttype.GetResourcePropertyPortType;
+import org.apache.ws.resource.servicegroup.v2004_06.ServiceGroupConstants;
+
+import javax.xml.namespace.QName;
+
+/**
+ * The WSRF-SG ServiceGroup portType.
+ *
+ * @author Ian P. Springer (Hewlett-Packard Company)
+ */
+public interface ServiceGroupPortType extends GetResourcePropertyPortType
+{
+
+ QName NAME = new QName( ServiceGroupConstants.NSURI_WSSG_WSDL, "ServiceGroup", ServiceGroupConstants.NSPREFIX_WSSG_WSDL );
+
+ /**
+ * "MembershipContent" property (type="wsa:EndpointReferenceType", minOccurs="0", maxOccurs="unbounded").
+ */
+ QName PROP_NAME_MEMBERSHIP_CONTENT_RULE = new QName( ServiceGroupConstants.NSURI_WSSG_SCHEMA, "MembershipContentRule", ServiceGroupConstants.NSPREFIX_WSSG_SCHEMA );
+
+ /**
+ * "Entry" property (type="wssg:EntryType", minOccurs="0", maxOccurs="unbounded")
+ */
+ QName PROP_NAME_ENTRY = new QName( ServiceGroupConstants.NSURI_WSSG_SCHEMA, "Entry", ServiceGroupConstants.NSPREFIX_WSSG_SCHEMA );
+
+}
Added: incubator/apollo/trunk/src/java/org/apache/ws/resource/servicegroup/v2004_06/porttype/ServiceGroupRegistrationPortType.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/servicegroup/v2004_06/porttype/ServiceGroupRegistrationPortType.java?view=auto&rev=158163
==============================================================================
--- incubator/apollo/trunk/src/java/org/apache/ws/resource/servicegroup/v2004_06/porttype/ServiceGroupRegistrationPortType.java (added)
+++ incubator/apollo/trunk/src/java/org/apache/ws/resource/servicegroup/v2004_06/porttype/ServiceGroupRegistrationPortType.java Fri Mar 18 15:15:56 2005
@@ -0,0 +1,52 @@
+/*
+ * 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.servicegroup.v2004_06.porttype;
+
+import org.apache.ws.resource.properties.v2004_06.porttype.GetResourcePropertyPortType;
+import org.apache.ws.resource.servicegroup.v2004_06.ServiceGroupConstants;
+import org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSServiceGroup12Draft01.AddDocument;
+import org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSServiceGroup12Draft01.AddResponseDocument;
+
+import javax.xml.namespace.QName;
+
+/**
+ * The WSRF-SG ServiceGroupRegistration portType.
+ *
+ * @author Ian P. Springer (Hewlett-Packard Company)
+ */
+public interface ServiceGroupRegistrationPortType extends GetResourcePropertyPortType
+{
+
+ QName NAME = new QName( ServiceGroupConstants.NSURI_WSSG_WSDL, "ServiceGroupRegistration", ServiceGroupConstants.NSPREFIX_WSSG_WSDL );
+
+ /**
+ * "MembershipContent" property (type="wsa:EndpointReferenceType", minOccurs="0", maxOccurs="unbounded").
+ */
+ QName PROP_NAME_MEMBERSHIP_CONTENT_RULE = new QName( ServiceGroupConstants.NSURI_WSSG_SCHEMA, "MembershipContentRule", ServiceGroupConstants.NSPREFIX_WSSG_SCHEMA );
+
+ /**
+ * "Entry" property (type="wssg:EntryType", minOccurs="0", maxOccurs="unbounded")
+ */
+ QName PROP_NAME_ENTRY = new QName( ServiceGroupConstants.NSURI_WSSG_SCHEMA, "Entry", ServiceGroupConstants.NSPREFIX_WSSG_SCHEMA );
+
+ /**
+ *
+ * @param requestDoc
+ * @return
+ */
+ AddResponseDocument add( AddDocument requestDoc );
+
+}
Added: incubator/apollo/trunk/src/java/org/apache/ws/resource/servicegroup/v2004_11/ServiceGroupConstants.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/servicegroup/v2004_11/ServiceGroupConstants.java?view=auto&rev=158163
==============================================================================
--- incubator/apollo/trunk/src/java/org/apache/ws/resource/servicegroup/v2004_11/ServiceGroupConstants.java (added)
+++ incubator/apollo/trunk/src/java/org/apache/ws/resource/servicegroup/v2004_11/ServiceGroupConstants.java Fri Mar 18 15:15:56 2005
@@ -0,0 +1,46 @@
+/*=============================================================================*
+ * 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.servicegroup.v2004_11;
+
+import org.apache.ws.resource.v2004_11.WsrfConstants;
+
+/**
+ * Constants for namespaces defined by the 2004/11 version of the WSRF ServiceGroup specification.
+ */
+public interface ServiceGroupConstants
+{
+
+ /**
+ * Namespace URI for WS-ServiceGroup schema.
+ */
+ String NSURI_WSSG_SCHEMA = WsrfConstants.BASE_URI_WSRF + "wsrf-WS-ServiceGroup-1.2-draft-03.xsd";
+
+ /**
+ * Namespace prefix for WS-ServiceGroup schema.
+ */
+ String NSPREFIX_WSSG_SCHEMA = "wsrf-sg";
+
+ /**
+ * Namespace URI for WS-ServiceGroup WSDL.
+ */
+ String NSURI_WSSG_WSDL = WsrfConstants.BASE_URI_WSRF + "wsrf-WS-ServiceGroup-1.2-draft-03.wsdl";
+
+ /**
+ * Namespace prefix for WS-ServiceGroup WSDL.
+ */
+ String NSPREFIX_WSSG_WSDL = "wsrf-sgw";
+
+}
\ No newline at end of file
Modified: incubator/apollo/trunk/src/test/org/apache/ws/resource/properties/AbstractSushiService.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/test/org/apache/ws/resource/properties/AbstractSushiService.java?view=diff&r1=158162&r2=158163
==============================================================================
--- incubator/apollo/trunk/src/test/org/apache/ws/resource/properties/AbstractSushiService.java (original)
+++ incubator/apollo/trunk/src/test/org/apache/ws/resource/properties/AbstractSushiService.java Fri Mar 18 15:15:56 2005
@@ -16,14 +16,14 @@
package org.apache.ws.resource.properties;
import org.apache.ws.resource.ResourceContext;
-import org.apache.ws.resource.properties.v1_2_draft01.porttype.SetResourcePropertiesPortType;
-import org.apache.ws.resource.properties.v1_2_draft01.porttype.GetMultipleResourcePropertiesPortType;
-import org.apache.ws.resource.properties.v1_2_draft01.porttype.GetResourcePropertyPortType;
-import org.apache.ws.resource.properties.v1_2_draft01.porttype.QueryResourcePropertiesPortType;
-import org.apache.ws.resource.properties.v1_2_draft01.porttype.impl.GetMultipleResourcePropertiesPortTypeImpl;
-import org.apache.ws.resource.properties.v1_2_draft01.porttype.impl.SetResourcePropertiesPortTypeImpl;
-import org.apache.ws.resource.properties.v1_2_draft01.porttype.impl.GetResourcePropertyPortTypeImpl;
-import org.apache.ws.resource.properties.v1_2_draft01.porttype.impl.QueryResourcePropertiesPortTypeImpl;
+import org.apache.ws.resource.properties.v2004_06.porttype.SetResourcePropertiesPortType;
+import org.apache.ws.resource.properties.v2004_06.porttype.GetMultipleResourcePropertiesPortType;
+import org.apache.ws.resource.properties.v2004_06.porttype.GetResourcePropertyPortType;
+import org.apache.ws.resource.properties.v2004_06.porttype.QueryResourcePropertiesPortType;
+import org.apache.ws.resource.properties.v2004_06.porttype.impl.GetMultipleResourcePropertiesPortTypeImpl;
+import org.apache.ws.resource.properties.v2004_06.porttype.impl.SetResourcePropertiesPortTypeImpl;
+import org.apache.ws.resource.properties.v2004_06.porttype.impl.GetResourcePropertyPortTypeImpl;
+import org.apache.ws.resource.properties.v2004_06.porttype.impl.QueryResourcePropertiesPortTypeImpl;
import org.apache.ws.resource.handler.SoapMethodNameMap;
import org.apache.ws.resource.handler.WsrfService;
import org.apache.ws.resource.handler.ServiceSoapMethodNameMap;
---------------------------------------------------------------------
To unsubscribe, e-mail: apollo-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: apollo-dev-help@ws.apache.org