SlingHttpResponse |
SlingClient.createFolder(java.lang.String folderName,
java.lang.String folderTitle,
java.lang.String parentPath,
int... expectedStatus) |
Creates a new Folder of type sling:OrderedFolder.
|
SlingHttpResponse |
SlingClient.createNode(java.lang.String path,
java.lang.String nodeType) |
Creates the node specified by a given path with the given node type.
If the given node type is null, the node will be created with the default type: "sling:OrderedFolder".
If the node already exists, the method will return null, with no errors.
The method ignores trailing slashes so a path like this /a/b/c/// is accepted and will create the c node if the rest of
the path exists.
|
SlingHttpResponse |
SlingClient.createNodeRecursive(java.lang.String path,
java.lang.String nodeType) |
|
SlingHttpResponse |
SlingClient.deletePath(java.lang.String path,
int... expectedStatus) |
Deletes a sling path (:operation delete)
|
SlingHttpResponse |
AbstractSlingClient.doDelete(java.lang.String requestPath,
java.util.List<org.apache.http.NameValuePair> parameters,
java.util.List<org.apache.http.Header> headers,
int... expectedStatus) |
Executes a DELETE request and consumes the entity in the response.
|
SlingHttpResponse |
AbstractSlingClient.doGet(java.lang.String requestPath,
int... expectedStatus) |
Executes a GET request and consumes the entity in the response (so the connection is closed immediately)
The content is cached and can be retrieved using response.getContent().
|
SlingHttpResponse |
AbstractSlingClient.doGet(java.lang.String requestPath,
java.util.List<org.apache.http.NameValuePair> parameters,
int... expectedStatus) |
Executes a GET request and consumes the entity in the response (so the connection is closed immediately)
The content is cached and can be retrieved using response.getContent().
|
SlingHttpResponse |
AbstractSlingClient.doGet(java.lang.String requestPath,
java.util.List<org.apache.http.NameValuePair> parameters,
java.util.List<org.apache.http.Header> headers,
int... expectedStatus) |
Executes a GET request and consumes the entity in the response (so the connection is closed immediately)
The content is cached and can be retrieved using response.getContent().
|
SlingHttpResponse |
AbstractSlingClient.doHead(java.lang.String requestPath,
java.util.List<org.apache.http.NameValuePair> parameters,
java.util.List<org.apache.http.Header> headers,
int... expectedStatus) |
Executes a HEAD request
|
SlingHttpResponse |
AbstractSlingClient.doPatch(java.lang.String requestPath,
org.apache.http.HttpEntity entity,
java.util.List<org.apache.http.Header> headers,
int... expectedStatus) |
Executes a PATCH request and consumes the entity in the response.
|
SlingHttpResponse |
AbstractSlingClient.doPost(java.lang.String requestPath,
org.apache.http.HttpEntity entity,
int... expectedStatus) |
Executes a POST request and consumes the entity in the response.
|
SlingHttpResponse |
AbstractSlingClient.doPost(java.lang.String requestPath,
org.apache.http.HttpEntity entity,
java.util.List<org.apache.http.Header> headers,
int... expectedStatus) |
Executes a POST request and consumes the entity in the response.
|
SlingHttpResponse |
AbstractSlingClient.doPut(java.lang.String requestPath,
org.apache.http.HttpEntity entity,
java.util.List<org.apache.http.Header> headers,
int... expectedStatus) |
Executes a PUT request and consumes the entity in the response.
|
SlingHttpResponse |
AbstractSlingClient.doRawRequest(java.lang.String method,
java.lang.String uri,
java.util.List<org.apache.http.Header> headers,
int... expectedStatus) |
Executes a raw HTTP request, WITHOUT consuming the entity in the response.
|
SlingHttpResponse |
AbstractSlingClient.doRequest(org.apache.http.client.methods.HttpUriRequest request,
java.util.List<org.apache.http.Header> headers,
int... expectedStatus) |
Execute an HTTP request and consumes the entity in the response.
|
SlingHttpResponse |
AbstractSlingClient.doStreamGet(java.lang.String requestPath,
java.util.List<org.apache.http.NameValuePair> parameters,
java.util.List<org.apache.http.Header> headers,
int... expectedStatus) |
Executes a GET request WITHOUT consuming the entity in the response.
|
SlingHttpResponse |
AbstractSlingClient.doStreamPost(java.lang.String requestPath,
org.apache.http.HttpEntity entity,
java.util.List<org.apache.http.Header> headers,
int... expectedStatus) |
Executes a POST request WITHOUT consuming the entity in the response.
|
SlingHttpResponse |
AbstractSlingClient.doStreamRequest(org.apache.http.client.methods.HttpUriRequest request,
java.util.List<org.apache.http.Header> headers,
int... expectedStatus) |
Executes an HTTP request, WITHOUT consuming the entity in the response.
|
SlingHttpResponse |
ClientException.getResponse() |
|
SlingHttpResponse |
SlingClient.importContent(java.lang.String parentPath,
java.lang.String contentType,
java.io.File contentFile,
int... expectedStatus) |
Create a tree structure under parentPath by providing a contentFile in one
of the supported formats: xml, jcr.xml, json, jar, zip.
|
SlingHttpResponse |
SlingClient.importContent(java.lang.String parentPath,
java.lang.String contentType,
java.lang.String content,
int... expectedStatus) |
Create a tree structure under parentPath by providing a content in one
of the supported formats: xml, jcr.xml, json, jar, zip.
|
SlingHttpResponse |
SlingClient.importJson(java.lang.String parentPath,
org.codehaus.jackson.JsonNode json,
int... expectedStatus) |
|
SlingHttpResponse |
SlingClient.move(java.lang.String srcPath,
java.lang.String destPath,
int... expectedStatus) |
Moves a sling path to a new location (:operation move)
|
SlingHttpResponse |
SlingClient.setPropertiesString(java.lang.String nodePath,
java.util.List<org.apache.http.NameValuePair> properties,
int... expectedStatus) |
Sets multiple String properties on a node in a single request
|
SlingHttpResponse |
SlingClient.setPropertyString(java.lang.String nodePath,
java.lang.String propName,
java.lang.String propValue,
int... expectedStatus) |
Sets String component property on a node.
|
SlingHttpResponse |
SlingClient.setPropertyStringArray(java.lang.String nodePath,
java.lang.String propName,
java.util.List<java.lang.String> propValueList,
int... expectedStatus) |
Sets a String[] component property on a node.
|
SlingHttpResponse |
SlingClient.upload(java.io.File file,
java.lang.String mimeType,
java.lang.String toPath,
boolean createFolders,
int... expectedStatus) |
Uploads a file to the repository.
|