public class SendEmailAction extends Object implements FormAction
Modifier and Type | Field and Description |
---|---|
static String |
FROM |
static String |
MESSAGE |
static String |
SUBJECT |
static String |
TO |
Constructor and Description |
---|
SendEmailAction() |
Modifier and Type | Method and Description |
---|---|
FormActionResult |
handleForm(org.apache.sling.api.resource.Resource actionResource,
FormRequest request)
Handle a form submission.
|
boolean |
handles(org.apache.sling.api.resource.Resource actionResource)
Checks if the the Form Action should handle the specified request and action
|
public static final String FROM
public static final String MESSAGE
public static final String SUBJECT
public static final String TO
public FormActionResult handleForm(org.apache.sling.api.resource.Resource actionResource, FormRequest request) throws FormException
FormAction
handleForm
in interface FormAction
actionResource
- the configuration to use to configure the form actionrequest
- the form request to handleFormException
- an exception occurs handling the formpublic boolean handles(org.apache.sling.api.resource.Resource actionResource)
FormAction
handles
in interface FormAction
actionResource
- the resource to checkCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.