public final class SlingEmailClient extends SlingClient
Requires that the org.apache.sling.testing.email bundle is deployed.
SlingClient.Builder, SlingClient.InternalBuilder<T extends SlingClient>CLIENT_CONNECTION_TIMEOUT_PROP, DEFAULT_NODE_TYPE| Constructor and Description |
|---|
SlingEmailClient(org.apache.http.impl.client.CloseableHttpClient http,
SlingClientConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteMessages()
Deletes all mail messages currently stored
|
int |
getBindPort()
Retrieves the actual bind port of the SMTP server
|
List<EmailMessage> |
getMessages()
Retrieves the list of mail messages currently stored
|
createFolder, createNode, createNodeRecursive, deletePath, doGetJson, exists, getJsonNode, getJsonNode, getNodeNameFromPath, getParentPath, getUUId, getUUID, importContent, importContent, importJson, move, setPropertiesString, setPropertyString, setPropertyStringArray, upload, waitExists, waitUntilExistsadaptTo, addValue, close, doDelete, doGet, doGet, doGet, doHead, doPatch, doPost, doPost, doPut, doRawRequest, doRequest, doStreamGet, doStreamPost, doStreamRequest, execute, execute, execute, execute, execute, execute, execute, execute, getClientId, getConnectionManager, getCookieStore, getCredentialsProvider, getParams, getPassword, getPath, getPath, getUrl, getUrl, getUrl, getUser, getValue, getValues, hasValuepublic SlingEmailClient(org.apache.http.impl.client.CloseableHttpClient http,
SlingClientConfig config)
throws ClientException
ClientExceptionpublic int getBindPort()
throws ClientException
ClientException - in case of any errorspublic List<EmailMessage> getMessages() throws ClientException
ClientException - in case of any errorspublic void deleteMessages()
throws ClientException
ClientException - in case of any errorsCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.