while (i < result.getRowCount())
{
IResultRow row = result.getRow(i++);
String name = (String)row.getValue(nameField);
String value = (String)row.getValue(valueField);
BasicClientCookie2 c = new BasicClientCookie2(name,value);
String domain = (String)row.getValue(domainField);
if (domain != null && domain.length() > 0)
c.setDomain(domain);
//c.setDomainAttributeSpecified(stringToBoolean((String)row.getValue(domainSpecifiedField)));
String path = (String)row.getValue(pathField);
if (path != null && path.length() > 0)
c.setPath(path);
//c.setPathAttributeSpecified(stringToBoolean((String)row.getValue(pathSpecifiedField)));
Long version = (Long)row.getValue(versionField);
if (version != null)
c.setVersion((int)version.longValue());
//c.setVersionAttributeSpecified(stringToBoolean((String)row.getValue(versionSpecifiedField)));
String comment = (String)row.getValue(commentField);
if (comment != null)
c.setComment(comment);
c.setSecure(stringToBoolean((String)row.getValue(secureField)));
Long expirationDate = (Long)row.getValue(expirationDateField);
if (expirationDate != null)
c.setExpiryDate(new Date(expirationDate.longValue()));
c.setDiscard(stringToBoolean((String)row.getValue(discardField)));
String commentURL = (String)row.getValue(commentURLField);
if (commentURL != null && commentURL.length() > 0)
c.setCommentURL(commentURL);
String ports = (String)row.getValue(portField);
// Ports are comma-separated
if (ports != null && ports.length() > 0)
c.setPorts(stringToPorts(ports));
//c.setPortAttributeBlank(stringToBoolean((String)row.getValue(portBlankField)));
//c.setPortAttributeSpecified(stringToBoolean((String)row.getValue(portSpecifiedField)));
dcs.addCookie(c);
}