Examples of QueryExpressionType


Examples of axis.com.ibm.www.xmlns.stdwip.web_services.WS_ResourceProperties.QueryExpressionType

      // Setup other subscription information.
      Calendar terminationTime = Calendar.getInstance(  );
      terminationTime.add( Calendar.HOUR, 1 ); // expire this subscription in 1 hour
      request.setInitialTerminationTime( terminationTime );
      request.setPrecondition( new QueryExpressionType(  ) );
      request.setSelector( new QueryExpressionType(  ) );
      request.setSubscriptionPolicy( null );

      // useNotify == true indicates that the Notification will be wrapped in a wsnt:Notify element.
      request.setUseNotify( new Boolean( true ) );
View Full Code Here

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

        ReferencePropertiesType referenceProperties = endpointReference.getReferenceProperties();
        System.out.println("Reference properties: " + referenceProperties);


        // lets get the selector
        QueryExpressionType selector = subscribe.getSelector();
        String dialect = selector.getDialect();
        XmlAnyURI dialectURI = selector.xgetDialect();
        String text = selector.xmlText();
        System.out.println("Selector dialect: " + dialect + " of uri: " + dialectURI + " with value: " + text);


        // termination time
        Calendar initialTerminationTime = subscribe.getInitialTerminationTime();
View Full Code Here

Examples of org.oasis.wsrf.properties.QueryExpressionType

    private static QueryExpressionType createQueryExpression(String dialect,
                                                             String queryString)
            throws IOException {

        final QueryExpressionType query = new QueryExpressionType();
        query.setDialect(dialect);

        if (queryString != null) {
            query.setValue(queryString);
        }

        return query;
    }
View Full Code Here

Examples of org.oasis.wsrf.properties.QueryExpressionType

    private static QueryExpressionType createQueryExpression(String dialect,
                                                             String queryString)
            throws IOException {

        final QueryExpressionType query = new QueryExpressionType();
        query.setDialect(dialect);

        if (queryString != null) {
            query.setValue(queryString);
        }

        return query;
    }
View Full Code Here

Examples of org.oasis.wsrf.properties.QueryExpressionType

    private QueryExpressionType createQueryExpression(String dialect,
                                                      String queryString)
        throws IOException {

        QueryExpressionType query = new QueryExpressionType();
        query.setDialect(dialect);

        if (queryString != null) {
            query.setValue(queryString);
        }

        return query;
    }
View Full Code Here

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

    private QueryResourcePropertiesResponseDocument.QueryResourcePropertiesResponse queryResourceProperties( String xPathExpr, URI dialect )
    {
        QueryResourcePropertiesPortTypeImpl provider = new QueryResourcePropertiesPortTypeImpl( m_resourceContext );
        QueryResourcePropertiesDocument doc = QueryResourcePropertiesDocument.Factory.newInstance();
        QueryResourcePropertiesDocument.QueryResourceProperties queryResourceProperties = doc.addNewQueryResourceProperties();
        QueryExpressionType queryExpressionType = queryResourceProperties.addNewQueryExpression();
        queryExpressionType.setDialect( dialect.toString() );
        XmlBeanUtils.setValue( queryExpressionType, xPathExpr );

        QueryResourcePropertiesResponseDocument queryResourcePropertiesResponseDocument = provider.queryResourceProperties( doc );
        QueryResourcePropertiesResponseDocument.QueryResourcePropertiesResponse queryResourcePropertiesResponse =
                queryResourcePropertiesResponseDocument.getQueryResourcePropertiesResponse();
View Full Code Here

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

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

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

     * Test for {@link XmlBeanUtils#setValueAsQName(XmlObject, QName)}.
     */
    public void testSetValueAsQName()
    {
        QueryExpressionDocument queryExpressionDocument = QueryExpressionDocument.Factory.newInstance();
        QueryExpressionType queryExpressionType = queryExpressionDocument.addNewQueryExpression();
        XmlBeanUtils.setValueAsQName( queryExpressionType, SushiPropertyQNames.AKAGI );
        XmlCursor xCursor = queryExpressionType.newCursor();
        String prefix = xCursor.prefixForNamespace( SushiPropertyQNames.AKAGI.getNamespaceURI() );
        String value = xCursor.getTextValue();
        assertEquals( prefix + ":" + SushiPropertyQNames.AKAGI.getLocalPart(), value );
    }
View Full Code Here

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

            LOG.debug( MSG.getMessage( Keys.QUERY_RP_REQ,
                    requestDoc.toString() ) );
        }

        QueryResourcePropertiesResponseDocument responseDoc = createResponseDocument();
        QueryExpressionType queryExprElem =
                requestDoc.getQueryResourceProperties().getQueryExpression();
        SOAPEnvelope envelope;
        try
        {
            envelope = getResourceContext().getSOAPMessage().getSOAPPart().getEnvelope();
View Full Code Here

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

    private QueryResourcePropertiesResponseDocument.QueryResourcePropertiesResponse queryResourceProperties( String xPathExpr, URI dialect )
    {
        QueryResourcePropertiesProvider provider = new QueryResourcePropertiesProvider( m_resourceContext );
        QueryResourcePropertiesDocument doc = QueryResourcePropertiesDocument.Factory.newInstance();
        QueryResourcePropertiesDocument.QueryResourceProperties queryResourceProperties = doc.addNewQueryResourceProperties();
        QueryExpressionType queryExpressionType = queryResourceProperties.addNewQueryExpression();
        queryExpressionType.setDialect( dialect.toString() );
        XmlBeanUtils.setValue( queryExpressionType, xPathExpr );
        QueryResourcePropertiesResponseDocument queryResourcePropertiesResponseDocument = provider.queryResourceProperties( doc );
        QueryResourcePropertiesResponseDocument.QueryResourcePropertiesResponse queryResourcePropertiesResponse =
                queryResourcePropertiesResponseDocument.getQueryResourcePropertiesResponse();
        return queryResourcePropertiesResponse;
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.