Added getContentType() and getContentLength() methods
This commit is contained in:
parent
c1c7f6af38
commit
75afb61744
1 changed files with 13 additions and 6 deletions
|
@ -28,6 +28,18 @@ public class MimePart implements Serializable {
|
||||||
contentLength = content == null ? 0 : content.length;
|
contentLength = content == null ? 0 : content.length;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getContentType () {
|
||||||
|
return contentType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getContentLength () {
|
||||||
|
return contentLength;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName () {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
public byte[] getContent () {
|
public byte[] getContent () {
|
||||||
return content;
|
return content;
|
||||||
}
|
}
|
||||||
|
@ -76,9 +88,4 @@ public class MimePart implements Serializable {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getName () {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue