public class Form extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
FORM_FORBID_DUP_SUBMIT |
static int |
FORM_STATUS_FIRST |
static int |
FORM_STATUS_USED |
static String |
FORM_TOKEN_FIELD_NAME |
static String |
FORM_UNIQ_ID_FIELD_NAME |
static String |
FORM_VALUE_SEPARATOR
多值表单数据合并时使用的分隔符
|
Modifier and Type | Method and Description |
---|---|
Date |
getCreateTime() |
Map<String,String> |
getFields() |
String |
getForbidDupSubmitName() |
static String |
getFormUniqIdFieldName() |
int |
getStatus() |
String |
getToken() |
String |
getTokenFieldName() |
String |
getUrl() |
void |
setCreateTime(Date createTime) |
String |
setField(String name,
String value)
向表单中添加数据
|
String |
setField(String name,
String[] value)
向表单中添加数据,value会被合并成一个字符串,以FORM_VALUE_SEPARATOR分割。
|
void |
setFields(Map<String,String> fields) |
void |
setStatus(int status) |
void |
setToken(String token) |
void |
setUrl(String url) |
String |
toString() |
public static final String FORM_VALUE_SEPARATOR
public static final String FORM_TOKEN_FIELD_NAME
public static final String FORM_UNIQ_ID_FIELD_NAME
public static final String FORM_FORBID_DUP_SUBMIT
public static final int FORM_STATUS_FIRST
public static final int FORM_STATUS_USED
public Form()
public Form(String token)
token
- public static String getFormUniqIdFieldName()
public String setField(String name, String[] value)
setField(String, String)
public String getToken()
public void setToken(String token)
public Date getCreateTime()
public void setCreateTime(Date createTime)
public String getTokenFieldName()
public String getForbidDupSubmitName()
public int getStatus()
public void setStatus(int status)
public String getUrl()
public void setUrl(String url)
Copyright © 2006–2018 TinyGroup. All rights reserved.