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();