public String toXML() { StringBuffer buffer = new StringBuffer(); buffer.append("<").append(getElementName()).append(" xmlns=\"") .append(getNamespace()).append("\" "); if (getName() != null) { buffer.append("name=\"").append(getName()).append("\" "); if (getSize() > 0) { buffer.append("size=\"").append(getSize()).append("\" "); if (getDate() != null) { buffer.append("date=\"").append(DelayInformation.UTC_FORMAT.format(date)).append("\" "); if (getHash() != null) { buffer.append("hash=\"").append(getHash()).append("\" "); if (getDesc() != null && desc.length() > 0) { buffer.append("<desc>").append(StringUtils.escapeForXML(getDesc())).append("</desc>"); if (isRanged()) { buffer.append("<range/>"); buffer.append("</").append(getElementName()).append(">");
si.setMimeType(URLConnection.guessContentTypeFromName(fileName)); StreamInitiation.File siFile = new StreamInitiation.File(fileName, size); siFile.setDesc(desc); si.setFile(siFile);
si.setMimeType(URLConnection.guessContentTypeFromName(fileName)); StreamInitiation.File siFile = new StreamInitiation.File(fileName, size); siFile.setDesc(desc); si.setFile(siFile);
si.setMimeType(URLConnection.guessContentTypeFromName(fileName)); StreamInitiation.File siFile = new StreamInitiation.File(fileName, size); siFile.setDesc(desc); si.setFile(siFile);
si.setMimeType(URLConnection.guessContentTypeFromName(fileName)); StreamInitiation.File siFile = new StreamInitiation.File(fileName, size); siFile.setDesc(desc); si.setFile(siFile);
public String toXML() { StringBuilder buffer = new StringBuilder(); buffer.append("<").append(getElementName()).append(" xmlns=\"") .append(getNamespace()).append("\" "); if (getName() != null) { buffer.append("name=\"").append(StringUtils.escapeForXML(getName())).append("\" "); if (getSize() > 0) { buffer.append("size=\"").append(getSize()).append("\" "); if (getDate() != null) { buffer.append("date=\"").append(StringUtils.formatXEP0082Date(date)).append("\" "); if (getHash() != null) { buffer.append("hash=\"").append(getHash()).append("\" "); if (getDesc() != null && desc.length() > 0) { buffer.append("<desc>").append(StringUtils.escapeForXML(getDesc())).append("</desc>"); if (isRanged()) { buffer.append("<range/>"); buffer.append("</").append(getElementName()).append(">");
public String toXML() { StringBuilder buffer = new StringBuilder(); buffer.append("<").append(getElementName()).append(" xmlns=\"") .append(getNamespace()).append("\" "); if (getName() != null) { buffer.append("name=\"").append(StringUtils.escapeForXML(getName())).append("\" "); if (getSize() > 0) { buffer.append("size=\"").append(getSize()).append("\" "); if (getDate() != null) { buffer.append("date=\"").append(StringUtils.formatXEP0082Date(date)).append("\" "); if (getHash() != null) { buffer.append("hash=\"").append(getHash()).append("\" "); if (getDesc() != null && desc.length() > 0) { buffer.append("<desc>").append(StringUtils.escapeForXML(getDesc())).append("</desc>"); if (isRanged()) { buffer.append("<range/>"); buffer.append("</").append(getElementName()).append(">");
public String toXML() { StringBuilder buffer = new StringBuilder(); buffer.append("<").append(getElementName()).append(" xmlns=\"") .append(getNamespace()).append("\" "); if (getName() != null) { buffer.append("name=\"").append(StringUtils.escapeForXML(getName())).append("\" "); if (getSize() > 0) { buffer.append("size=\"").append(getSize()).append("\" "); if (getDate() != null) { buffer.append("date=\"").append(StringUtils.formatXEP0082Date(date)).append("\" "); if (getHash() != null) { buffer.append("hash=\"").append(getHash()).append("\" "); if (getDesc() != null && desc.length() > 0) { buffer.append("<desc>").append(StringUtils.escapeForXML(getDesc())).append("</desc>"); if (isRanged()) { buffer.append("<range/>"); buffer.append("</").append(getElementName()).append(">");
/** * Returns the name of the file. * * @return Returns the name of the file. */ public String getFileName() { return streamInitiation.getFile().getName(); }
/** * Returns the description of the file provided by the requestor. * * @return Returns the description of the file provided by the requestor. */ public String getDescription() { return streamInitiation.getFile().getDesc(); }
/** * Returns the name of the file. * * @return Returns the name of the file. */ public String getFileName() { return streamInitiation.getFile().getName(); }
/** * Returns the name of the file. * * @return Returns the name of the file. */ public String getFileName() { return streamInitiation.getFile().getName(); }
/** * Returns the name of the file. * * @return Returns the name of the file. */ public String getFileName() { return streamInitiation.getFile().getName(); }
/** * Returns the size in bytes of the file. * * @return Returns the size in bytes of the file. */ public long getFileSize() { return streamInitiation.getFile().getSize(); }
/** * Returns the size in bytes of the file. * * @return Returns the size in bytes of the file. */ public long getFileSize() { return streamInitiation.getFile().getSize(); }
/** * Returns the size in bytes of the file. * * @return Returns the size in bytes of the file. */ public long getFileSize() { return streamInitiation.getFile().getSize(); }