javax.servlet.http
Interface Part


public interface Part

Since:
Servlet 3.0 TODO SERVLET3 - Add comments

Method Summary
 void delete()
           
 String getContentType()
           
 String getHeader(String name)
          Obtains the value of the specified mime header for the part.
 Collection<String> getHeaderNames()
           
 Collection<String> getHeaders(String name)
           
 InputStream getInputStream()
           
 String getName()
           
 long getSize()
           
 void write(String fileName)
           
 

Method Detail

getInputStream

InputStream getInputStream()
                           throws IOException
Throws:
IOException

getContentType

String getContentType()

getName

String getName()

getSize

long getSize()

write

void write(String fileName)
           throws IOException
Throws:
IOException

delete

void delete()
            throws IOException
Throws:
IOException

getHeader

String getHeader(String name)
Obtains the value of the specified mime header for the part.

Parameters:
name - Header name
Returns:
The header value or null if the header is not present

getHeaders

Collection<String> getHeaders(String name)

getHeaderNames

Collection<String> getHeaderNames()

(Built by coreservlets)

As of July 2010, there were no online versions of the servlet 3.0, JSP 2.2, and EL 2.2 Javadocs, except as part of the huge Java EE 6 API. So, I built them myself from the Tomcat 7 source code.

Java EE TutorialsJava EE Training