Package org.faceless.publisher.ext
Class MailServerExtension.GMailHelper
java.lang.Object
org.faceless.publisher.ext.MailServerExtension.GMailHelper
- Enclosing class:
- MailServerExtension
A static helper class that allows easy creation of configuration for loading messages from Google Mail
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(Json json) Configure the helper with JsonJsoncreate()Create the Json that should be passed in toMailServerExtension.save()voidsetAuthURI(String uri) Set the "auth_uri" property to a URLvoidsetClientId(String id) Set the client id, normally of the form "NNNNN.apps.googleusercontent.com"voidsetClientSecret(String secret) Set the client secretvoidSet the email accountvoidsetRedirectURI(String uri) Set the "redirect_uri" property to a URLvoidSet the ScopevoidsetTokenURI(String uri) Set the "token_uri" property to a URL
-
Constructor Details
-
GMailHelper
public GMailHelper()
-
-
Method Details
-
create
public Json create()Create the Json that should be passed in toMailServerExtension.save() -
configure
public void configure(Json json) Configure the helper with Json -
setEmail
Set the email account -
setClientId
Set the client id, normally of the form "NNNNN.apps.googleusercontent.com" -
setClientSecret
Set the client secret -
setRedirectURI
Set the "redirect_uri" property to a URL -
setAuthURI
Set the "auth_uri" property to a URL -
setTokenURI
Set the "token_uri" property to a URL -
setScope
Set the Scope
-