|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.fileupload.util.FileItemHeadersImpl
public class FileItemHeadersImpl
Default implementation of the FileItemHeaders
interface.
Constructor Summary | |
---|---|
FileItemHeadersImpl()
|
Method Summary | |
---|---|
void |
addHeader(String name,
String value)
Method to add header values to this instance. |
String |
getHeader(String name)
Returns the value of the specified part header as a String . |
Iterator |
getHeaderNames()
Returns an Enumeration of all the header names. |
Iterator |
getHeaders(String name)
Returns all the values of the specified item header as an Enumeration of String objects. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileItemHeadersImpl()
Method Detail |
---|
public String getHeader(String name)
FileItemHeaders
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.
getHeader
in interface FileItemHeaders
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 namepublic Iterator getHeaderNames()
FileItemHeaders
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.
getHeaderNames
in interface FileItemHeaders
Enumeration
containing the values of the
requested header. If the item does not have any headers of
that name return an empty Enumeration
public Iterator getHeaders(String name)
FileItemHeaders
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.
getHeaders
in interface FileItemHeaders
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
public void addHeader(String name, String value)
name
- name of this headervalue
- value of this header
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |