Added getContentType() and getContentLength() methods

This commit is contained in:
hns 2002-11-21 15:47:44 +00:00
parent c1c7f6af38
commit 75afb61744

View file

@ -9,7 +9,7 @@ import java.util.Date;
/**
* This represents a MIME part of a HTTP file upload
*/
public class MimePart implements Serializable {
public final String name;
@ -28,6 +28,18 @@ public class MimePart implements Serializable {
contentLength = content == null ? 0 : content.length;
}
public String getContentType () {
return contentType;
}
public int getContentLength () {
return contentLength;
}
public String getName () {
return name;
}
public byte[] getContent () {
return content;
}
@ -76,9 +88,4 @@ public class MimePart implements Serializable {
}
}
public String getName () {
return name;
}
}