public interface FileItemHeaders
This class provides support for accessing the headers for a file or form
item that was received within a multipart/form-data
POST
request.
Modifier and Type | Method and Description |
---|---|
String |
getHeader(String name)
Returns the value of the specified part header as a
String . |
Iterator<String> |
getHeaderNames()
Returns an
Iterator of all the header names. |
Iterator<String> |
getHeaders(String name)
Returns all the values of the specified item header as an
Iterator of String objects. |
String getHeader(String name)
String
.
If the part did not include a header of the specified name, this method
return null
. If there are multiple headers with the same
name, this method returns the first header in the item. The header
name is case insensitive.name
- a String
specifying the header nameString
containing the value of the requested
header, or null
if the item does not have a header
of that nameIterator<String> getHeaders(String name)
Returns all the values of the specified item header as an
Iterator
of String
objects.
If the item did not include any headers of the specified name, this
method returns an empty Iterator
. The header name is
case insensitive.
name
- a String
specifying the header nameIterator
containing the values of the
requested header. If the item does not have any headers of
that name, return an empty Iterator
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.