public abstract class AbstractRESTConfluenceService extends Object
| 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 List<javax.json.JsonObject> |
addAttachment(String id,
Attachment att,
InputStream data) |
protected void |
addLabels(String id,
String... labels) |
protected List<javax.json.JsonObject> |
childrenPages(String id) |
Optional<javax.json.JsonObject> |
createPage(javax.json.JsonObject inputData) |
protected void |
debugBody(okhttp3.Response res) |
protected boolean |
deletePageById(String id) |
protected List<javax.json.JsonObject> |
descendantPages(String id) |
Optional<javax.json.JsonObject> |
findPage(String spaceKey,
String title) |
protected Optional<javax.json.JsonObject> |
findPageById(String id) |
protected List<javax.json.JsonObject> |
findPages(String spaceKey,
String title) |
okhttp3.Response |
fromRequest(okhttp3.Request req,
String description) |
CompletableFuture<okhttp3.Response> |
fromRequestAsync(okhttp3.Request req) |
protected java.util.stream.Stream<okhttp3.Response> |
fromUrlDELETE(okhttp3.HttpUrl url,
String description) |
protected java.util.stream.Stream<okhttp3.Response> |
fromUrlGET(okhttp3.HttpUrl url,
String description) |
protected java.util.stream.Stream<okhttp3.Response> |
fromUrlPOST(okhttp3.HttpUrl url,
okhttp3.RequestBody inputBody,
String description) |
protected java.util.stream.Stream<okhttp3.Response> |
fromUrlPUT(okhttp3.HttpUrl url,
okhttp3.RequestBody inputBody,
String description) |
protected List<javax.json.JsonObject> |
getAttachment(String id,
String fileName) |
protected 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 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 - description - public okhttp3.Response fromRequest(okhttp3.Request req,
String description)
protected java.util.stream.Stream<okhttp3.Response> fromUrlGET(okhttp3.HttpUrl url, String description)
protected java.util.stream.Stream<okhttp3.Response> fromUrlDELETE(okhttp3.HttpUrl url, String description)
protected java.util.stream.Stream<okhttp3.Response> fromUrlPOST(okhttp3.HttpUrl url, okhttp3.RequestBody inputBody, String description)
protected java.util.stream.Stream<okhttp3.Response> fromUrlPUT(okhttp3.HttpUrl url, okhttp3.RequestBody inputBody, String description)
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)
public Optional<javax.json.JsonObject> findPage(String spaceKey, String title)
spaceKey - title - protected boolean deletePageById(String id)
public final Optional<javax.json.JsonObject> createPage(javax.json.JsonObject inputData)
inputData - protected Optional<javax.json.JsonObject> updatePage(String pageId, javax.json.JsonObject inputData)
protected List<javax.json.JsonObject> addAttachment(String id, Attachment att, InputStream data)
Copyright © 2020. All rights reserved.