result = request.getMethod();
}
//
else if ("QUERY_STRING".equals(varName)) {
if ("post".equalsIgnoreCase(request.getMethod())) {
ParserRequestContext parserRequestContext = RequestContextUtil.findRequestContext(request,
ParserRequestContext.class);
result = parserRequestContext.getParameters().toQueryString();
} else {
result = request.getQueryString();
}
}
//
else if (varName.startsWith("QUERY:")) {
ParserRequestContext parserRequestContext = RequestContextUtil.findRequestContext(request,
ParserRequestContext.class);
result = parserRequestContext.getParameters().getString(varName.substring("QUERY:".length()).trim());
}
//
else if ("AUTH_TYPE".equals(varName)) {
result = request.getAuthType();
}