Examples of GetResourcePropertyResponseDocument


Examples of org.activemq.ws.xmlbeans.resource.properties.GetResourcePropertyResponseDocument

       
        GetResourcePropertyDocument request = GetResourcePropertyDocument.Factory.newInstance();
        QName property = new QName("http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BrokeredNotification-1.2-draft-01.xsd", "RequiresRegistration");
        request.setGetResourceProperty( property );
        System.out.println(request);
        GetResourcePropertyResponseDocument response = broker.getResourceProperty(null, request);
        System.out.println(response);
        assertNotNull(response);
        XmlCursor cursor = response.newCursor();
        cursor.toChild(property);
        cursor.toFirstContentToken();
        assertEquals("false", cursor.getTextValue());
    }
View Full Code Here

Examples of org.activemq.ws.xmlbeans.resource.properties.GetResourcePropertyResponseDocument

    public XmlObject getResourceProperties() {
        return resourceProperties;
    }
   
    public GetResourcePropertyResponseDocument getResourceProperty(EndpointReferenceType resource, GetResourcePropertyDocument request) {
        GetResourcePropertyResponseDocument responseDoc = GetResourcePropertyResponseDocument.Factory.newInstance();
        GetResourcePropertyResponse response = responseDoc.addNewGetResourcePropertyResponse();
        XmlCursor cursor = response.newCursor();
        cursor.toFirstContentToken();

        XmlObject[] objects = resourceProperties.selectChildren(request.getGetResourceProperty());
        for (int i = 0; i < objects.length; i++) {
View Full Code Here

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

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

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

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

        return responseDoc;
    }

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

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

    {
        if ( LOG.isDebugEnabled() )
        {
            LOG.debug( MSG.getMessage( Keys.GET_RP_REQ, requestDoc.toString() ) );
        }
        GetResourcePropertyResponseDocument responseDoc = createResponseDocument();
        QName propName = requestDoc.getGetResourceProperty();
        ResourceProperty prop = getProperties().get( propName );
        if ( prop == null )
        {
            throw new InvalidResourcePropertyQNameFaultException( propName );
        }
        refreshProperty( prop );
        Iterator propElemIter = prop.iterator();
        while ( propElemIter.hasNext() )
        {
            XmlObject propElem = (XmlObject) propElemIter.next();
            XmlBeanUtils.addChildElement( responseDoc.getGetResourcePropertyResponse(),
                    propElem );
        }
        return responseDoc;
    }
View Full Code Here

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

        return responseDoc;
    }

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

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

    protected GetResourcePropertyResponseDocument.GetResourcePropertyResponse getResourceProperty( QName propName )
    {
        GetResourcePropertyProvider get_provider = new GetResourcePropertyProvider( 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

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

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

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

        return responseDoc;
    }

    private GetResourcePropertyResponseDocument createResponseDocument()
    {
        GetResourcePropertyResponseDocument responseDoc = GetResourcePropertyResponseDocument.Factory.newInstance();
        responseDoc.addNewGetResourcePropertyResponse();
        return responseDoc;
    }
View Full Code Here
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.