Class HttpSearchResponse


  • public class HttpSearchResponse
    extends com.yahoo.container.jdisc.ExtendedResponse
    Wrap the result of a query as an HTTP response.
    Author:
    Steinar Knutsen
    • Constructor Detail

      • HttpSearchResponse

        public HttpSearchResponse​(int status,
                                  Result result,
                                  Query query,
                                  com.yahoo.processing.rendering.Renderer<Result> renderer)
    • Method Detail

      • render

        public void render​(OutputStream output,
                           com.yahoo.jdisc.handler.ContentChannel networkChannel,
                           com.yahoo.jdisc.handler.CompletionHandler handler)
                    throws IOException
        Specified by:
        render in class com.yahoo.container.jdisc.ExtendedResponse
        Throws:
        IOException
      • populateAccessLogEntry

        public void populateAccessLogEntry​(com.yahoo.container.logging.AccessLogEntry accessLogEntry)
        Overrides:
        populateAccessLogEntry in class com.yahoo.container.jdisc.HttpResponse
      • getParsedQuery

        public String getParsedQuery()
        Overrides:
        getParsedQuery in class com.yahoo.container.jdisc.ExtendedResponse
      • getTiming

        public com.yahoo.container.handler.Timing getTiming()
        Overrides:
        getTiming in class com.yahoo.container.jdisc.ExtendedResponse
      • getCoverage

        public com.yahoo.container.handler.Coverage getCoverage()
        Overrides:
        getCoverage in class com.yahoo.container.jdisc.ExtendedResponse
      • getHitCounts

        public com.yahoo.container.logging.HitCounts getHitCounts()
        Overrides:
        getHitCounts in class com.yahoo.container.jdisc.ExtendedResponse
      • getContentType

        public String getContentType()
        Returns MIME type of this response
        Overrides:
        getContentType in class com.yahoo.container.jdisc.HttpResponse
      • getCharacterEncoding

        public String getCharacterEncoding()
        Returns expected character encoding of this response
        Overrides:
        getCharacterEncoding in class com.yahoo.container.jdisc.HttpResponse
      • getQuery

        public Query getQuery()
        Returns the query wrapped by this
      • getResult

        public Result getResult()
        Returns the result wrapped by this
      • getLogValues

        public Iterable<com.yahoo.processing.execution.Execution.Trace.LogValue> getLogValues()
        Overrides:
        getLogValues in class com.yahoo.container.jdisc.HttpResponse