Package com.helger.web.fileupload
Interface IFileItemHeaders
-
- All Known Implementing Classes:
FileItemHeaders
public interface IFileItemHeadersThis class provides support for accessing the headers for a file or form item that was received within a
multipart/form-dataPOST request.- Since:
- 1.3
- Author:
- Michael C. Macaluso
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.helger.commons.collection.impl.ICommonsList<String>getAllHeaderNames()Returns aListof all the header names.StringgetHeader(String sName)Returns the value of the specified part header as aString.StringgetHeaderContentDisposition()StringgetHeaderContentLength()StringgetHeaderContentType()Iterator<String>getHeaderNames()Returns anIteratorof all the header names.Iterator<String>getHeaders(String sName)Returns all the values of the specified item header as anIteratorofStringobjects.
-
-
-
Method Detail
-
getHeader
@Nullable String getHeader(@Nonnull String sName)
Returns 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.- Parameters:
sName- aStringspecifying the header name- Returns:
- a
Stringcontaining the value of the requested header, ornullif the item does not have a header of that name
-
getHeaders
@Nonnull Iterator<String> getHeaders(@Nonnull String sName)
Returns 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.- Parameters:
sName- aStringspecifying the header name- Returns:
- an
Enumerationcontaining the values of the requested header. If the item does not have any headers of that name, return an emptyIterator
-
getHeaderNames
@Nonnull Iterator<String> getHeaderNames()
Returns an
Iteratorof all the header names.- Returns:
- an
Enumerationcontaining the headers. If the item does not have any headers return an emptyIterator
-
getAllHeaderNames
@Nonnull @ReturnsMutableCopy com.helger.commons.collection.impl.ICommonsList<String> getAllHeaderNames()
Returns a
Listof all the header names.- Returns:
- an
Listcontaining the values of the requested header. If the item does not have any headers of that name return an emptyEnumeration
-
-