T
- the type used to store the Form
information@ProviderType
public interface Form<T>
get(Body)
method
method uses the HTTP request body to extract the form values as detailed in
the Form.Builder
.
You should always use a Form.Builder
to create instances of this class.
Modifier and Type | Interface and Description |
---|---|
static interface |
Form.Builder<T>
Creates and populates a
Form of type T . |
Modifier and Type | Method and Description |
---|---|
T |
get(Body body)
Returns this form's information in a class of type
T , where type
T matches the type parameter of the Form.Builder that created
the form. |
java.lang.String |
getDescription(AcceptLanguage acceptLanguage)
Returns this form's description, which depends on the HTTP request accept
language.
|
java.util.List<FormField> |
getFormFields()
Returns the list of fields from this
Form . |
java.lang.String |
getId()
Deprecated.
As of 1.9.0, with no direct replacement
|
java.util.List<T> |
getList(Body body)
Returns multiple form's information in list of classes of type
T ,
where type T matches the type parameter of the Form.Builder
that created the form. |
java.lang.String |
getTitle(AcceptLanguage acceptLanguage)
Returns the form's title, which depends on the HTTP request accept
language.
|
T get(Body body)
T
, where type
T
matches the type parameter of the Form.Builder
that created
the form.body
- the HTTP request bodyT
java.lang.String getDescription(AcceptLanguage acceptLanguage)
acceptLanguage
- the HTTP request accept language informationjava.util.List<FormField> getFormFields()
Form
.@Deprecated java.lang.String getId()
java.util.List<T> getList(Body body)
T
,
where type T
matches the type parameter of the Form.Builder
that created the form.body
- the HTTP request bodyT
java.lang.String getTitle(AcceptLanguage acceptLanguage)
acceptLanguage
- the HTTP request accept language information