Package com.esri.gpt.catalog.search

Examples of com.esri.gpt.catalog.search.RestUrlBuilder


  SearchCriteria criteria = this.getSearchCriteria();
  RequestContext context =  this.getContextBroker().extractRequestContext();
  HttpServletRequest request = this.getContextBroker().extractHttpServletRequest();
 
  MessageBroker messageBroker = this.getContextBroker().extractMessageBroker();
  RestUrlBuilder builder = RestUrlBuilder.newBuilder(context,request,messageBroker);
  String params = builder.buildParameters(criteria,format,null);
  String url = request.getContextPath()+"/rest/find/document";
  if ((params != null) && (params.length() > 0)) {
    url += "?"+params;
  }
  return url;
View Full Code Here


    queryString = queryString.replaceAll("&$", "");
    return request.getContextPath()+"/rest/find/document" + "?" + queryString;
  }
 
  MessageBroker messageBroker = this.getContextBroker().extractMessageBroker();
  RestUrlBuilder builder = RestUrlBuilder.newBuilder(context,request,messageBroker);
  String params = builder.buildParameters(criteria,format,rid);
  String url = request.getContextPath()+"/rest/find/document";
  if ((params != null) && (params.length() > 0)) {
    url += "?"+params;
  }
  return url;
View Full Code Here

      InputStream inputStream = new ByteArrayInputStream(criteria.getBytes());
      Document doc = XMLUtils.newDocument(new InputSource(inputStream));
      SearchCriteria searchCriteria = new SearchCriteria(doc);
      MessageBroker messageBroker =
        new FacesContextBroker(request,response).extractMessageBroker();
      RestUrlBuilder builder = RestUrlBuilder.newBuilder(context,request,
          messageBroker);
      String id = SearchEngineLocal.ID;
      for(ISearchFilter filter : searchCriteria.getMiscelleniousFilters()) {
        if(filter instanceof SearchFilterHarvestSites) {
          SearchFilterHarvestSites hFilter = (SearchFilterHarvestSites) filter;
          id = hFilter.getSelectedHarvestSiteId();
        }
      }
      String params = builder.buildParameters(searchCriteria,
          "searchPage",
          id);
      criteria = params;
    } catch(Exception e) {
      LOG.log(Level.FINER, "" , e);
View Full Code Here

TOP

Related Classes of com.esri.gpt.catalog.search.RestUrlBuilder

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.