Class FileItemHeadersImpl
java.lang.Object
org.apache.tomcat.util.http.fileupload.util.FileItemHeadersImpl
- All Implemented Interfaces:
- Serializable,- FileItemHeaders
Default implementation of the 
FileItemHeaders interface.- Since:
- 1.2.1
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidMethod to add header values to this instance.Returns the value of the specified part header as aString.Returns anIteratorof all the header names.getHeaders(String name) Returns all the values of the specified item header as anIteratorofStringobjects.
- 
Constructor Details- 
FileItemHeadersImplpublic FileItemHeadersImpl()
 
- 
- 
Method Details- 
getHeaderDescription copied from interface:FileItemHeadersReturns the value of the specified part header as aString. If the part did not include a header of the specified name, this method returnnull. If there are multiple headers with the same name, this method returns the first header in the item. The header name is case insensitive.- Specified by:
- getHeaderin interface- FileItemHeaders
- Parameters:
- name- a- Stringspecifying the header name
- Returns:
- a Stringcontaining the value of the requested header, ornullif the item does not have a header of that name
 
- 
getHeaderNamesDescription copied from interface:FileItemHeadersReturns an Iteratorof all the header names.- Specified by:
- getHeaderNamesin interface- FileItemHeaders
- Returns:
- an Iteratorcontaining all of the names of headers provided with this file item. If the item does not have any headers return an emptyIterator
 
- 
getHeadersDescription copied from interface:FileItemHeadersReturns all the values of the specified item header as an IteratorofStringobjects.If the item did not include any headers of the specified name, this method returns an empty Iterator. The header name is case insensitive.- Specified by:
- getHeadersin interface- FileItemHeaders
- Parameters:
- name- a- Stringspecifying the header name
- Returns:
- an Iteratorcontaining the values of the requested header. If the item does not have any headers of that name, return an emptyIterator
 
- 
addHeaderMethod to add header values to this instance.- Parameters:
- name- name of this header
- value- value of this header
 
 
-