public abstract class AbstractRESTConfluenceService extends Object implements IdHelper
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractRESTConfluenceService.ServiceException |
| Modifier and Type | Field and Description |
|---|---|
protected okhttp3.OkHttpClient.Builder |
client |
| Constructor and Description |
|---|
AbstractRESTConfluenceService() |
| Modifier and Type | Method and Description |
|---|---|
protected CompletableFuture<List<javax.json.JsonObject>> |
addAttachment(String id,
Attachment att,
InputStream data) |
protected CompletableFuture<Void> |
addLabels(String id,
String... labels) |
protected CompletableFuture<List<javax.json.JsonObject>> |
childrenPages(String id) |
CompletableFuture<Optional<javax.json.JsonObject>> |
createPage(javax.json.JsonObject inputData) |
protected void |
debugBody(okhttp3.Response res) |
protected CompletableFuture<Boolean> |
deletePageById(String id) |
protected CompletableFuture<List<javax.json.JsonObject>> |
descendantPages(long id) |
CompletableFuture<Optional<javax.json.JsonObject>> |
findPage(String spaceKey,
String title) |
protected CompletableFuture<Optional<javax.json.JsonObject>> |
findPageById(String id) |
protected CompletableFuture<List<javax.json.JsonObject>> |
findPages(String spaceKey,
String title) |
void |
fromRequest(okhttp3.Request req,
String description,
java.util.function.Consumer<okhttp3.Response> consumer) |
CompletableFuture<okhttp3.Response> |
fromRequestAsync(okhttp3.Request req) |
protected void |
fromUrlDELETE(okhttp3.HttpUrl url,
String description,
java.util.function.Consumer<okhttp3.Response> consumer) |
protected void |
fromUrlGET(okhttp3.HttpUrl url,
String description,
java.util.function.Consumer<okhttp3.Response> consumer) |
protected void |
fromUrlPOST(okhttp3.HttpUrl url,
okhttp3.RequestBody inputBody,
String description,
java.util.function.Consumer<okhttp3.Response> consumer) |
protected void |
fromUrlPUT(okhttp3.HttpUrl url,
okhttp3.RequestBody inputBody,
String description,
java.util.function.Consumer<okhttp3.Response> consumer) |
protected CompletableFuture<List<javax.json.JsonObject>> |
getAttachment(String id,
String fileName) |
protected CompletableFuture<List<javax.json.JsonObject>> |
getAttachments(String id) |
abstract ConfluenceService.Credentials |
getCredentials() |
protected javax.json.JsonObject |
mapToObject(okhttp3.Response res) |
protected java.util.stream.Stream<javax.json.JsonObject> |
mapToStream(okhttp3.Response res) |
protected CompletableFuture<Optional<javax.json.JsonObject>> |
updatePage(String pageId,
javax.json.JsonObject inputData) |
protected abstract okhttp3.HttpUrl.Builder |
urlBuilder() |
public abstract ConfluenceService.Credentials getCredentials()
protected abstract okhttp3.HttpUrl.Builder urlBuilder()
public CompletableFuture<okhttp3.Response> fromRequestAsync(okhttp3.Request req)
req - public void fromRequest(okhttp3.Request req,
String description,
java.util.function.Consumer<okhttp3.Response> consumer)
protected void fromUrlGET(okhttp3.HttpUrl url,
String description,
java.util.function.Consumer<okhttp3.Response> consumer)
protected void fromUrlDELETE(okhttp3.HttpUrl url,
String description,
java.util.function.Consumer<okhttp3.Response> consumer)
protected void fromUrlPOST(okhttp3.HttpUrl url,
okhttp3.RequestBody inputBody,
String description,
java.util.function.Consumer<okhttp3.Response> consumer)
protected void fromUrlPUT(okhttp3.HttpUrl url,
okhttp3.RequestBody inputBody,
String description,
java.util.function.Consumer<okhttp3.Response> consumer)
protected void debugBody(okhttp3.Response res)
protected java.util.stream.Stream<javax.json.JsonObject> mapToStream(okhttp3.Response res)
protected javax.json.JsonObject mapToObject(okhttp3.Response res)
protected CompletableFuture<Optional<javax.json.JsonObject>> findPageById(String id)
protected CompletableFuture<List<javax.json.JsonObject>> findPages(String spaceKey, String title)
protected CompletableFuture<List<javax.json.JsonObject>> descendantPages(long id)
protected CompletableFuture<List<javax.json.JsonObject>> childrenPages(String id)
public CompletableFuture<Optional<javax.json.JsonObject>> findPage(String spaceKey, String title)
spaceKey - title - protected CompletableFuture<Boolean> deletePageById(String id)
public final CompletableFuture<Optional<javax.json.JsonObject>> createPage(javax.json.JsonObject inputData)
inputData - protected CompletableFuture<Optional<javax.json.JsonObject>> updatePage(String pageId, javax.json.JsonObject inputData)
protected final CompletableFuture<Void> addLabels(String id, String... labels)
id - labels - protected CompletableFuture<List<javax.json.JsonObject>> getAttachments(String id)
protected CompletableFuture<List<javax.json.JsonObject>> getAttachment(String id, String fileName)
protected CompletableFuture<List<javax.json.JsonObject>> addAttachment(String id, Attachment att, InputStream data)
Copyright © 2020. All rights reserved.