Class MicrodataClient
- java.lang.Object
-
- org.apache.sling.testing.clients.AbstractSlingClient
-
- org.apache.sling.testing.clients.SlingClient
-
- org.apache.sling.testing.clients.html.MicrodataClient
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,org.apache.http.client.HttpClient,org.apache.sling.hapi.client.HtmlClient
public class MicrodataClient extends SlingClient implements org.apache.sling.hapi.client.HtmlClient
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.sling.testing.clients.SlingClient
SlingClient.Builder, SlingClient.InternalBuilder<T extends SlingClient>
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.LoggerLOG-
Fields inherited from class org.apache.sling.testing.clients.SlingClient
CLIENT_CONNECTION_TIMEOUT_PROP, DEFAULT_NODE_TYPE
-
-
Constructor Summary
Constructors Constructor Description MicrodataClient(java.net.URI url, java.lang.String user, java.lang.String password)MicrodataClient(org.apache.http.impl.client.CloseableHttpClient http, SlingClientConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.sling.hapi.client.impl.microdata.MicrodataDocumentdelete(java.lang.String url)org.apache.sling.hapi.client.impl.microdata.MicrodataDocumententer(java.lang.String url)org.apache.sling.hapi.client.impl.microdata.MicrodataDocumentget(java.lang.String url)org.apache.sling.hapi.client.impl.microdata.MicrodataDocumentnewDocument(java.lang.String html)org.apache.sling.hapi.client.impl.microdata.MicrodataDocumentpost(java.lang.String url, org.apache.http.HttpEntity entity)-
Methods inherited from class org.apache.sling.testing.clients.SlingClient
createFolder, createNode, createNodeRecursive, deletePath, doGetJson, exists, getJsonNode, getJsonNode, getNodeNameFromPath, getParentPath, getUUId, getUUID, importContent, importContent, importJson, move, setPropertiesString, setPropertyString, setPropertyStringArray, upload, waitExists, waitUntilExists
-
Methods inherited from class org.apache.sling.testing.clients.AbstractSlingClient
adaptTo, 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, hasValue
-
-
-
-
Constructor Detail
-
MicrodataClient
public MicrodataClient(org.apache.http.impl.client.CloseableHttpClient http, SlingClientConfig config) throws ClientException- Throws:
ClientException
-
MicrodataClient
public MicrodataClient(java.net.URI url, java.lang.String user, java.lang.String password) throws ClientException- Throws:
ClientException
-
-
Method Detail
-
enter
public org.apache.sling.hapi.client.impl.microdata.MicrodataDocument enter(java.lang.String url) throws org.apache.sling.hapi.client.ClientException- Specified by:
enterin interfaceorg.apache.sling.hapi.client.HtmlClient- Throws:
org.apache.sling.hapi.client.ClientException
-
get
public org.apache.sling.hapi.client.impl.microdata.MicrodataDocument get(java.lang.String url) throws org.apache.sling.hapi.client.ClientException- Specified by:
getin interfaceorg.apache.sling.hapi.client.HtmlClient- Throws:
org.apache.sling.hapi.client.ClientException
-
post
public org.apache.sling.hapi.client.impl.microdata.MicrodataDocument post(java.lang.String url, org.apache.http.HttpEntity entity) throws org.apache.sling.hapi.client.ClientException- Specified by:
postin interfaceorg.apache.sling.hapi.client.HtmlClient- Throws:
org.apache.sling.hapi.client.ClientException
-
delete
public org.apache.sling.hapi.client.impl.microdata.MicrodataDocument delete(java.lang.String url) throws org.apache.sling.hapi.client.ClientException- Specified by:
deletein interfaceorg.apache.sling.hapi.client.HtmlClient- Throws:
org.apache.sling.hapi.client.ClientException
-
newDocument
public org.apache.sling.hapi.client.impl.microdata.MicrodataDocument newDocument(java.lang.String html)
- Specified by:
newDocumentin interfaceorg.apache.sling.hapi.client.HtmlClient
-
-