Package org.apache.ws.resource.properties.v2004_11.porttype.impl

Source Code of org.apache.ws.resource.properties.v2004_11.porttype.impl.UpdateResourcePropertiesPortTypeImpl

/*=============================================================================*
*  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.NamespaceVersionHolder;
import org.apache.ws.resource.ResourceContext;
import org.apache.ws.resource.properties.impl.AbstractSetResourcePropertiesPortType;
import org.apache.ws.resource.properties.impl.AbstractXmlBeansResourcePropertyValueChangeEvent;
import org.apache.ws.resource.properties.v2004_11.impl.NamespaceVersionHolderImpl;
import org.apache.ws.resource.properties.v2004_11.impl.XmlBeansResourcePropertyValueChangeEvent;
import org.apache.ws.resource.properties.v2004_11.porttype.UpdateResourcePropertiesPortType;
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;
   }

   /**
    * 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 UpdateResourcePropertiesResponseDocument createResponseDocument(  )
   {
      UpdateResourcePropertiesResponseDocument responseDoc =
         UpdateResourcePropertiesResponseDocument.Factory.newInstance(  );
      responseDoc.addNewUpdateResourcePropertiesResponse(  );
      return responseDoc;
   }
}
TOP

Related Classes of org.apache.ws.resource.properties.v2004_11.porttype.impl.UpdateResourcePropertiesPortTypeImpl

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.