Added getContentType() and getContentLength() methods
This commit is contained in:
		
							parent
							
								
									c1c7f6af38
								
							
						
					
					
						commit
						75afb61744
					
				
					 1 changed files with 13 additions and 6 deletions
				
			
		|  | @ -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; | ||||
|     } | ||||
| 
 | ||||
| 
 | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue