com.frevvo.forms.client
public class FormEntryBuilder extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SOURCE_ATTACHMENT |
static String |
SOURCE_SIGNATURE |
static String |
SOURCE_WETSIGNATURE |
Constructor and Description |
---|
FormEntryBuilder(FormTypeEntry ftEntry)
Constructor
|
Modifier and Type | Method and Description |
---|---|
FormEntryBuilder |
attachment(String id,
String contentType,
String filename,
InputStream is)
Add an xml document to this builder
|
FormEntryBuilder |
attachment(String id,
String contentType,
URL url) |
FormEntry |
createInstance()
Creata a new form instance and returns the corresponding FormEntry
|
FormEntryBuilder |
data(String name,
String value)
Add a _data parameter to this builder
|
FormEntryBuilder |
document(String name,
InputStream is)
Add an xml document to this builder
|
FormEntryBuilder |
document(String name,
URL documentUrl)
Add an xml document to this builder from a given URL
|
FormEntryBuilder |
formActionDocs(boolean value)
See
FormTypeEntry .FORMTYPE_FORMACTIONDOCS_PARAMETER |
FormEntryBuilder |
parameter(String name,
String value)
Add a link parameter to this builder
See
FormTypeEntry constants for known parameters |
FormEntryBuilder |
signature(String filename,
InputStream is)
Add an xml signature to this builder
|
FormEntryBuilder |
signature(URL signatureUrl)
Add an xml signature to this builder from a given URL
|
FormEntryBuilder |
wetSignature(String id,
String filename,
InputStream is)
Add an wet signature to this builder
|
FormEntryBuilder |
wetSignature(String id,
URL wetSignatureUrl)
Add an wet signature to this builder from a given URL
|
public static final String SOURCE_SIGNATURE
public static final String SOURCE_WETSIGNATURE
public static final String SOURCE_ATTACHMENT
public FormEntryBuilder(FormTypeEntry ftEntry)
public FormEntryBuilder signature(String filename, InputStream is)
filename
- is
- public FormEntryBuilder signature(URL signatureUrl) throws IOException
signatureUrl
- IOException
public FormEntryBuilder wetSignature(String id, String filename, InputStream is)
filename
- is
- public FormEntryBuilder wetSignature(String id, URL wetSignatureUrl) throws IOException
signatureId
- This is the part name sent in the post and it corresponds to the
signature control value contained in the XML.signatureUrl
- The url to the signature image you want to uploadIOException
public FormEntryBuilder document(String name, InputStream is)
name
- is
- public FormEntryBuilder document(String name, URL documentUrl) throws IOException
documentUrl
- IOException
public FormEntryBuilder attachment(String id, String contentType, String filename, InputStream is)
name
- is
- public FormEntryBuilder attachment(String id, String contentType, URL url) throws IOException
id
- contentType
- url
- IOException
public FormEntryBuilder data(String name, String value)
name
- value
- IOException
public FormEntryBuilder parameter(String name, String value)
FormTypeEntry
constants for known parametersname
- value
- public FormEntryBuilder formActionDocs(boolean value)
FormTypeEntry
.FORMTYPE_FORMACTIONDOCS_PARAMETERvalue
- public FormEntry createInstance() throws com.google.gdata.util.ServiceException
com.google.gdata.util.ServiceException
Copyright © 2006–2015 frevvo Inc. All rights reserved.