Package com.yahoo.container.jdisc
Class LoggingRequestHandler
- 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
-
- All Implemented Interfaces:
HttpRequestHandler
,com.yahoo.jdisc.handler.RequestHandler
,com.yahoo.jdisc.SharedResource
- Direct Known Subclasses:
AbstractProcessingHandler
@Deprecated public abstract class LoggingRequestHandler extends ThreadedHttpRequestHandler
Deprecated.UseThreadedHttpRequestHandler
, which provides the same level of functionality.A request handler base class extending the features of ThreadedHttpRequestHandler with access logging.- Author:
- Steinar Knutsen
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LoggingRequestHandler.Context
Deprecated.-
Nested classes/interfaces inherited from class com.yahoo.container.jdisc.ThreadedHttpRequestHandler
ThreadedHttpRequestHandler.LazyContentChannel
-
-
Field Summary
-
Fields inherited from class com.yahoo.container.jdisc.ThreadedHttpRequestHandler
CONTENT_TYPE, log
-
Fields inherited from class com.yahoo.container.jdisc.ThreadedRequestHandler
metric
-
-
Constructor Summary
Constructors Constructor Description LoggingRequestHandler(LoggingRequestHandler.Context ctx)
Deprecated.LoggingRequestHandler(LoggingRequestHandler.Context ctx, boolean allowAsyncResponse)
Deprecated.LoggingRequestHandler(Executor executor)
Deprecated.LoggingRequestHandler(Executor executor, AccessLog ignored)
Deprecated, for removal: This API element is subject to removal in a future version.UseLoggingRequestHandler(Executor)
insteadLoggingRequestHandler(Executor executor, AccessLog ignored, com.yahoo.jdisc.Metric metric)
Deprecated, for removal: This API element is subject to removal in a future version.UseLoggingRequestHandler(Executor, Metric)
insteadLoggingRequestHandler(Executor executor, AccessLog ignored, com.yahoo.jdisc.Metric metric, boolean allowAsyncResponse)
Deprecated, for removal: This API element is subject to removal in a future version.UseLoggingRequestHandler(Executor, Metric, boolean)
insteadLoggingRequestHandler(Executor executor, com.yahoo.jdisc.Metric metric)
Deprecated.LoggingRequestHandler(Executor executor, com.yahoo.jdisc.Metric metric, boolean allowAsyncResponse)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected LoggingCompletionHandler
createLoggingCompletionHandler(long startTime, long renderStartTime, HttpResponse response, HttpRequest httpRequest, ContentChannelOutputStream rendererWiring)
Deprecated.Override this to implement custom access logging.static LoggingRequestHandler.Context
testOnlyContext()
Deprecated.-
Methods inherited from class com.yahoo.container.jdisc.ThreadedHttpRequestHandler
addDateHeader, asHttpRequest, handle, handle, handleRequest, testContext
-
Methods inherited from class com.yahoo.container.jdisc.ThreadedRequestHandler
executor, getRequestType, getTimeout, handleRequest, writeErrorResponseOnOverload
-
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
-
-
-
-
Constructor Detail
-
LoggingRequestHandler
@Inject public LoggingRequestHandler(LoggingRequestHandler.Context ctx)
Deprecated.
-
LoggingRequestHandler
@Deprecated(forRemoval=true, since="7") public LoggingRequestHandler(Executor executor, AccessLog ignored)
Deprecated, for removal: This API element is subject to removal in a future version.UseLoggingRequestHandler(Executor)
instead
-
LoggingRequestHandler
public LoggingRequestHandler(Executor executor)
Deprecated.
-
LoggingRequestHandler
public LoggingRequestHandler(LoggingRequestHandler.Context ctx, boolean allowAsyncResponse)
Deprecated.
-
LoggingRequestHandler
public LoggingRequestHandler(Executor executor, com.yahoo.jdisc.Metric metric)
Deprecated.
-
LoggingRequestHandler
@Deprecated(forRemoval=true, since="7") public LoggingRequestHandler(Executor executor, AccessLog ignored, com.yahoo.jdisc.Metric metric)
Deprecated, for removal: This API element is subject to removal in a future version.UseLoggingRequestHandler(Executor, Metric)
instead
-
LoggingRequestHandler
@Deprecated(forRemoval=true, since="7") public LoggingRequestHandler(Executor executor, AccessLog ignored, com.yahoo.jdisc.Metric metric, boolean allowAsyncResponse)
Deprecated, for removal: This API element is subject to removal in a future version.UseLoggingRequestHandler(Executor, Metric, boolean)
instead
-
LoggingRequestHandler
public LoggingRequestHandler(Executor executor, com.yahoo.jdisc.Metric metric, boolean allowAsyncResponse)
Deprecated.
-
-
Method Detail
-
testOnlyContext
public static LoggingRequestHandler.Context testOnlyContext()
Deprecated.
-
createLoggingCompletionHandler
protected LoggingCompletionHandler createLoggingCompletionHandler(long startTime, long renderStartTime, HttpResponse response, HttpRequest httpRequest, ContentChannelOutputStream rendererWiring)
Deprecated.Description copied from class:ThreadedHttpRequestHandler
Override this to implement custom access logging.- Overrides:
createLoggingCompletionHandler
in classThreadedHttpRequestHandler
- Parameters:
startTime
- execution startrenderStartTime
- start of output renderingresponse
- the response which the log entry regardshttpRequest
- the incoming HTTP requestrendererWiring
- the stream the rendered response is written to, used for fetching length of rendered response
-
-