Class AbstractProcessingHandler<COMPONENT extends com.yahoo.processing.Processor>

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

    public abstract class AbstractProcessingHandler<COMPONENT extends com.yahoo.processing.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
    • Field Detail

      • DEFAULT_RENDERER_ID

        public static final java.lang.String DEFAULT_RENDERER_ID
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractProcessingHandler

        public AbstractProcessingHandler​(com.yahoo.processing.execution.chain.ChainRegistry<COMPONENT> chainRegistry,
                                         com.yahoo.component.provider.ComponentRegistry<Renderer> renderers,
                                         java.util.concurrent.Executor executor,
                                         com.yahoo.container.logging.AccessLog accessLog,
                                         com.yahoo.jdisc.Metric metric)
      • AbstractProcessingHandler

        public AbstractProcessingHandler​(com.yahoo.processing.execution.chain.ChainRegistry<COMPONENT> chainRegistry,
                                         com.yahoo.component.provider.ComponentRegistry<Renderer> renderers,
                                         java.util.concurrent.Executor executor,
                                         com.yahoo.container.logging.AccessLog accessLog)
      • AbstractProcessingHandler

        public AbstractProcessingHandler​(com.yahoo.container.core.ChainsConfig processingChainsConfig,
                                         com.yahoo.component.provider.ComponentRegistry<COMPONENT> chainedComponents,
                                         com.yahoo.component.provider.ComponentRegistry<Renderer> renderers,
                                         java.util.concurrent.Executor executor,
                                         com.yahoo.container.logging.AccessLog accessLog)
      • AbstractProcessingHandler

        @Inject
        public AbstractProcessingHandler​(com.yahoo.container.core.ChainsConfig processingChainsConfig,
                                         com.yahoo.component.provider.ComponentRegistry<COMPONENT> chainedComponents,
                                         com.yahoo.component.provider.ComponentRegistry<Renderer> renderers,
                                         java.util.concurrent.Executor executor,
                                         com.yahoo.container.logging.AccessLog accessLog,
                                         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
      • createExecution

        public com.yahoo.processing.execution.Execution createExecution​(com.yahoo.component.chain.Chain<COMPONENT> chain,
                                                                        com.yahoo.processing.Request processingRequest)
      • getChainRegistry

        public com.yahoo.processing.execution.chain.ChainRegistry<COMPONENT> getChainRegistry()
      • getRenderers

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

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