com.frevvo.forms.client
Class FormsService
java.lang.Object
com.google.gdata.client.Service
com.google.gdata.client.GoogleService
com.google.gdata.client.media.MediaService
com.frevvo.forms.client.FormsService
- All Implemented Interfaces:
- AuthTokenFactory.TokenListener
public class FormsService
- extends MediaService
|
Method Summary |
void |
addCookie(GoogleGDataRequest.GoogleCookie c)
|
AutoLoginUserInfo |
getAutoLoginUserInfo(String tenantId)
|
URL |
getBaseUrl()
|
URL |
getEntryURL(Class<? extends BaseEntry> entryClass,
String entryId)
Get the entry URL |
URL |
getFeedURL(Class<? extends BaseFeed> feedClass)
Get the feed URL |
org.apache.commons.httpclient.HttpClient |
getHttpClient()
|
static String |
getImplementationRevision()
|
static String |
getImplementationTitle()
|
static String |
getImplementationVersion()
|
MediaSource |
getMedia(String mediaUrl)
Get the media source for the given url |
Properties |
getProperties()
|
String |
getServiceVersion()
|
String |
getTenant()
|
String |
getUsername()
|
void |
login(String username,
String password)
|
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 |
setConnectTimeout(int timeout)
|
void |
setReadTimeout(int timeout)
|
void |
setUserName(String username)
|
| Methods inherited from class com.google.gdata.client.GoogleService |
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 |
| Methods inherited from class com.google.gdata.client.Service |
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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CHARSET
public static final String CHARSET
- See Also:
- Constant Field Values
DEFAULT_TENANT
public static final String DEFAULT_TENANT
- See Also:
- Constant Field Values
FREVVO_SERVICE_VERSION
public static final String FREVVO_SERVICE_VERSION
DEFAULT_TIMEOUT
public static final int DEFAULT_TIMEOUT
- See Also:
- Constant Field Values
DEFAULT_CONTEXT_PATH
public static final String DEFAULT_CONTEXT_PATH
- See Also:
- Constant Field Values
HTTP_CONNECTION_MANAGER
protected static org.apache.commons.httpclient.MultiThreadedHttpConnectionManager HTTP_CONNECTION_MANAGER
LOGIN_URL
public static final String LOGIN_URL
- See Also:
- Constant Field Values
LOGOUT_URL
public static final String LOGOUT_URL
- See Also:
- Constant Field Values
ACCEPT_SELF_SIGNED_CERT_PROPPERTY
public static final String ACCEPT_SELF_SIGNED_CERT_PROPPERTY
- Should self signed certificates be rejected. Default is false
- See Also:
- Constant Field Values
FREVVO_SCHEMA
public static final String FREVVO_SCHEMA
- frevvo data namespace
- See Also:
- Constant Field Values
FREVVO_SCHEMA_ALIAS
public static final String FREVVO_SCHEMA_ALIAS
- See Also:
- Constant Field Values
FREVVO_KIND_SCHEME
public static final String FREVVO_KIND_SCHEME
- See Also:
- Constant Field Values
SCHEME_KIND_FORM
public static final String SCHEME_KIND_FORM
- See Also:
- Constant Field Values
SCHEME_KIND_FLOW
public static final String SCHEME_KIND_FLOW
- See Also:
- Constant Field Values
FREVVO_STATE_SCHEME
public static final String FREVVO_STATE_SCHEME
- See Also:
- Constant Field Values
SCHEME_STATE_SAVED
public static final String SCHEME_STATE_SAVED
- See Also:
- Constant Field Values
SCHEMA_STATE_PENDING
public static final String SCHEMA_STATE_PENDING
- See Also:
- Constant Field Values
SCHEMA_STATE_SUBMITTED
public static final String SCHEMA_STATE_SUBMITTED
- See Also:
- Constant Field Values
FREVVO_SCHEMA_NS
public static final com.google.gdata.util.common.xml.XmlNamespace FREVVO_SCHEMA_NS
FormsService
public FormsService(String hostname,
int port)
throws MalformedURLException
- Throws:
MalformedURLException
FormsService
public FormsService(String hostname,
int port,
Properties props)
throws MalformedURLException
- Throws:
MalformedURLException
FormsService
public FormsService(String protocol,
String hostname,
int port,
Properties props)
throws MalformedURLException
- Throws:
MalformedURLException
FormsService
public FormsService(URL baseUrl,
Properties props)
throws MalformedURLException
- Throws:
MalformedURLException
main
public static void main(String[] args)
getImplementationTitle
public static String getImplementationTitle()
getImplementationVersion
public static String getImplementationVersion()
getImplementationRevision
public static String getImplementationRevision()
setConnectTimeout
public void setConnectTimeout(int timeout)
- Overrides:
setConnectTimeout in class Service
setReadTimeout
public void setReadTimeout(int timeout)
- Overrides:
setReadTimeout in class Service
getBaseUrl
public URL getBaseUrl()
getServiceVersion
public String getServiceVersion()
- Overrides:
getServiceVersion in class Service
getUsername
public String getUsername()
setUserName
public void setUserName(String username)
getTenant
public String getTenant()
getProperties
public Properties getProperties()
getHttpClient
public org.apache.commons.httpclient.HttpClient getHttpClient()
getMedia
public MediaSource getMedia(String mediaUrl)
throws IOException,
ServiceException
- Get the media source for the given url
- Throws:
IOException
ServiceException
login
public void login(String username,
String password)
throws ServiceException
- Parameters:
username - password -
- Throws:
ServiceException
loginAs
public AutoLoginUserInfo loginAs(String loginAsUsername,
String adminUsername,
String adminPassword)
throws ServiceException,
IOException
- Throws:
ServiceException
IOException
loginAs
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 ServiceException,
IOException
- Throws:
ServiceException
IOException
getAutoLoginUserInfo
public AutoLoginUserInfo getAutoLoginUserInfo(String tenantId)
throws ServiceException,
IOException
- Throws:
ServiceException
IOException
logout
public void logout()
throws ServiceException
- Throws:
ServiceException
addCookie
public void addCookie(GoogleGDataRequest.GoogleCookie c)
- Overrides:
addCookie in class GoogleService
getFeedURL
public URL getFeedURL(Class<? extends BaseFeed> feedClass)
- Get the feed URL
- Parameters:
feedClass - The feed class
- Returns:
- The feed URL
getEntryURL
public URL getEntryURL(Class<? extends BaseEntry> entryClass,
String entryId)
- Get the entry URL
- Parameters:
entryClass - The entry classentryId - The entry id
- Returns:
- The entry URL
Copyright © 2006-2011 frevvo Inc. All Rights Reserved.