* 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