public class ContentExtension
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected io.github.swagger2markup.spi.ContentContext |
contentContext |
protected io.github.swagger2markup.Swagger2MarkupConverter.Context |
globalContext |
| Modifier and Type | Method and Description |
|---|---|
protected void |
importContent(java.nio.file.Path contentPath,
java.util.function.Consumer<java.io.Reader> contentConsumer)
Import contents from a file
|
protected void |
importContent(java.net.URI contentUri,
java.util.function.Consumer<java.io.Reader> contentConsumer)
Import content from an Uri
|
protected final io.github.swagger2markup.Swagger2MarkupConverter.Context globalContext
protected final io.github.swagger2markup.spi.ContentContext contentContext
protected void importContent(java.nio.file.Path contentPath,
java.util.function.Consumer<java.io.Reader> contentConsumer)
contentPath - content file pathcontentConsumer - the consumer of the file contentprotected void importContent(java.net.URI contentUri,
java.util.function.Consumer<java.io.Reader> contentConsumer)
contentUri - content file URIcontentConsumer - the consumer of the file content