if ((sItemType != null) && sItemType.equals("file")) {
sPartName = "file";
sFileName = sItem; // TODO is this correct?
provider.add("item",sItem); // TODO is this correct?
provider.add(new AgpDPart(con,sourceItem,sUrl,sPartName,sFileName,nDataSize));
} else if ((sItemType != null) && sItemType.equals("url")) {
// Content-Type: text/plain; charset=utf-8
sPartName = "text";
sFileName = null;
provider.add("item",sItem); // TODO is this correct?
provider.add(new AgpDPart(con,sourceItem,sUrl,sPartName,sFileName,nDataSize));
} else if ((sItemType != null) && sItemType.equals("text")) {
sPartName = "text";
sFileName = null;
if (!sType.equals("Web Map")) {
provider.add("item",sItem); // TODO is this correct?
provider.add(new AgpDPart(con,sourceItem,sUrl,sPartName,sFileName,nDataSize));
} else {
provider.add("item",sItem); // TODO is this correct?
String sCType = "application/x-www-form-urlencoded";