| Modifier and Type | Field and Description |
|---|---|
| private final MultipartConfigElement | |
| private final FormData. | |
| private final String | |
| private final ServletContextImpl | |
| private final HttpServletRequestImpl |
| Access | Constructor and Description |
|---|---|
| public | PartImpl(final String name, final FormData.
|
| Modifier and Type | Method and Description |
|---|---|
| public void | delete()
Implements jakarta. Deletes the underlying storage for a file item, including deleting any associated temporary disk file. |
| public String | getContentType()
Implements jakarta. Gets the content type of this part. |
| public String | getHeader(final String
a name)String specifying the header nameImplements jakarta. Returns the value of the specified mime header as a |
| public Collection | getHeaderNames()
Implements jakarta. Gets the header names of this Part. |
| public Collection | getHeaders(final String
the header name whose values to return name)Implements jakarta. Gets the values of the Part header with the given name. |
| public InputStream | getInputStream()
Implements jakarta. Gets the content of this part as an InputStream |
| public String | |
| public long | |
| public String | getSubmittedFileName()
Implements jakarta. Gets the file name specified by the client |
| public void | write(final String
The location into which the uploaded part should be stored. Relative paths are relative to
fileName)jakarta.servlet.MultipartConfigElement#getLocation(). Absolute paths are used as provided.Note that this is a system dependent string and URI notation may not be acceptable on all systems. For portability, this string should be generated with the File or Path APIs. Implements jakarta. A convenience method to write this uploaded item to disk. |
| config | back to summary |
|---|---|
| private final MultipartConfigElement config | |
| formValue | back to summary |
|---|---|
| private final FormData. | |
| name | back to summary |
|---|---|
| private final String name | |
| servletContext | back to summary |
|---|---|
| private final ServletContextImpl servletContext | |
| servletRequest | back to summary |
|---|---|
| private final HttpServletRequestImpl servletRequest | |
| PartImpl | back to summary |
|---|---|
| public PartImpl(final String name, final FormData. | |
| delete | back to summary |
|---|---|
| public void delete() throws IOException Implements jakarta. Doc from jakarta. Deletes the underlying storage for a file item, including deleting any associated temporary disk file.
| |
| getContentType | back to summary |
|---|---|
| public String getContentType() Implements jakarta. Doc from jakarta. Gets the content type of this part. | |
| getHeader | back to summary |
|---|---|
| public String getHeader(final String name) Implements jakarta. Doc from jakarta. Returns the value of the specified mime header as a | |
| getHeaderNames | back to summary |
|---|---|
| public Collection Implements jakarta. Doc from jakarta. Gets the header names of this Part.
Some servlet containers do not allow servlets to access headers using this method, in which case this method returns
Any changes to the returned
| |
| getHeaders | back to summary |
|---|---|
| public Collection Implements jakarta. Doc from jakarta. Gets the values of the Part header with the given name.
Any changes to the returned Part header names are case insensitive.
| |
| getInputStream | back to summary |
|---|---|
| public InputStream getInputStream() throws IOException Implements jakarta. Doc from jakarta. Gets the content of this part as an InputStream
| |
| getName | back to summary |
|---|---|
| public String getName() Implements jakarta. Doc from jakarta. Gets the name of this part | |
| getSize | back to summary |
|---|---|
| public long getSize() Implements jakarta. Doc from jakarta. Returns the size of this file.
| |
| getSubmittedFileName | back to summary |
|---|---|
| public String getSubmittedFileName() Implements jakarta. Doc from jakarta. Gets the file name specified by the client | |
| write | back to summary |
|---|---|
| public void write(final String fileName) throws IOException Implements jakarta. Doc from jakarta. A convenience method to write this uploaded item to disk. This method is not guaranteed to succeed if called more than once for the same part. This allows a particular implementation to use, for example, file renaming, where possible, rather than copying all of the underlying data, thus gaining a significant performance benefit.
| |