com.frevvo.forms.client
public class FormsService extends com.google.gdata.client.media.MediaService implements Externalizable
com.google.gdata.client.GoogleService.AccountDeletedException, com.google.gdata.client.GoogleService.AccountDisabledException, com.google.gdata.client.GoogleService.CaptchaRequiredException, com.google.gdata.client.GoogleService.InvalidCredentialsException, com.google.gdata.client.GoogleService.NotVerifiedException, com.google.gdata.client.GoogleService.ServiceUnavailableException, com.google.gdata.client.GoogleService.SessionExpiredException, com.google.gdata.client.GoogleService.TermsNotAgreedException
com.google.gdata.client.Service.ClientInputProperties, com.google.gdata.client.Service.ClientOutputProperties, com.google.gdata.client.Service.ClientStreamProperties, com.google.gdata.client.Service.GDataRequest, com.google.gdata.client.Service.GDataRequestFactory, com.google.gdata.client.Service.Versions
Modifier and Type | Field and Description |
---|---|
static String |
ACCEPT_SELF_SIGNED_CERT_PROPPERTY
Should self signed certificates be rejected.
|
static String |
AUTH_TOKEN_HEADER |
static String |
CHARSET |
static String |
CONTAINER_AUTH_TOKEN_FACTORY |
static String |
DEFAULT_CONTEXT_PATH |
static String |
DEFAULT_TENANT |
static int |
DEFAULT_TIMEOUT |
static String |
FREVVO_KIND_SCHEME |
static String |
FREVVO_SCHEMA
frevvo data namespace
|
static String |
FREVVO_SCHEMA_ALIAS |
static com.google.gdata.util.common.xml.XmlNamespace |
FREVVO_SCHEMA_NS |
static String |
FREVVO_SERVICE_VERSION |
static String |
FREVVO_STATE_SCHEME |
protected static org.apache.commons.httpclient.MultiThreadedHttpConnectionManager |
HTTP_CONNECTION_MANAGER |
static String |
LOGIN_URL |
static String |
LOGOUT_URL |
static String |
SCHEMA_STATE_PENDING |
static String |
SCHEMA_STATE_SUBMITTED |
static String |
SCHEME_KIND_FLOW |
static String |
SCHEME_KIND_FORM |
static String |
SCHEME_STATE_SAVED |
Constructor and Description |
---|
FormsService()
Required for Serialization
|
FormsService(String hostname,
int port) |
FormsService(String hostname,
int port,
Properties props) |
FormsService(String protocol,
String hostname,
int port,
Properties props) |
FormsService(URL baseUrl,
Properties props) |
FormsService(URL baseUrl,
Properties props,
String authTokenFactoryStr) |
Modifier and Type | Method and Description |
---|---|
void |
addCookie(com.google.gdata.client.http.GoogleGDataRequest.GoogleCookie c) |
boolean |
equals(Object other) |
AutoLoginUserInfo |
getAutoLoginUserInfo(String tenantId) |
AutoLoginUserInfo |
getAutoLoginUserInfo(String tenantId,
String frevvoToken) |
URL |
getBaseUrl() |
URL |
getEntryURL(Class<? extends com.google.gdata.data.BaseEntry> entryClass,
String entryId)
Get the entry URL
|
URL |
getFeedURL(Class<? extends com.google.gdata.data.BaseFeed> feedClass)
Get the feed URL
|
org.apache.commons.httpclient.HttpClient |
getHttpClient() |
static String |
getImplementationRevision() |
static String |
getImplementationTitle() |
static String |
getImplementationVersion() |
com.google.gdata.data.media.MediaSource |
getMedia(String mediaUrl)
Get the media source for the given url
|
Properties |
getProperties() |
String |
getServiceVersion() |
String |
getTenant() |
String |
getUsername() |
protected void |
init(URL baseUrl,
Properties props,
String authTokenFactoryStr) |
void |
login(String username,
String password) |
AutoLoginUserInfo |
loginAs(String tenantId,
List<String> roles,
String firstname,
String lastname,
String email,
Map<String,String> customParams) |
AutoLoginUserInfo |
loginAs(String loginAsUsername,
String adminUsername,
String adminPassword) |
AutoLoginUserInfo |
loginAs(String loginAsUsername,
String adminUsername,
String adminPassword,
boolean virtual,
List<String> roles,
String firstname,
String lastname,
String email,
Map<String,String> customParams) |
void |
logout() |
static void |
main(String[] args) |
void |
putRequestCookie(String scheme,
String serverName,
String cookieName,
String cookieValue) |
void |
putRequestHeader(String key,
String value) |
void |
readExternal(ObjectInput in) |
void |
setConnectTimeout(int timeout) |
void |
setReadTimeout(int timeout) |
void |
setTenant(String tenant) |
void |
setUserName(String username) |
void |
writeExternal(ObjectOutput out) |
getDefaultAltRegistry, getMedia, getMedia, insert, insert, setChunkedMediaUpload, update, updateMedia, updateMedia
batch, createRequest, createRequest, delete, delete, getAuthToken, getAuthTokenFactory, getCookieManager, getCookies, getEntry, getEntry, getFeed, getFeed, getFeed, getFeed, handleRedirectException, handlesCookies, handleSessionExpiredException, makePostRequest, setAuthSubToken, setAuthSubToken, setAuthTokenFactory, setCookieManager, setHandlesCookies, setOAuthCredentials, setUserCredentials, setUserCredentials, setUserCredentials, setUserCredentials, setUserToken, tokenChanged
classOf, createBatchRequest, createDeleteRequest, createEntryRequest, createFeedRequest, createFeedRequest, createInsertRequest, createLinkQueryRequest, createPatchRequest, createUpdateRequest, delete, delete, endVersionScope, getAltRegistry, getContentType, getEntry, getExtensionProfile, getFeed, getFeed, getMetadataRegistry, getProtocolVersion, getRequestFactory, getSchema, getStreamFromLink, getVersion, initServiceVersion, introspect, parseResponseData, patch, patch, query, query, query, setAcceptLanguage, setAltRegistry, setContentType, setExtensionProfile, setProtocolVersion, setRequestFactory, setTimeouts, startVersionScope, update, useSsl, writeRequestData, writeRequestData
public static final String CHARSET
public static final String DEFAULT_TENANT
public static final String FREVVO_SERVICE_VERSION
public static final int DEFAULT_TIMEOUT
public static final String DEFAULT_CONTEXT_PATH
public static final String CONTAINER_AUTH_TOKEN_FACTORY
protected static org.apache.commons.httpclient.MultiThreadedHttpConnectionManager HTTP_CONNECTION_MANAGER
public static final String LOGIN_URL
public static final String LOGOUT_URL
public static final String ACCEPT_SELF_SIGNED_CERT_PROPPERTY
public static final String FREVVO_SCHEMA
public static final String FREVVO_SCHEMA_ALIAS
public static final String FREVVO_KIND_SCHEME
public static final String SCHEME_KIND_FORM
public static final String SCHEME_KIND_FLOW
public static final String FREVVO_STATE_SCHEME
public static final String SCHEME_STATE_SAVED
public static final String SCHEMA_STATE_PENDING
public static final String SCHEMA_STATE_SUBMITTED
public static final String AUTH_TOKEN_HEADER
public static final com.google.gdata.util.common.xml.XmlNamespace FREVVO_SCHEMA_NS
public FormsService()
public FormsService(String hostname, int port) throws MalformedURLException
MalformedURLException
public FormsService(String hostname, int port, Properties props) throws MalformedURLException
MalformedURLException
public FormsService(String protocol, String hostname, int port, Properties props) throws MalformedURLException
MalformedURLException
public FormsService(URL baseUrl, Properties props) throws MalformedURLException
MalformedURLException
public FormsService(URL baseUrl, Properties props, String authTokenFactoryStr) throws MalformedURLException
MalformedURLException
public static void main(String[] args)
public static String getImplementationTitle()
public static String getImplementationVersion()
public static String getImplementationRevision()
protected void init(URL baseUrl, Properties props, String authTokenFactoryStr)
public void setConnectTimeout(int timeout)
setConnectTimeout
in class com.google.gdata.client.Service
public void setReadTimeout(int timeout)
setReadTimeout
in class com.google.gdata.client.Service
public URL getBaseUrl()
public String getServiceVersion()
getServiceVersion
in class com.google.gdata.client.Service
public String getUsername()
public void setUserName(String username)
public String getTenant()
public void setTenant(String tenant)
public Properties getProperties()
public org.apache.commons.httpclient.HttpClient getHttpClient()
public com.google.gdata.data.media.MediaSource getMedia(String mediaUrl) throws IOException, com.google.gdata.util.ServiceException
IOException
com.google.gdata.util.ServiceException
public void login(String username, String password) throws com.google.gdata.util.ServiceException
username
- password
- com.google.gdata.util.ServiceException
public AutoLoginUserInfo loginAs(String loginAsUsername, String adminUsername, String adminPassword) throws com.google.gdata.util.ServiceException
com.google.gdata.util.ServiceException
public AutoLoginUserInfo loginAs(String loginAsUsername, String adminUsername, String adminPassword, boolean virtual, List<String> roles, String firstname, String lastname, String email, Map<String,String> customParams) throws com.google.gdata.util.ServiceException
com.google.gdata.util.ServiceException
public AutoLoginUserInfo loginAs(String tenantId, List<String> roles, String firstname, String lastname, String email, Map<String,String> customParams) throws com.google.gdata.util.ServiceException, IOException
com.google.gdata.util.ServiceException
IOException
public void putRequestCookie(String scheme, String serverName, String cookieName, String cookieValue) throws URISyntaxException
URISyntaxException
public AutoLoginUserInfo getAutoLoginUserInfo(String tenantId) throws com.google.gdata.util.ServiceException, IOException
com.google.gdata.util.ServiceException
IOException
public AutoLoginUserInfo getAutoLoginUserInfo(String tenantId, String frevvoToken) throws com.google.gdata.util.ServiceException, IOException
com.google.gdata.util.ServiceException
IOException
public void logout() throws com.google.gdata.util.ServiceException
com.google.gdata.util.ServiceException
public void addCookie(com.google.gdata.client.http.GoogleGDataRequest.GoogleCookie c)
addCookie
in class com.google.gdata.client.GoogleService
public URL getFeedURL(Class<? extends com.google.gdata.data.BaseFeed> feedClass)
feedClass
- The feed classpublic URL getEntryURL(Class<? extends com.google.gdata.data.BaseEntry> entryClass, String entryId)
entryClass
- The entry classentryId
- The entry idpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
Copyright © 2006–2015 frevvo Inc. All rights reserved.