}
}
private void processVarParams(String varParam) throws WGAPIException, UnsupportedEncodingException, IOException {
VarParamsMap varParams = URLBuilder.extractVarParameters(varParam, getTMLContext().getwgacore().getDesEncrypter());
// Wrong session? Discard var params
if (!varParams.isValidSession(getPageContext().getSession())) {
getTMLContext().getlog().warn("Var params for wrong session used by client " + getPageContext().getRequest().getRemoteAddr() + ". Not used.");
return;
}
getTMLContext().getrequest().setAttribute(WGACore.ATTRIB_VAR_PARAMETERS, varParams);
for (Map.Entry<String,Object> param : varParams.entrySet()) {
getTMLContext().setvar(param.getKey(), param.getValue());
}
}