Class AbstractProcessingHandler<COMPONENT extends Processor>

  • All Implemented Interfaces:
    HttpRequestHandler, com.yahoo.jdisc.handler.RequestHandler, com.yahoo.jdisc.SharedResource
    Direct Known Subclasses:
    ProcessingHandler

    public abstract class AbstractProcessingHandler<COMPONENT extends Processor>
    extends LoggingRequestHandler
    Superclass of handlers invoking some kind of processing chain.

    COMPONENT: The type of the processing components of which this executes a chain

    Author:
    bratseth, Tony Vaagenes, Steinar Knutsen
    • Constructor Detail

      • AbstractProcessingHandler

        public AbstractProcessingHandler​(ChainRegistry<COMPONENT> chainRegistry,
                                         com.yahoo.component.provider.ComponentRegistry<Renderer> renderers,
                                         Executor executor,
                                         AccessLog ignored,
                                         com.yahoo.jdisc.Metric metric)
      • AbstractProcessingHandler

        public AbstractProcessingHandler​(ChainsConfig processingChainsConfig,
                                         com.yahoo.component.provider.ComponentRegistry<COMPONENT> chainedComponents,
                                         com.yahoo.component.provider.ComponentRegistry<Renderer> renderers,
                                         Executor executor,
                                         AccessLog ignored)
      • AbstractProcessingHandler

        @Inject
        public AbstractProcessingHandler​(ChainsConfig processingChainsConfig,
                                         com.yahoo.component.provider.ComponentRegistry<COMPONENT> chainedComponents,
                                         com.yahoo.component.provider.ComponentRegistry<Renderer> renderers,
                                         Executor executor,
                                         AccessLog ignored,
                                         com.yahoo.jdisc.Metric metric)
    • Method Detail

      • handle

        public HttpResponse handle​(HttpRequest request)
        Throws UnsupportedOperationException: Call handle(request, channel instead)
        Specified by:
        handle in class ThreadedHttpRequestHandler
        Parameters:
        request - incoming HTTP request
        Returns:
        a valid HTTP response for presentation to the user
      • getRenderers

        public com.yahoo.component.provider.ComponentRegistry<Renderer> getRenderers()
      • getRendererCopy

        public Renderer<Response> getRendererCopy​(com.yahoo.component.ComponentSpecification spec)
        For internal use only