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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(Json json) Configure the helper with JsonJson
create()
Create the Json that should be passed in toMailServerExtension.save()
void
setAuthURI
(String uri) Set the "auth_uri" property to a URLvoid
setClientId
(String id) Set the client id, normally of the form "NNNNN.apps.googleusercontent.com"void
setClientSecret
(String secret) Set the client secretvoid
Set the email accountvoid
setRedirectURI
(String uri) Set the "redirect_uri" property to a URLvoid
Set the Scopevoid
setTokenURI
(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
-