Package com.esri.gpt.framework.context

Examples of com.esri.gpt.framework.context.RequestContext


* Gets the message associated with user feedback.
* @return the feedback message
*/
public FeedbackMessage getFeedbackMessage() {
  if (_feedbackMessage == null) {
    RequestContext context = extractRequestContext();
    _feedbackMessage = new FeedbackMessage();
    //_feedbackMessage.setFromName(context.getUser().getName());
    _feedbackMessage.setFromAddress(context.getUser().getProfile().getEmailAddress());
  }
  return _feedbackMessage;
}
View Full Code Here


/**
* Gets the identity configuration associated with the application.
* @return the identity configuration
*/
private IdentityConfiguration getIdentityConfiguration() {
  RequestContext rc = extractRequestContext();
  return rc.getApplicationConfiguration().getIdentityConfiguration();
}
View Full Code Here

   * Executes the test of a configured action.
   * @param action the active test action
   * @throws Exception if a processing exception occurs
   */
  public void testAction(CfgAction action) throws Exception {
    RequestContext rc = null;
    RequestHandler handler = null;
    boolean succeeded = false;
    try {

      // make the HTTP servlet request
      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
View Full Code Here

TOP

Related Classes of com.esri.gpt.framework.context.RequestContext

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.