com.frevvo.forms.client
Class FormsService

java.lang.Object
  extended by com.google.gdata.client.Service
      extended by com.google.gdata.client.GoogleService
          extended by com.google.gdata.client.media.MediaService
              extended by com.frevvo.forms.client.FormsService
All Implemented Interfaces:
com.google.gdata.client.AuthTokenFactory.TokenListener

public class FormsService
extends com.google.gdata.client.media.MediaService


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gdata.client.GoogleService
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
 
Nested classes/interfaces inherited from class com.google.gdata.client.Service
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
 
Field Summary
static java.lang.String ACCEPT_SELF_SIGNED_CERT_PROPPERTY
          Should self signed certificates be rejected.
static java.lang.String CHARSET
           
static java.lang.String DEFAULT_CONTEXT_PATH
           
static java.lang.String DEFAULT_TENANT
           
static int DEFAULT_TIMEOUT
           
static java.lang.String FREVVO_KIND_SCHEME
           
static java.lang.String FREVVO_SCHEMA
          frevvo data namespace
static java.lang.String FREVVO_SCHEMA_ALIAS
           
static com.google.gdata.util.common.xml.XmlNamespace FREVVO_SCHEMA_NS
           
static java.lang.String FREVVO_SERVICE_VERSION
           
static java.lang.String FREVVO_STATE_SCHEME
           
protected static org.apache.commons.httpclient.MultiThreadedHttpConnectionManager HTTP_CONNECTION_MANAGER
           
static java.lang.String LOGIN_URL
           
static java.lang.String LOGOUT_URL
           
static java.lang.String SCHEMA_STATE_PENDING
           
static java.lang.String SCHEMA_STATE_SUBMITTED
           
static java.lang.String SCHEME_KIND_FLOW
           
static java.lang.String SCHEME_KIND_FORM
           
static java.lang.String SCHEME_STATE_SAVED
           
 
Fields inherited from class com.google.gdata.client.media.MediaService
DEFAULT_CHUNKED_BUFFER_SIZE, NO_CHUNKED_MEDIA_REQUEST
 
Fields inherited from class com.google.gdata.client.Service
connectTimeout, extProfile, metadataRegistry, requestFactory
 
Constructor Summary
FormsService(java.lang.String hostname, int port)
           
FormsService(java.lang.String hostname, int port, java.util.Properties props)
           
FormsService(java.lang.String protocol, java.lang.String hostname, int port, java.util.Properties props)
           
FormsService(java.net.URL baseUrl, java.util.Properties props)
           
 
Method Summary
 void addCookie(com.google.gdata.client.http.GoogleGDataRequest.GoogleCookie c)
           
 AutoLoginUserInfo getAutoLoginUserInfo(java.lang.String tenantId)
           
 java.net.URL getBaseUrl()
           
 java.net.URL getEntryURL(java.lang.Class<? extends com.google.gdata.data.BaseEntry> entryClass, java.lang.String entryId)
          Get the entry URL
 java.net.URL getFeedURL(java.lang.Class<? extends com.google.gdata.data.BaseFeed> feedClass)
          Get the feed URL
 org.apache.commons.httpclient.HttpClient getHttpClient()
           
static java.lang.String getImplementationRevision()
           
static java.lang.String getImplementationTitle()
           
static java.lang.String getImplementationVersion()
           
 com.google.gdata.data.media.MediaSource getMedia(java.lang.String mediaUrl)
          Get the media source for the given url
 java.util.Properties getProperties()
           
 java.lang.String getServiceVersion()
           
 java.lang.String getTenant()
           
 java.lang.String getUsername()
           
 void login(java.lang.String username, java.lang.String password)
           
 AutoLoginUserInfo loginAs(java.lang.String loginAsUsername, java.lang.String adminUsername, java.lang.String adminPassword)
           
 AutoLoginUserInfo loginAs(java.lang.String loginAsUsername, java.lang.String adminUsername, java.lang.String adminPassword, boolean virtual, java.util.List<java.lang.String> roles, java.lang.String firstname, java.lang.String lastname, java.lang.String email, java.util.Map<java.lang.String,java.lang.String> customParams)
           
 void logout()
           
static void main(java.lang.String[] args)
           
 void setConnectTimeout(int timeout)
           
 void setReadTimeout(int timeout)
           
 void setUserName(java.lang.String username)
           
 
Methods inherited from class com.google.gdata.client.media.MediaService
getDefaultAltRegistry, getMedia, getMedia, insert, insert, setChunkedMediaUpload, update, updateMedia, updateMedia
 
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
 

Field Detail

CHARSET

public static final java.lang.String CHARSET
See Also:
Constant Field Values

DEFAULT_TENANT

public static final java.lang.String DEFAULT_TENANT
See Also:
Constant Field Values

FREVVO_SERVICE_VERSION

public static final java.lang.String FREVVO_SERVICE_VERSION

DEFAULT_TIMEOUT

public static final int DEFAULT_TIMEOUT
See Also:
Constant Field Values

DEFAULT_CONTEXT_PATH

public static final java.lang.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 java.lang.String LOGIN_URL
See Also:
Constant Field Values

LOGOUT_URL

public static final java.lang.String LOGOUT_URL
See Also:
Constant Field Values

ACCEPT_SELF_SIGNED_CERT_PROPPERTY

public static final java.lang.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 java.lang.String FREVVO_SCHEMA
frevvo data namespace

See Also:
Constant Field Values

FREVVO_SCHEMA_ALIAS

public static final java.lang.String FREVVO_SCHEMA_ALIAS
See Also:
Constant Field Values

FREVVO_KIND_SCHEME

public static final java.lang.String FREVVO_KIND_SCHEME
See Also:
Constant Field Values

SCHEME_KIND_FORM

public static final java.lang.String SCHEME_KIND_FORM
See Also:
Constant Field Values

SCHEME_KIND_FLOW

public static final java.lang.String SCHEME_KIND_FLOW
See Also:
Constant Field Values

FREVVO_STATE_SCHEME

public static final java.lang.String FREVVO_STATE_SCHEME
See Also:
Constant Field Values

SCHEME_STATE_SAVED

public static final java.lang.String SCHEME_STATE_SAVED
See Also:
Constant Field Values

SCHEMA_STATE_PENDING

public static final java.lang.String SCHEMA_STATE_PENDING
See Also:
Constant Field Values

SCHEMA_STATE_SUBMITTED

public static final java.lang.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
Constructor Detail

FormsService

public FormsService(java.lang.String hostname,
                    int port)
             throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

FormsService

public FormsService(java.lang.String hostname,
                    int port,
                    java.util.Properties props)
             throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

FormsService

public FormsService(java.lang.String protocol,
                    java.lang.String hostname,
                    int port,
                    java.util.Properties props)
             throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

FormsService

public FormsService(java.net.URL baseUrl,
                    java.util.Properties props)
             throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException
Method Detail

main

public static void main(java.lang.String[] args)

getImplementationTitle

public static java.lang.String getImplementationTitle()

getImplementationVersion

public static java.lang.String getImplementationVersion()

getImplementationRevision

public static java.lang.String getImplementationRevision()

setConnectTimeout

public void setConnectTimeout(int timeout)
Overrides:
setConnectTimeout in class com.google.gdata.client.Service

setReadTimeout

public void setReadTimeout(int timeout)
Overrides:
setReadTimeout in class com.google.gdata.client.Service

getBaseUrl

public java.net.URL getBaseUrl()

getServiceVersion

public java.lang.String getServiceVersion()
Overrides:
getServiceVersion in class com.google.gdata.client.Service

getUsername

public java.lang.String getUsername()

setUserName

public void setUserName(java.lang.String username)

getTenant

public java.lang.String getTenant()

getProperties

public java.util.Properties getProperties()

getHttpClient

public org.apache.commons.httpclient.HttpClient getHttpClient()

getMedia

public com.google.gdata.data.media.MediaSource getMedia(java.lang.String mediaUrl)
                                                 throws java.io.IOException,
                                                        com.google.gdata.util.ServiceException
Get the media source for the given url

Throws:
java.io.IOException
com.google.gdata.util.ServiceException

login

public void login(java.lang.String username,
                  java.lang.String password)
           throws com.google.gdata.util.ServiceException
Parameters:
username -
password -
Throws:
com.google.gdata.util.ServiceException

loginAs

public AutoLoginUserInfo loginAs(java.lang.String loginAsUsername,
                                 java.lang.String adminUsername,
                                 java.lang.String adminPassword)
                          throws com.google.gdata.util.ServiceException,
                                 java.io.IOException
Throws:
com.google.gdata.util.ServiceException
java.io.IOException

loginAs

public AutoLoginUserInfo loginAs(java.lang.String loginAsUsername,
                                 java.lang.String adminUsername,
                                 java.lang.String adminPassword,
                                 boolean virtual,
                                 java.util.List<java.lang.String> roles,
                                 java.lang.String firstname,
                                 java.lang.String lastname,
                                 java.lang.String email,
                                 java.util.Map<java.lang.String,java.lang.String> customParams)
                          throws com.google.gdata.util.ServiceException,
                                 java.io.IOException
Throws:
com.google.gdata.util.ServiceException
java.io.IOException

getAutoLoginUserInfo

public AutoLoginUserInfo getAutoLoginUserInfo(java.lang.String tenantId)
                                       throws com.google.gdata.util.ServiceException,
                                              java.io.IOException
Throws:
com.google.gdata.util.ServiceException
java.io.IOException

logout

public void logout()
            throws com.google.gdata.util.ServiceException
Throws:
com.google.gdata.util.ServiceException

addCookie

public void addCookie(com.google.gdata.client.http.GoogleGDataRequest.GoogleCookie c)
Overrides:
addCookie in class com.google.gdata.client.GoogleService

getFeedURL

public java.net.URL getFeedURL(java.lang.Class<? extends com.google.gdata.data.BaseFeed> feedClass)
Get the feed URL

Parameters:
feedClass - The feed class
Returns:
The feed URL

getEntryURL

public java.net.URL getEntryURL(java.lang.Class<? extends com.google.gdata.data.BaseEntry> entryClass,
                                java.lang.String entryId)
Get the entry URL

Parameters:
entryClass - The entry class
entryId - The entry id
Returns:
The entry URL


Copyright © 2006-2011 frevvo Inc. All Rights Reserved.