private static class AbstractProcessingHandler.FreezeListener extends Object implements Runnable, com.yahoo.processing.execution.ResponseReceiver
Modifier and Type | Field and Description |
---|---|
private com.yahoo.jdisc.handler.ContentChannel |
channel |
private Renderer |
defaultRenderer |
private com.yahoo.processing.execution.Execution |
execution
Used to render
|
private Renderer<com.yahoo.processing.Response> |
renderer
The renderer used in this, or null if not created yet
|
private com.yahoo.component.provider.ComponentRegistry<Renderer> |
renderers |
private Executor |
renderingExecutor |
private com.yahoo.processing.Request |
request
Used to create the renderer
|
private com.yahoo.processing.Response |
response |
Constructor and Description |
---|
FreezeListener(com.yahoo.processing.Request request,
com.yahoo.component.provider.ComponentRegistry<Renderer> renderers,
Renderer defaultRenderer,
com.yahoo.jdisc.handler.ContentChannel channel,
Executor renderingExecutor) |
Modifier and Type | Method and Description |
---|---|
private HttpResponse |
getHttpResponse(com.yahoo.processing.Response processingResponse)
Returns and lazily creates the http response of this.
|
Renderer |
getRenderer()
Returns and lazily creates the renderer of this.
|
void |
run() |
void |
setExecution(com.yahoo.processing.execution.Execution execution)
Expected to be called once before run is called
|
void |
setResponse(com.yahoo.processing.Response response)
Expected to be called once before run is called
|
private final com.yahoo.processing.Request request
private final com.yahoo.component.provider.ComponentRegistry<Renderer> renderers
private final Renderer defaultRenderer
private final com.yahoo.jdisc.handler.ContentChannel channel
private final Executor renderingExecutor
private com.yahoo.processing.execution.Execution execution
private com.yahoo.processing.Response response
private Renderer<com.yahoo.processing.Response> renderer
public void setResponse(com.yahoo.processing.Response response)
setResponse
in interface com.yahoo.processing.execution.ResponseReceiver
public void setExecution(com.yahoo.processing.execution.Execution execution)
public Renderer getRenderer()
private HttpResponse getHttpResponse(com.yahoo.processing.Response processingResponse)
Copyright © 2017. All rights reserved.