Package org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01

Examples of org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetResourcePropertyResponseDocument


    protected GetResourcePropertyResponseDocument.GetResourcePropertyResponse getResourceProperty( QName propName )
    {
        GetResourcePropertyPortTypeImpl get_provider = new GetResourcePropertyPortTypeImpl( m_resourceContext );
        GetResourcePropertyDocument get_document = GetResourcePropertyDocument.Factory.newInstance();
        get_document.setGetResourceProperty( propName );
        GetResourcePropertyResponseDocument resourceProperty = get_provider.getResourceProperty( get_document );
        GetResourcePropertyResponseDocument.GetResourcePropertyResponse getResourcePropertyResponse =
                resourceProperty.getGetResourcePropertyResponse();
        return getResourcePropertyResponse;
    }
View Full Code Here


   protected GetResourcePropertyResponseDocument.GetResourcePropertyResponse getResourceProperty( QName propName )
   {
      GetResourcePropertyPortTypeImpl get_provider = new GetResourcePropertyPortTypeImpl( m_resourceContext );
      GetResourcePropertyDocument     get_document = GetResourcePropertyDocument.Factory.newInstance(  );
      get_document.setGetResourceProperty( propName );
      GetResourcePropertyResponseDocument                             resourceProperty =
         get_provider.getResourceProperty( get_document );
      GetResourcePropertyResponseDocument.GetResourcePropertyResponse getResourcePropertyResponse =
         resourceProperty.getGetResourcePropertyResponse(  );
      return getResourcePropertyResponse;
   }
View Full Code Here

      {
         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;
   }
View Full Code Here

      return NAMESPACE_SET;
   }

   private GetResourcePropertyResponseDocument createResponseDocument(  )
   {
      GetResourcePropertyResponseDocument responseDoc =
         GetResourcePropertyResponseDocument.Factory.newInstance(  );
      responseDoc.addNewGetResourcePropertyResponse(  );
      return responseDoc;
   }
View Full Code Here

   protected GetResourcePropertyResponseDocument.GetResourcePropertyResponse getResourceProperty( QName propName )
   {
      GetResourcePropertyPortTypeImpl get_provider = new GetResourcePropertyPortTypeImpl( m_resourceContext );
      GetResourcePropertyDocument     get_document = GetResourcePropertyDocument.Factory.newInstance(  );
      get_document.setGetResourceProperty( propName );
      GetResourcePropertyResponseDocument                             resourceProperty =
         get_provider.getResourceProperty( get_document );
      GetResourcePropertyResponseDocument.GetResourcePropertyResponse getResourcePropertyResponse =
         resourceProperty.getGetResourcePropertyResponse(  );
      return getResourcePropertyResponse;
   }
View Full Code Here

      {
         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;
   }
View Full Code Here

      return NAMESPACE_SET;
   }

   private GetResourcePropertyResponseDocument createResponseDocument(  )
   {
      GetResourcePropertyResponseDocument responseDoc =
         GetResourcePropertyResponseDocument.Factory.newInstance(  );
      responseDoc.addNewGetResourcePropertyResponse(  );
      return responseDoc;
   }
View Full Code Here

    protected void insertXsdAnyPropElem()
            throws XmlException
    {
        SetResourcePropertiesProvider set_provider = new SetResourcePropertiesProvider( m_resourceContext );
        InsertDocument insertDoc = InsertDocument.Factory.newInstance();
        InsertType insertType = insertDoc.addNewInsert();
        XmlObject anyXBean = createXsdAnyPropElem();
        XmlBeanUtils.addChildElement( insertType, anyXBean );
        set_provider.insertResourceProperty( insertType );
    }
View Full Code Here

        SushiResource resource = (SushiResource) m_resourceContext.getResource();
        ResourceProperty resourceProp = resource.getResourcePropertySet().get( SushiPropertyQNames.EBI );
        resourceProp.setCallback( m_callback );

        SetResourcePropertiesProvider set_provider = new SetResourcePropertiesProvider( m_resourceContext );
        InsertDocument insertDoc = InsertDocument.Factory.newInstance();
        InsertType insertType = insertDoc.addNewInsert();

        XmlObject xmlObject =
                XmlObject.Factory.parse( "<foo:Ebi xmlns:foo=\"http://ws.apache.org/resource/properties/test/sushi\">"
                + "0" + "</foo:Ebi>" );
        XmlBeanUtils.addChildElement( insertType, xmlObject );
View Full Code Here

    public void testInsertResourceProperty()
            throws XmlException
    {
        m_resourceContext = new SushiResourceContext();
        SetResourcePropertiesProvider set_provider = new SetResourcePropertiesProvider( m_resourceContext );
        InsertDocument insertDoc = InsertDocument.Factory.newInstance();
        InsertType insertType = insertDoc.addNewInsert();

        XmlObject xmlObject =
                XmlObject.Factory.parse( "<foo:Ebi xmlns:foo=\"http://ws.apache.org/resource/properties/test/sushi\">"
                + "0" + "</foo:Ebi>" );
        XmlBeanUtils.addChildElement( insertType, xmlObject );
View Full Code Here

TOP

Related Classes of org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetResourcePropertyResponseDocument

Copyright © 2018 www.massapicom. 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.