Class FeedHandler

java.lang.Object
com.yahoo.jdisc.AbstractResource
com.yahoo.jdisc.handler.AbstractRequestHandler
com.yahoo.container.jdisc.ThreadedRequestHandler
com.yahoo.container.jdisc.ThreadedHttpRequestHandler
com.yahoo.vespa.http.server.FeedHandler
All Implemented Interfaces:
com.yahoo.container.jdisc.HttpRequestHandler, com.yahoo.jdisc.handler.RequestHandler, com.yahoo.jdisc.SharedResource

public class FeedHandler extends com.yahoo.container.jdisc.ThreadedHttpRequestHandler
Accept feeds from outside the Vespa cluster.
Author:
Steinar Knutsen
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.yahoo.container.jdisc.ThreadedHttpRequestHandler

    com.yahoo.container.jdisc.ThreadedHttpRequestHandler.Context, com.yahoo.container.jdisc.ThreadedHttpRequestHandler.LazyContentChannel

    Nested classes/interfaces inherited from interface com.yahoo.jdisc.SharedResource

    com.yahoo.jdisc.SharedResource.Debug
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final com.yahoo.messagebus.ReplyHandler
     

    Fields inherited from class com.yahoo.container.jdisc.ThreadedHttpRequestHandler

    CONTENT_TYPE, log

    Fields inherited from class com.yahoo.container.jdisc.ThreadedRequestHandler

    metric

    Fields inherited from interface com.yahoo.jdisc.SharedResource

    DEBUG, SYSTEM_PROPERTY_NAME_DEBUG
  • Constructor Summary

    Constructors
    Constructor
    Description
    FeedHandler(com.yahoo.container.handler.threadpool.ContainerThreadPool threadpool, com.yahoo.jdisc.Metric metric, com.yahoo.document.DocumentTypeManager documentTypeManager, com.yahoo.container.jdisc.messagebus.SessionCache sessionCache, com.yahoo.metrics.simple.MetricReceiver metricReceiver)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    com.yahoo.container.jdisc.HttpResponse
    handle(com.yahoo.container.jdisc.HttpRequest request)
     
    protected static InputStream
    unzipStreamIfNeeded(InputStream inputStream, com.yahoo.container.jdisc.HttpRequest httpRequest)
     
    protected void
    writeErrorResponseOnOverload(com.yahoo.jdisc.Request request, com.yahoo.jdisc.handler.ResponseHandler responseHandler)
     

    Methods inherited from class com.yahoo.container.jdisc.ThreadedHttpRequestHandler

    addDateHeader, asHttpRequest, createLoggingCompletionHandler, handle, handleRequest, testContext

    Methods inherited from class com.yahoo.container.jdisc.ThreadedRequestHandler

    executor, getRequestType, getTimeout, handleRequest

    Methods inherited from class com.yahoo.jdisc.handler.AbstractRequestHandler

    handleTimeout

    Methods inherited from class com.yahoo.jdisc.AbstractResource

    currentState, refer, refer, release, retainCount

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.yahoo.container.jdisc.HttpRequestHandler

    requestHandlerSpec

    Methods inherited from interface com.yahoo.jdisc.handler.RequestHandler

    handleRequest, handleTimeout

    Methods inherited from interface com.yahoo.jdisc.SharedResource

    refer, refer, release
  • Field Details

    • feedReplyHandler

      protected final com.yahoo.messagebus.ReplyHandler feedReplyHandler
  • Constructor Details

    • FeedHandler

      @Inject public FeedHandler(com.yahoo.container.handler.threadpool.ContainerThreadPool threadpool, com.yahoo.jdisc.Metric metric, com.yahoo.document.DocumentTypeManager documentTypeManager, com.yahoo.container.jdisc.messagebus.SessionCache sessionCache, com.yahoo.metrics.simple.MetricReceiver metricReceiver)
  • Method Details

    • handle

      public com.yahoo.container.jdisc.HttpResponse handle(com.yahoo.container.jdisc.HttpRequest request)
      Specified by:
      handle in class com.yahoo.container.jdisc.ThreadedHttpRequestHandler
    • writeErrorResponseOnOverload

      protected void writeErrorResponseOnOverload(com.yahoo.jdisc.Request request, com.yahoo.jdisc.handler.ResponseHandler responseHandler)
      Overrides:
      writeErrorResponseOnOverload in class com.yahoo.container.jdisc.ThreadedRequestHandler
    • unzipStreamIfNeeded

      protected static InputStream unzipStreamIfNeeded(InputStream inputStream, com.yahoo.container.jdisc.HttpRequest httpRequest) throws IOException
      Throws:
      IOException
    • destroy

      protected void destroy()
      Overrides:
      destroy in class com.yahoo.jdisc.AbstractResource