|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Form
The Form
interface is used to represent the details
submitted with a request. Typically this will be parameters given
by a HTML form, however a form can also contain parts. Each part
can represent either a file or a parameter. All parts can be
acquired as Part
objects from this Form
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Method Summary | |
---|---|
Part |
getPart(java.lang.String name)
This method is used to acquire a Part from the
form using a known name for the part. |
java.util.List<Part> |
getParts()
This method provides all parts for this Form . |
Methods inherited from interface org.simpleframework.http.Query |
---|
getAll, getBoolean, getFloat, getInteger, toString |
Methods inherited from interface java.util.Map |
---|
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
Method Detail |
---|
Part getPart(java.lang.String name)
Part
from the
form using a known name for the part. This is typically used
when there is a file upload with a multipart POST request.
All parts that are not files are added to the query values
as strings so that they can be used in a convenient way.
name
- this is the name of the part to acquire
java.util.List<Part> getParts()
Form
. The
parts for a form can contain text parameters or files. Each file
part can contain headers, which take the form of HTTP headers to
describe the payload. Typically headers describe the content.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |