Package org.apache.commons.fileupload
Interface FileItemHeadersSupport
- All Known Subinterfaces:
FileItem,FileItemStream
- All Known Implementing Classes:
DefaultFileItem,DiskFileItem
public interface FileItemHeadersSupport
Interface that will indicate that
FileItem or FileItemStream
implementations will accept the headers read for the item.- Since:
- 1.2.1
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the collection of headers defined locally within this item.voidsetHeaders(FileItemHeaders headers) Sets the headers read from within an item.
-
Method Details
-
getHeaders
Returns the collection of headers defined locally within this item.- Returns:
- the
FileItemHeaderspresent for this item.
-
setHeaders
Sets the headers read from within an item. Implementations ofFileItemorFileItemStreamshould implement this interface to be able to get the raw headers found within the item header block.- Parameters:
headers- the instance that holds onto the headers for this instance.
-