|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Method Summary | |
---|---|
java.lang.String |
getHeader(java.lang.String name)
Returns the value of the specified part header as a String . |
java.util.Iterator<java.lang.String> |
getHeaderNames()
Returns an Enumeration of all the header names. |
java.util.Iterator<java.lang.String> |
getHeaders(java.lang.String name)
Returns all the values of the specified item header as an Enumeration of
String objects. |
Method Detail |
---|
java.lang.String getHeader(java.lang.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 name
String
containing the value of the requested header, or
null
if the item does not have a header of that namejava.util.Iterator<java.lang.String> getHeaders(java.lang.String name)
Returns all the values of the specified item header as an Enumeration
of
String
objects.
If the item did not include any headers of the specified name, this method returns an empty
Enumeration
. The header name is case insensitive.
name
- a String
specifying the header name
Enumeration
containing the values of the requested header. If the
item does not have any headers of that name, return an empty Enumeration
java.util.Iterator<java.lang.String> getHeaderNames()
Returns an Enumeration
of all the header names.
If the item did not include any headers of the specified name, this method returns an empty
Enumeration
. The header name is case insensitive.
Enumeration
containing the values of the requested header. If the
item does not have any headers of that name return an empty Enumeration
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |