Package org.molgenis.util.tuple

Examples of org.molgenis.util.tuple.HttpServletRequestTuple


      rulesList = QueryRuleUtil.fromRESTstring(URLDecoder.decode(request.getQueryString(), "UTF-8"));
    }
    // use 'post'
    else
    {
      Tuple requestTuple = new HttpServletRequestTuple(request);
      StringBuilder queryStringBuilder = new StringBuilder();
      for (String name : requestTuple.getColNames())
      {
        queryStringBuilder.append(URLDecoder.decode(name, "UTF-8")).append('=');
        queryStringBuilder.append(URLDecoder.decode(requestTuple.getString(name), "UTF-8"));
      }
      String queryString = queryStringBuilder.toString();
      logger.debug("handle find query via http-post with parameters: " + queryString);
      rulesList = QueryRuleUtil.fromRESTstring(queryString);
    }
View Full Code Here


    this.setModel(model);
  }

  public String include(Tuple request, String path)
  {
    HttpServletRequestTuple rt = (HttpServletRequestTuple) request;
    HttpServletRequest httpRequest = rt.getRequest();
    HttpServletResponse httpResponse = rt.getResponse();
    RedirectTextWrapper respWrapper = new RedirectTextWrapper(httpResponse);

    // Call/include page
    try
    {
View Full Code Here

TOP

Related Classes of org.molgenis.util.tuple.HttpServletRequestTuple

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.