throw new ChainedRuntimeException("Failed to connect to ["
+ ((WebConfiguration) getConfiguration()).getRedirectorURL(this)
+ "]", e);
}
WebResponse response;
try
{
response = (WebResponse) new WebResponseObjectFactory(
resultConnection).getResponseObject(
WebResponse.class.getName(),
obtainSessionIdRequest);
}
catch (ClientException e)
{
throw new ChainedRuntimeException("Failed to connect to ["
+ ((WebConfiguration) getConfiguration()).getRedirectorURL(this)
+ "]", e);
}
Cookie cookie = response.getCookieIgnoreCase("jsessionid");
// TODO: Add a constructor to the Cookie class that takes a Cookie
// as parameter.
HttpSessionCookie sessionCookie = null;