org.apache.catalina.core
Class ApplicationPart
java.lang.Object
org.apache.catalina.core.ApplicationPart
- All Implemented Interfaces:
- Part
public class ApplicationPart
- extends java.lang.Object
- implements Part
Adaptor to allow FileItem objects generated by the package renamed
commons-upload to be used by the Servlet 3.0 upload API that expects
Parts.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ApplicationPart
public ApplicationPart(FileItem fileItem,
MultipartConfigElement mce)
delete
public void delete()
throws java.io.IOException
- Specified by:
delete in interface Part
- Throws:
java.io.IOException
getContentType
public java.lang.String getContentType()
- Specified by:
getContentType in interface Part
getHeader
public java.lang.String getHeader(java.lang.String name)
- Description copied from interface:
javax.servlet.http.Part
- Obtains the value of the specified mime header for the part.
- Specified by:
getHeader in interface Part
- Parameters:
name - Header name
- Returns:
- The header value or
null if the header is not
present
getHeaderNames
public java.util.Collection<java.lang.String> getHeaderNames()
- Specified by:
getHeaderNames in interface Part
getHeaders
public java.util.Collection<java.lang.String> getHeaders(java.lang.String name)
- Specified by:
getHeaders in interface Part
getInputStream
public java.io.InputStream getInputStream()
throws java.io.IOException
- Specified by:
getInputStream in interface Part
- Throws:
java.io.IOException
getName
public java.lang.String getName()
- Specified by:
getName in interface Part
getSize
public long getSize()
- Specified by:
getSize in interface Part
write
public void write(java.lang.String fileName)
throws java.io.IOException
- Specified by:
write in interface Part
- Throws:
java.io.IOException
getString
public java.lang.String getString(java.lang.String encoding)
throws java.io.UnsupportedEncodingException
- Throws:
java.io.UnsupportedEncodingException
getFilename
public java.lang.String getFilename()
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.