/** * Return the disposition type of the content disposition of this * <code>Entity</code>. * * @return the disposition type or <code>null</code> if no disposition * type has been set. */ public String getDispositionType() { ContentDispositionField field = obtainField(FieldName.CONTENT_DISPOSITION); if (field == null) return null; return field.getDispositionType(); }
/** * Returns the filename parameter of the content disposition of this * <code>Entity</code>. * * @return the filename parameter of the content disposition or * <code>null</code> if the filename has not been set. */ public String getFilename() { ContentDispositionField field = obtainField(FieldName.CONTENT_DISPOSITION); if (field == null) return null; return field.getFilename(); }