Package org.apache.abdera.ext.opensearch.model

Examples of org.apache.abdera.ext.opensearch.model.OpenSearchDescription.addQueries()


        Query query = new Query(Abdera.getInstance());
        query.setRole(Query.Role.EXAMPLE);
        query.setSearchTerms(QUERY_TERMS);
       
        document.addUrls(url);
        document.addQueries(query);
       
        StringWriter writer = new StringWriter();
        document.writeTo(writer);
       
        String result = writer.toString();
View Full Code Here


        if (this.queries != null) {
            List<Query> queryElements = new ArrayList<Query>(this.queries.length);
            for (OpenSearchQueryInfo queryInfo : this.queries) {
                queryElements.add(queryInfo.asQueryElement(request));
            }
            document.addQueries(queryElements.toArray(new Query[this.queries.length]));
        }

        return document;
    }
}
View Full Code Here

        Query query = new Query(Abdera.getInstance());
        query.setRole(Query.Role.EXAMPLE);
        query.setSearchTerms(QUERY_TERMS);

        document.addUrls(url);
        document.addQueries(query);

        StringWriter writer = new StringWriter();
        document.writeTo(writer);

        String result = writer.toString();
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.