public interface WriterResolver
WriterResolver
is used to access the Writer
that should be used to
write a snippet for an operation that is being documented.Modifier and Type | Method and Description |
---|---|
Writer |
resolve(String operationName,
String snippetName,
RestDocumentationContext restDocumentationContext)
Returns a writer that can be used to write the snippet with the given name for the
operation with the given name.
|
void |
setEncoding(String encoding)
Deprecated.
since 1.1.0 in favour of configuring the encoding when to resolver is
created
|
Writer resolve(String operationName, String snippetName, RestDocumentationContext restDocumentationContext) throws IOException
operationName
- the name of the operation that is being documentedsnippetName
- the name of the snippetrestDocumentationContext
- the current documentation contextIOException
- if a writer cannot be resolved@Deprecated void setEncoding(String encoding)
encoding
- the encoding