Package com.yahoo.processing.handler
Class AbstractProcessingHandler<COMPONENT extends Processor>
java.lang.Object
com.yahoo.jdisc.AbstractResource
com.yahoo.jdisc.handler.AbstractRequestHandler
com.yahoo.container.jdisc.ThreadedRequestHandler
com.yahoo.container.jdisc.ThreadedHttpRequestHandler
com.yahoo.container.jdisc.LoggingRequestHandler
com.yahoo.processing.handler.AbstractProcessingHandler<COMPONENT>
- 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
-
Nested Class Summary
Nested classes/interfaces inherited from class com.yahoo.container.jdisc.LoggingRequestHandler
LoggingRequestHandler.Context
Nested classes/interfaces inherited from class com.yahoo.container.jdisc.ThreadedHttpRequestHandler
ThreadedHttpRequestHandler.LazyContentChannel
Nested classes/interfaces inherited from interface com.yahoo.jdisc.SharedResource
com.yahoo.jdisc.SharedResource.Debug
-
Field Summary
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
ConstructorDescriptionAbstractProcessingHandler
(ChainsConfig processingChainsConfig, com.yahoo.component.provider.ComponentRegistry<COMPONENT> chainedComponents, com.yahoo.component.provider.ComponentRegistry<Renderer> renderers, Executor executor, AccessLog ignored) 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) AbstractProcessingHandler
(ChainRegistry<COMPONENT> chainRegistry, com.yahoo.component.provider.ComponentRegistry<Renderer> renderers, Executor executor, AccessLog ignored) AbstractProcessingHandler
(ChainRegistry<COMPONENT> chainRegistry, com.yahoo.component.provider.ComponentRegistry<Renderer> renderers, Executor executor, AccessLog ignored, com.yahoo.jdisc.Metric metric) -
Method Summary
Modifier and TypeMethodDescriptioncreateExecution
(Chain<COMPONENT> chain, Request processingRequest) getRendererCopy
(com.yahoo.component.ComponentSpecification spec) For internal use onlycom.yahoo.component.provider.ComponentRegistry<Renderer>
handle
(HttpRequest request) Throws UnsupportedOperationException: Call handle(request, channel instead)handle
(HttpRequest request, com.yahoo.jdisc.handler.ContentChannel channel) Override this rather than handle(request) to be able to write to the channel before returning from this method.Methods inherited from class com.yahoo.container.jdisc.LoggingRequestHandler
createLoggingCompletionHandler, testOnlyContext
Methods inherited from class com.yahoo.container.jdisc.ThreadedHttpRequestHandler
addDateHeader, asHttpRequest, handleRequest, testContext
Methods inherited from class com.yahoo.container.jdisc.ThreadedRequestHandler
executor, getRequestType, getTimeout, handleRequest, writeErrorResponseOnOverload
Methods inherited from class com.yahoo.jdisc.handler.AbstractRequestHandler
handleTimeout
Methods inherited from class com.yahoo.jdisc.AbstractResource
currentState, destroy, 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
-
DEFAULT_RENDERER_ID
- See Also:
-
-
Constructor Details
-
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(ChainRegistry<COMPONENT> chainRegistry, com.yahoo.component.provider.ComponentRegistry<Renderer> renderers, Executor executor, AccessLog ignored) -
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 Details
-
handle
Throws UnsupportedOperationException: Call handle(request, channel instead)- Specified by:
handle
in classThreadedHttpRequestHandler
- Parameters:
request
- incoming HTTP request- Returns:
- a valid HTTP response for presentation to the user
-
handle
Description copied from class:ThreadedHttpRequestHandler
Override this rather than handle(request) to be able to write to the channel before returning from this method. This default implementation calls handle(request)- Overrides:
handle
in classThreadedHttpRequestHandler
-
createExecution
-
getChainRegistry
-
getRenderers
-
getRendererCopy
For internal use only
-