Package org.bsc.confluence.model
Class SiteProcessor
- java.lang.Object
-
- org.bsc.confluence.model.SiteProcessor
-
public class SiteProcessor extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SiteProcessor.PageContent
-
Constructor Summary
Constructors Constructor Description SiteProcessor()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
processMarkdown(Site site, Site.Page child, ConfluenceService.Model.Page page, String content, String pagePrefixToApply)
static <P extends Site.Page>
CompletableFuture<SiteProcessor.PageContent>processPageUri(Site site, P child, ConfluenceService.Model.Page page, URI uri, String pagePrefixToApply)
static <T> T
processUri(URI uri, BiFunction<Optional<Exception>,Optional<InputStream>,T> callback)
static <P extends Site.Page>
CompletableFuture<SiteProcessor.PageContent>processUriContent(Site site, P child, URI uri, String homePageTitle)
-
-
-
Method Detail
-
processUri
public static <T> T processUri(URI uri, BiFunction<Optional<Exception>,Optional<InputStream>,T> callback)
- Type Parameters:
T
-- Parameters:
uri
-callback
-- Returns:
-
processPageUri
public static <P extends Site.Page> CompletableFuture<SiteProcessor.PageContent> processPageUri(Site site, P child, ConfluenceService.Model.Page page, URI uri, String pagePrefixToApply)
- Type Parameters:
P
-- Parameters:
site
-child
-page
- - Nullableuri
-pagePrefixToApply
- - Nullable- Returns:
-
processUriContent
public static <P extends Site.Page> CompletableFuture<SiteProcessor.PageContent> processUriContent(Site site, P child, URI uri, String homePageTitle)
- Type Parameters:
P
-- Parameters:
site
-child
-uri
-homePageTitle
- - Nullable- Returns:
-
processMarkdown
public static String processMarkdown(Site site, Site.Page child, ConfluenceService.Model.Page page, String content, String pagePrefixToApply) throws IOException
- Parameters:
site
-child
-page
- - Nullablecontent
-pagePrefixToApply
- - Nullable- Returns:
- Throws:
IOException
-
-