public abstract class AbstractRequest extends AbstractResource
Modifier and Type | Field and Description |
---|---|
static String |
REQUEST_HIDE_TEXT_TAGS |
static String |
REQUEST_MESSAGE |
static String |
REQUEST_METADATA |
static String |
REQUEST_REDIRECT_URL |
static String |
REQUEST_SUBJECT |
static String |
REQUEST_TEST_MODE |
static String |
REQUEST_TITLE |
static String |
REQUEST_USE_TEXT_TAGS |
dataObj, warnings
Constructor and Description |
---|
AbstractRequest() |
AbstractRequest(org.json.JSONObject json,
String optionalKey) |
Modifier and Type | Method and Description |
---|---|
void |
addDocument(Document doc)
Adds a Document to the signature request.
|
void |
addDocument(Document doc,
int order)
Adds a Document to the signature request at the specific order.
|
void |
addFile(File file)
Adds the file to the request.
|
void |
addFile(File file,
Integer order)
Adds the file to the request in the given order.
|
void |
addFileUrl(String url)
Add a file_url to this request.
|
void |
addMetadata(String key,
String value) |
void |
clearDocuments()
Remove all documents from this request.
|
List<Document> |
getDocuments()
Returns a reference to the list of documents for this request.
|
List<String> |
getFileUrls()
Return the current file_url list.
|
abstract String |
getId() |
String |
getMessage() |
Metadata |
getMetadata() |
String |
getMetadata(String key) |
boolean |
getOrderMatters()
A flag that determines whether order of the signers list is enforced.
|
protected Map<String,Serializable> |
getPostFields() |
String |
getRedirectUrl() |
String |
getSubject() |
String |
getTitle() |
boolean |
hasHideTextTags() |
boolean |
hasMessage() |
boolean |
hasRedirectUrl() |
boolean |
hasSubject() |
boolean |
hasTitle() |
boolean |
hasUseTextTags() |
Boolean |
isHidingTextTags() |
boolean |
isTestMode() |
Boolean |
isUsingTextTags() |
void |
setDocuments(List<Document> docs)
Overwrites this requests document list with the provided document list.
|
void |
setFileUrls(List<String> fileUrls)
Overwrite the current file_url list.
|
void |
setHideTextTags(boolean hideTextTags) |
void |
setMessage(String message) |
void |
setOrderMatters(boolean b)
Determines whether the order of the signers list is to be enforced.
|
void |
setRedirectUrl(String url) |
void |
setSubject(String subject) |
void |
setTestMode(boolean testMode) |
void |
setTitle(String title) |
void |
setUseTextTags(boolean useTextTags) |
add, addToList, clearList, get, getBoolean, getConstructor, getDate, getInteger, getJSONObject, getList, getList, getLong, getString, getWarnings, has, hasString, set, toString
public static final String REQUEST_TITLE
public static final String REQUEST_SUBJECT
public static final String REQUEST_MESSAGE
public static final String REQUEST_REDIRECT_URL
public static final String REQUEST_TEST_MODE
public static final String REQUEST_USE_TEXT_TAGS
public static final String REQUEST_HIDE_TEXT_TAGS
public static final String REQUEST_METADATA
public AbstractRequest()
public AbstractRequest(org.json.JSONObject json, String optionalKey) throws HelloSignException
HelloSignException
protected Map<String,Serializable> getPostFields() throws HelloSignException
HelloSignException
public abstract String getId()
public String getTitle()
public void setTitle(String title)
public boolean hasTitle()
public String getSubject()
public void setSubject(String subject)
public boolean hasSubject()
public String getMessage()
public void setMessage(String message)
public boolean hasMessage()
public void setTestMode(boolean testMode)
public boolean isTestMode()
public String getRedirectUrl()
public void setRedirectUrl(String url)
public boolean hasRedirectUrl()
public boolean hasUseTextTags()
public Boolean isUsingTextTags()
public void setUseTextTags(boolean useTextTags)
public boolean hasHideTextTags()
public Boolean isHidingTextTags()
public void setHideTextTags(boolean hideTextTags)
public Metadata getMetadata()
public void addFile(File file) throws HelloSignException
file
- FileHelloSignException
public void addFile(File file, Integer order) throws HelloSignException
file
- Fileorder
- Integer or nullHelloSignException
public void addDocument(Document doc) throws HelloSignException
doc
- HelloSignException
public void addDocument(Document doc, int order) throws HelloSignException
doc
- order
- HelloSignException
public List<Document> getDocuments()
public void setDocuments(List<Document> docs)
docs
- Listpublic void clearDocuments()
public void setOrderMatters(boolean b)
b
- true if the order matters, false otherwisepublic boolean getOrderMatters()
public void addFileUrl(String url)
url
- StringCopyright © 2015 HelloSign. All rights reserved.