JavaScript is disabled on your browser.
  • Summary:
  • Nested |
  • Field |
  • Constr |
  • Method
  • Detail:
  • Field |
  • Constr |
  • Method
javax.servlet.http

Interface Part



  • public interface Part
    A MIME body part received as part of a multipart/form-data request.
    Since:
    3.0
    • Method Summary

      Methods
      Modifier and Type Method and Description
      void delete ()
      Delete any underlying storage for this part.
      java.lang.String getContentType ()
      Returns the MIME Content-Type of the part.
      java.lang.String getHeader (java.lang.String name)
      Returns the specified MIME header value, or null if no such header exists.
      java.util.Collection<java.lang.String> getHeaderNames ()
      Returns the header names for this part.
      java.util.Collection<java.lang.String> getHeaders (java.lang.String name)
      Returns the specified MIME header values, or an empty collection if no such header exists.
      java.io.InputStream getInputStream ()
      Returns the part content.
      java.lang.String getName ()
      Returns the name of this part.
      long getSize ()
      Returns the size of the part.
      void write (java.lang.String fileName)
      Convenience method to write this part to disk.
    • Method Detail

      • getInputStream

        java.io.InputStream getInputStream()
         throws java.io.IOException
        Returns the part content.
        Throws:
        java.io.IOException
      • getContentType

        java.lang.String getContentType()
        Returns the MIME Content-Type of the part.
      • getName

        java.lang.String getName()
        Returns the name of this part.
      • getSize

        long getSize()
        Returns the size of the part.
      • write

        void write(java.lang.String fileName)
         throws java.io.IOException
        Convenience method to write this part to disk.
        Parameters:
        fileName - the name of the file to write to, relative to the location specified in MultipartConfig.
        Throws:
        java.io.IOException
      • delete

        void delete()
         throws java.io.IOException
        Delete any underlying storage for this part.
        Throws:
        java.io.IOException
      • getHeader

        java.lang.String getHeader(java.lang.String name)
        Returns the specified MIME header value, or null if no such header exists.
      • getHeaders

        java.util.Collection<java.lang.String> getHeaders(java.lang.String name)
        Returns the specified MIME header values, or an empty collection if no such header exists.
      • getHeaderNames

        java.util.Collection<java.lang.String> getHeaderNames()
        Returns the header names for this part. NB some containers are broken and this method may return null.
  • Summary:
  • Nested |
  • Field |
  • Constr |
  • Method
  • Detail:
  • Field |
  • Constr |
  • Method

AltStyle によって変換されたページ (->オリジナル) /