public abstract class DownloadingAsyncPrettyPrinterFactory extends java.lang.Object implements AsyncPrettyPrinterFactory
| Modifier and Type | Class and Description |
|---|---|
protected class |
DownloadingAsyncPrettyPrinterFactory.MatchResult |
| Constructor and Description |
|---|
DownloadingAsyncPrettyPrinterFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
doPrint(java.io.PrintWriter output,
java.io.InputStream payload,
java.lang.String schema)
Note that the IOException thrown by this method will be propagated all the way up and
yield an error to the chrome devtools
|
AsyncPrettyPrinter |
getInstance(java.lang.String headerName,
java.lang.String headerValue)
Creates an asynchronous pretty printer.
|
protected abstract DownloadingAsyncPrettyPrinterFactory.MatchResult |
matchAndParseHeader(java.lang.String headerName,
java.lang.String headerValue)
Match the correct header that contains information about the schema uri
|
public DownloadingAsyncPrettyPrinterFactory()
public AsyncPrettyPrinter getInstance(java.lang.String headerName, java.lang.String headerValue)
AsyncPrettyPrinterFactorygetInstance in interface AsyncPrettyPrinterFactoryheaderName - header name of a response which is used to associate
with an asynchronous pretty printerheaderValue - header value of a response which contains the URI for
the schema data needed to pretty print the response bodyprotected abstract DownloadingAsyncPrettyPrinterFactory.MatchResult matchAndParseHeader(java.lang.String headerName, java.lang.String headerValue)
headerName - header name of a response that needs to be pretty printedheaderValue - header value which contains the URI for
the schema data needed to pretty print the response bodyprotected abstract void doPrint(java.io.PrintWriter output,
java.io.InputStream payload,
java.lang.String schema)
throws java.io.IOException
java.io.IOException