this.setCookies.addElement( convertCookie(cookie) );
}
private HttpSetCookie convertCookie(Cookie cookie)
{
HttpSetCookie scookie = new HttpSetCookie(true,cookie.getName(),cookie.getValue());
scookie.setComment(cookie.getComment());
scookie.setDomain(cookie.getDomain());
scookie.setMaxAge(cookie.getMaxAge());
scookie.setPath(cookie.getPath());
scookie.setSecurity(cookie.getSecure());
scookie.setVersion(cookie.getVersion());
//System.out.println("Set-Cookie = "+scookie.toString());
return scookie;
}