Package com.sun.syndication.feed.module.opensearch.entity

Examples of com.sun.syndication.feed.module.opensearch.entity.OSQuery


        link.setHref("http://www.jahia.org/opensearch-description.xml");
        link.setType("application/opensearchdescription+xml");
        link.setTitle("Jahia Open Search");
        osm.setLink(link);

        OSQuery query = new OSQuery();
        query.setRole("request");
        query.setSearchTerms(searchString);
        osm.addQuery(query);

        List<OpenSearchModule> modules = feed.getModules();
        modules.add(osm);
        feed.setModules(modules);
View Full Code Here


    {
      OpenSearchModule osMod = new OpenSearchModuleImpl();
      osMod.setTotalResults(qRes.getHitCount());
      osMod.setStartIndex(qRes.getStart());
      osMod.setItemsPerPage(qRes.getPageSize());
      OSQuery osq = new OSQuery();
      osq.setRole("request");
        try
        {
            osq.setSearchTerms(URLEncoder.encode(query, "UTF-8"));
          }
        catch(UnsupportedEncodingException e)
          {
            log.error(e);
          }
        osq.setStartPage(1 + (qRes.getStart() / qRes.getPageSize()));
        osMod.addQuery(osq);
        return osMod;
          }
View Full Code Here

    {
      OpenSearchModule osMod = new OpenSearchModuleImpl();
      osMod.setTotalResults(totalResults);
      osMod.setStartIndex(start);
      osMod.setItemsPerPage(pageSize);
      OSQuery osq = new OSQuery();
      osq.setRole("request");
        try
        {
            osq.setSearchTerms(URLEncoder.encode(query, "UTF-8"));
        }
        catch(UnsupportedEncodingException e)
        {
            log.error(e);
        }
        osq.setStartPage(1 + (start / pageSize));
        osMod.addQuery(osq);
        return osMod;
    }
View Full Code Here

TOP

Related Classes of com.sun.syndication.feed.module.opensearch.entity.OSQuery

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.