public class HttpSearchResponse
extends com.yahoo.container.jdisc.ExtendedResponse
Modifier and Type | Field and Description |
---|---|
private com.yahoo.container.logging.HitCounts |
hitCounts |
private Query |
query |
private com.yahoo.processing.rendering.Renderer<Result> |
rendererCopy |
private Result |
result |
private com.yahoo.container.handler.Timing |
timing |
Constructor and Description |
---|
HttpSearchResponse(int status,
Result result,
Query query,
com.yahoo.processing.rendering.Renderer renderer) |
Modifier and Type | Method and Description |
---|---|
String |
getCharacterEncoding()
Returns expected character encoding of this response
|
String |
getContentType()
Returns MIME type of this response
|
com.yahoo.container.handler.Coverage |
getCoverage() |
com.yahoo.container.logging.HitCounts |
getHitCounts() |
Iterable<com.yahoo.processing.execution.Execution.Trace.LogValue> |
getLogValues() |
String |
getParsedQuery() |
Query |
getQuery()
Returns the query wrapped by this
|
Result |
getResult()
Returns the result wrapped by this
|
com.yahoo.container.handler.Timing |
getTiming() |
void |
populateAccessLogEntry(com.yahoo.container.logging.AccessLogEntry accessLogEntry) |
(package private) static void |
populateAccessLogEntry(com.yahoo.container.logging.AccessLogEntry jdiscRequestAccessLogEntry,
com.yahoo.container.logging.HitCounts hitCounts) |
private static void |
populateHeaders(com.yahoo.jdisc.HeaderFields outputHeaders,
com.yahoo.collections.ListMap<String,String> searchHeaders)
Copy custom HTTP headers from the search result over to the HTTP
response.
|
void |
render(OutputStream output,
com.yahoo.jdisc.handler.ContentChannel networkChannel,
com.yahoo.jdisc.handler.CompletionHandler handler) |
com.google.common.util.concurrent.ListenableFuture<Boolean> |
waitableRender(OutputStream stream) |
static com.google.common.util.concurrent.ListenableFuture<Boolean> |
waitableRender(Result result,
Query query,
com.yahoo.processing.rendering.Renderer<Result> renderer,
OutputStream stream) |
private final Result result
private final Query query
private final com.yahoo.processing.rendering.Renderer<Result> rendererCopy
private final com.yahoo.container.handler.Timing timing
private final com.yahoo.container.logging.HitCounts hitCounts
private static void populateHeaders(com.yahoo.jdisc.HeaderFields outputHeaders, com.yahoo.collections.ListMap<String,String> searchHeaders)
outputHeaders
- the headers which will be sent to a clientsearchHeaders
- the headers from the search result, or nullpublic com.google.common.util.concurrent.ListenableFuture<Boolean> waitableRender(OutputStream stream) throws IOException
IOException
public static com.google.common.util.concurrent.ListenableFuture<Boolean> waitableRender(Result result, Query query, com.yahoo.processing.rendering.Renderer<Result> renderer, OutputStream stream) throws IOException
IOException
public void render(OutputStream output, com.yahoo.jdisc.handler.ContentChannel networkChannel, com.yahoo.jdisc.handler.CompletionHandler handler) throws IOException
render
in class com.yahoo.container.jdisc.ExtendedResponse
IOException
public void populateAccessLogEntry(com.yahoo.container.logging.AccessLogEntry accessLogEntry)
populateAccessLogEntry
in class com.yahoo.container.jdisc.HttpResponse
static void populateAccessLogEntry(com.yahoo.container.logging.AccessLogEntry jdiscRequestAccessLogEntry, com.yahoo.container.logging.HitCounts hitCounts)
public String getParsedQuery()
getParsedQuery
in class com.yahoo.container.jdisc.ExtendedResponse
public com.yahoo.container.handler.Timing getTiming()
getTiming
in class com.yahoo.container.jdisc.ExtendedResponse
public com.yahoo.container.handler.Coverage getCoverage()
getCoverage
in class com.yahoo.container.jdisc.ExtendedResponse
public com.yahoo.container.logging.HitCounts getHitCounts()
getHitCounts
in class com.yahoo.container.jdisc.ExtendedResponse
public String getContentType()
getContentType
in class com.yahoo.container.jdisc.HttpResponse
public String getCharacterEncoding()
getCharacterEncoding
in class com.yahoo.container.jdisc.HttpResponse
public Query getQuery()
public Result getResult()
public Iterable<com.yahoo.processing.execution.Execution.Trace.LogValue> getLogValues()
getLogValues
in class com.yahoo.container.jdisc.HttpResponse
Copyright © 2018. All rights reserved.