Package com.esri.gpt.junit.facade

Examples of com.esri.gpt.junit.facade.HttpServletRequestFacade


      String actionName = action.nodeName;
      String queryString = null;
      if (action.nodeName.equalsIgnoreCase("url")) {
        queryString = Val.chkStr(action.nodeText);
      }
      HttpServletRequestFacade httpRequest = new HttpServletRequestFacade(queryString);
     
      // set up an administrative publisher
      if (this.admin == null) {
        RequestContext rc2 = null;
        try {
          rc2 = RequestContext.extract(null);
          this.admin = Publisher.makeSystemAdministrator(rc2);
        } finally {
          if (rc2 != null) rc2.onExecutionPhaseCompleted();
        }
      }
      httpRequest.getSession().setAttribute("com.esri.gpt.user",admin);
     
      // make the CSW request handler
      rc = RequestContext.extract(httpRequest);
      handler = ProviderFactory.newHandler(rc);
      RequestOptions rOptions = handler.getOperationContext().getRequestOptions();
View Full Code Here

TOP

Related Classes of com.esri.gpt.junit.facade.HttpServletRequestFacade

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.