You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsrf-commits@ws.apache.org by sc...@apache.org on 2005/08/02 18:30:44 UTC
svn commit: r227033 [12/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...
Modified: webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_06/porttype/SetResourcePropertiesPortType.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_06/porttype/SetResourcePropertiesPortType.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_06/porttype/SetResourcePropertiesPortType.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_06/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_06.porttype;
-
-import org.apache.ws.resource.properties.v2004_06.ResourcePropertiesConstants;
-import org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.SetResourcePropertiesDocument;
-import org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.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_06.porttype;
+
+import org.apache.ws.resource.properties.v2004_06.ResourcePropertiesConstants;
+import org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.SetResourcePropertiesDocument;
+import org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.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_06/porttype/impl/GetMultipleResourcePropertiesPortTypeImpl.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_06/porttype/impl/GetMultipleResourcePropertiesPortTypeImpl.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_06/porttype/impl/GetMultipleResourcePropertiesPortTypeImpl.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_06/porttype/impl/GetMultipleResourcePropertiesPortTypeImpl.java Tue Aug 2 09:28:49 2005
@@ -1,84 +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_06.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_06.porttype.GetMultipleResourcePropertiesPortType;
-import org.apache.ws.resource.properties.v2004_06.impl.NamespaceVersionHolderImpl;
-import org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetMultipleResourcePropertiesDocument;
-import org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetMultipleResourcePropertiesResponseDocument;
-
-import javax.xml.namespace.QName;
-
-/**
- * LOG-DONE An operation provider for wsrp:GetMultipleResourceProperties.
- *
- * @author Ian P. 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 );
- }
-
- /**
- * Implementation of the wsrp:GetMultipleResourceProperties operation.
- *
- * @param requestDoc the requestDoc XMLBean
- *
- * @return the response XMLBean
- *
- * @throws InvalidResourcePropertyQNameFaultException
- *
- * @throws org.apache.ws.resource.faults.ResourceKeyHeaderNotFoundFaultException
- */
- 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_06.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_06.impl.NamespaceVersionHolderImpl;
+import org.apache.ws.resource.properties.v2004_06.porttype.GetMultipleResourcePropertiesPortType;
+import org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetMultipleResourcePropertiesDocument;
+import org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetMultipleResourcePropertiesResponseDocument;
+import javax.xml.namespace.QName;
+
+/**
+ * LOG-DONE An operation provider for wsrp:GetMultipleResourceProperties.
+ *
+ * @author Ian P. 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 );
+ }
+
+ /**
+ * Implementation of the wsrp:GetMultipleResourceProperties operation.
+ *
+ * @param requestDoc the requestDoc XMLBean
+ *
+ * @return the response XMLBean
+ *
+ * @throws InvalidResourcePropertyQNameFaultException
+ *
+ * @throws org.apache.ws.resource.faults.ResourceKeyHeaderNotFoundFaultException
+ */
+ 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;
+ }
}
Modified: webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_06/porttype/impl/GetResourcePropertyPortTypeImpl.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_06/porttype/impl/GetResourcePropertyPortTypeImpl.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_06/porttype/impl/GetResourcePropertyPortTypeImpl.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_06/porttype/impl/GetResourcePropertyPortTypeImpl.java Tue Aug 2 09:28:49 2005
@@ -1,95 +1,101 @@
-/*=============================================================================*
- * 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.ResourceProperty;
-import org.apache.ws.resource.properties.faults.InvalidResourcePropertyQNameFaultException;
-import org.apache.ws.resource.properties.impl.AbstractGetResourcePropertiesPortType;
-import org.apache.ws.resource.properties.v2004_06.porttype.GetResourcePropertyPortType;
-import org.apache.ws.resource.properties.v2004_06.impl.NamespaceVersionHolderImpl;
-import org.apache.ws.util.i18n.Messages;
-import org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetResourcePropertyDocument;
-import org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.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 Log LOG = LogFactory.getLog( GetResourcePropertyPortTypeImpl.class );
- private static final Messages MSG = MessagesImpl.getInstance();
- 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 )
- {
- if ( LOG.isDebugEnabled() )
- {
- LOG.debug( MSG.getMessage( Keys.GET_RP_REQ, requestDoc.toString() ) );
- }
- 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_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.ResourceProperty;
+import org.apache.ws.resource.properties.impl.AbstractGetResourcePropertiesPortType;
+import org.apache.ws.resource.properties.v2004_06.impl.NamespaceVersionHolderImpl;
+import org.apache.ws.resource.properties.v2004_06.porttype.GetResourcePropertyPortType;
+import org.apache.ws.util.i18n.Messages;
+import org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetResourcePropertyDocument;
+import org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.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 Log LOG =
+ LogFactory.getLog( GetResourcePropertyPortTypeImpl.class );
+ private static final Messages MSG = MessagesImpl.getInstance( );
+ 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 )
+ {
+ if ( LOG.isDebugEnabled( ) )
+ {
+ LOG.debug( MSG.getMessage( Keys.GET_RP_REQ,
+ requestDoc.toString( ) ) );
+ }
+
+ 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_06/porttype/impl/QueryResourcePropertiesPortTypeImpl.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_06/porttype/impl/QueryResourcePropertiesPortTypeImpl.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_06/porttype/impl/QueryResourcePropertiesPortTypeImpl.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_06/porttype/impl/QueryResourcePropertiesPortTypeImpl.java Tue Aug 2 09:28:49 2005
@@ -1,158 +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_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.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_06.impl.NamespaceVersionHolderImpl;
-import org.apache.ws.resource.properties.v2004_06.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.x06.wsrfWSResourceProperties12Draft01.QueryExpressionType;
-import org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.QueryResourcePropertiesDocument;
-import org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.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 org.apache.ws.resource.properties.faults.UnknownQueryExpressionDialectFaultException
- * if query dialect is unsupported.
- * @throws org.apache.ws.resource.properties.faults.QueryEvaluationErrorFaultException
- * if query evaluation fails.
- * @throws org.apache.ws.resource.properties.faults.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_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.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_06.impl.NamespaceVersionHolderImpl;
+import org.apache.ws.resource.properties.v2004_06.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.x06.wsrfWSResourceProperties12Draft01.QueryExpressionType;
+import org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.QueryResourcePropertiesDocument;
+import org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.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 org.apache.ws.resource.properties.faults.UnknownQueryExpressionDialectFaultException
+ * if query dialect is unsupported.
+ * @throws org.apache.ws.resource.properties.faults.QueryEvaluationErrorFaultException
+ * if query evaluation fails.
+ * @throws org.apache.ws.resource.properties.faults.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_06/porttype/impl/SetResourcePropertiesPortTypeImpl.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_06/porttype/impl/SetResourcePropertiesPortTypeImpl.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_06/porttype/impl/SetResourcePropertiesPortTypeImpl.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_06/porttype/impl/SetResourcePropertiesPortTypeImpl.java Tue Aug 2 09:28:49 2005
@@ -1,160 +1,179 @@
-/*=============================================================================*
- * 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.v2004_06.impl.XmlBeansResourcePropertyValueChangeEvent;
-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_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;
- }
-
- 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_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.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_06.impl.NamespaceVersionHolderImpl;
+import org.apache.ws.resource.properties.v2004_06.impl.XmlBeansResourcePropertyValueChangeEvent;
+import org.apache.ws.resource.properties.v2004_06.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.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;
+ }
+
+ /**
+ * 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;
+ }
}
Modified: webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/ResourcePropertiesConstants.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/ResourcePropertiesConstants.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/ResourcePropertiesConstants.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/ResourcePropertiesConstants.java Tue Aug 2 09:28:49 2005
@@ -1,54 +1,51 @@
-/*=============================================================================*
- * 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 );
-
+/*=============================================================================*
+ * 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 );
}
Modified: webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/impl/NamespaceVersionHolderImpl.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/impl/NamespaceVersionHolderImpl.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/impl/NamespaceVersionHolderImpl.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/impl/NamespaceVersionHolderImpl.java Tue Aug 2 09:28:49 2005
@@ -1,47 +1,91 @@
-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;
-import org.apache.ws.resource.metadataexchange.v2004_09.MetadataExchangeConstants;
-
-
-/**
- * @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;
- }
-
- public String getMetadataExchangeNamespace()
- {
- return MetadataExchangeConstants.NSURI;
- }
-}
+/*=============================================================================*
+ * 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.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.metadataexchange.v2004_09.MetadataExchangeConstants;
+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
+{
+ /**
+ * DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ public String getAddressingNamespace( )
+ {
+ return Constants.NS_URI_ADDRESSING_2004_08;
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ public String getBaseFaultsXsdNamespace( )
+ {
+ return FaultsConstants.NSURI_BASEFAULTS_SCHEMA;
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ public String getLifetimeXsdNamespace( )
+ {
+ return ResourceLifetimeConstants.NSURI_WSRL_SCHEMA;
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ public String getMetadataExchangeNamespace( )
+ {
+ return MetadataExchangeConstants.NSURI;
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ public String getPropertiesXsdNamespace( )
+ {
+ return ResourcePropertiesConstants.NSURI_WSRP_SCHEMA;
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ public String getServiceGroupsXsdNamespace( )
+ {
+ return ServiceGroupConstants.NSURI_WSSG_SCHEMA;
+ }
+}
\ No newline at end of file
Modified: webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/impl/XmlBeansResourcePropertyValueChangeEvent.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/impl/XmlBeansResourcePropertyValueChangeEvent.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/impl/XmlBeansResourcePropertyValueChangeEvent.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/impl/XmlBeansResourcePropertyValueChangeEvent.java Tue Aug 2 09:28:49 2005
@@ -1,67 +1,91 @@
-/*
- * 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;
- }
-
-}
+/*=============================================================================*
+ * 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
+{
+ /**
+ * Creates a new {@link XmlBeansResourcePropertyValueChangeEvent} object.
+ *
+ * @param oldValue DOCUMENT_ME
+ * @param newValue DOCUMENT_ME
+ */
+ public XmlBeansResourcePropertyValueChangeEvent( Object[] oldValue,
+ Object[] newValue )
+ {
+ super( oldValue, newValue );
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param oldValue DOCUMENT_ME
+ * @param newValue DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ 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;
+ }
+}
\ No newline at end of file
Modified: webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/DeleteResourcePropertiesPortType.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/DeleteResourcePropertiesPortType.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/DeleteResourcePropertiesPortType.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/DeleteResourcePropertiesPortType.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.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 );
+/*=============================================================================*
+ * 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
+{
+ /** DOCUMENT_ME */
+ 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 );
}
Modified: webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/GetMultipleResourcePropertiesPortType.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/GetMultipleResourcePropertiesPortType.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/GetMultipleResourcePropertiesPortType.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/GetMultipleResourcePropertiesPortType.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.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 );
+/*=============================================================================*
+ * 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
+{
+ /** DOCUMENT_ME */
+ 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 );
}
Modified: webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/GetResourcePropertyDocumentPortType.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/GetResourcePropertyDocumentPortType.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/GetResourcePropertyDocumentPortType.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/GetResourcePropertyDocumentPortType.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.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 );
+/*=============================================================================*
+ * 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
+{
+ /** DOCUMENT_ME */
+ 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 );
}
Modified: webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/GetResourcePropertyPortType.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/GetResourcePropertyPortType.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/GetResourcePropertyPortType.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/v2004_11/porttype/GetResourcePropertyPortType.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.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 );
+/*=============================================================================*
+ * 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
+{
+ /** DOCUMENT_ME */
+ 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 );
}