Package com.yahoo.container.handler
Class AccessLogRequestHandler
- 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.handler.AccessLogRequestHandler
-
- All Implemented Interfaces:
HttpRequestHandler
,com.yahoo.jdisc.handler.RequestHandler
,com.yahoo.jdisc.SharedResource
public class AccessLogRequestHandler extends ThreadedHttpRequestHandler
Exposes access log through http.- Author:
- dybis
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.yahoo.container.jdisc.ThreadedHttpRequestHandler
ThreadedHttpRequestHandler.Context, 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 AccessLogRequestHandler(Executor executor, com.yahoo.jdisc.Metric metric, CircularArrayAccessLogKeeper circularArrayAccessLogKeeper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpResponse
handle(HttpRequest request)
Override this to implement a synchronous style handler.-
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, 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
-
AccessLogRequestHandler
@Inject public AccessLogRequestHandler(Executor executor, com.yahoo.jdisc.Metric metric, CircularArrayAccessLogKeeper circularArrayAccessLogKeeper)
-
-
Method Detail
-
handle
public HttpResponse handle(HttpRequest request)
Description copied from class:ThreadedHttpRequestHandler
Override this to implement a synchronous style handler.- Specified by:
handle
in classThreadedHttpRequestHandler
- Parameters:
request
- incoming HTTP request- Returns:
- a valid HTTP response for presentation to the user
-
-