Package com.storedobject.mail
Class GMailRegistrationService
java.lang.Object
com.storedobject.mail.GMailRegistrationService
- All Implemented Interfaces:
ParameterService
-
Field Summary
Fields inherited from interface com.storedobject.core.ParameterService
OK, UNAUTHORIZED
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the mandatory set of parameters to be present when calling this service.getName()
Name of the service.boolean
requiresPOST
(ApplicationServer applicationServer) This checks whether this service requires POST method or not (means no GET method is allowed).Implement the service here.void
Set the "Transaction Manager".Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.storedobject.core.ParameterService
getContentType, serve, writeResponse, writeResponse
-
Constructor Details
-
GMailRegistrationService
public GMailRegistrationService()
-
-
Method Details
-
getName
Description copied from interface:ParameterService
Name of the service.- Specified by:
getName
in interfaceParameterService
- Returns:
- Name.
-
setTransactionManager
Description copied from interface:ParameterService
Set the "Transaction Manager". This method will be invoked by the platform with the currently active Transaction Manager.- Specified by:
setTransactionManager
in interfaceParameterService
- Parameters:
tm
- Transaction Manager.
-
getMandatoryParameters
Description copied from interface:ParameterService
Gets the mandatory set of parameters to be present when calling this service. If any one of these parameters is not present, this service will not be invoked.- Specified by:
getMandatoryParameters
in interfaceParameterService
- Returns:
- List of mandatory parameters.
-
requiresPOST
Description copied from interface:ParameterService
This checks whether this service requires POST method or not (means no GET method is allowed). Default is "true" if the current Application Server is not in "developer" mode.- Specified by:
requiresPOST
in interfaceParameterService
- Parameters:
applicationServer
- Current application server.- Returns:
- True if the service requires POST method.
-
serve
Description copied from interface:ParameterService
Implement the service here. If the service requires JSON body received for processing, implement the other "serve" method that passes JSON as an additional parameter. (The default implementation does nothing).- Specified by:
serve
in interfaceParameterService
- Parameters:
parameters
- Map of the parameters received.- Returns:
- Status of the service such as "Ok", "Created" etc. This will be sent as JSON response. Example: { "Status": "Ok" }. If plain text needs to be sent as response, the status should be prefixed with "Plain:". Example: "Plain:Error while creating login".
- Throws:
Exception
- Any
-