public abstract class Renderer extends com.yahoo.processing.rendering.Renderer<Result>
Constructor and Description |
---|
Renderer() |
Modifier and Type | Method and Description |
---|---|
Renderer |
clone()
Used to create a separate instance for each result to render.
|
private Writer |
createWriter(OutputStream stream,
Result result) |
String |
getCharacterEncoding(Result result) |
String |
getDefaultSummaryClass() |
String |
getRequestedEncoding(Query query)
Returns the encoding of the query, or the encoding given by the template if none is set
|
com.google.common.util.concurrent.ListenableFuture<Boolean> |
render(OutputStream stream,
Result response,
com.yahoo.processing.execution.Execution execution,
com.yahoo.processing.Request request)
Renders synchronously and returns when rendering is complete.
|
protected abstract void |
render(Writer writer,
Result result)
Renders the result to the writer.
|
public final com.google.common.util.concurrent.ListenableFuture<Boolean> render(OutputStream stream, Result response, com.yahoo.processing.execution.Execution execution, com.yahoo.processing.Request request)
render
in class com.yahoo.processing.rendering.Renderer<Result>
protected abstract void render(Writer writer, Result result) throws IOException
IOException
private Writer createWriter(OutputStream stream, Result result)
public String getDefaultSummaryClass()
public final String getRequestedEncoding(Query query)
Copyright © 2017. All rights reserved.