Package com.yahoo.container.jdisc
Class ThreadedHttpRequestHandler.LazyContentChannel
java.lang.Object
com.yahoo.container.jdisc.ThreadedHttpRequestHandler.LazyContentChannel
- All Implemented Interfaces:
ContentChannel
- Enclosing class:
- ThreadedHttpRequestHandler
public static class ThreadedHttpRequestHandler.LazyContentChannel
extends Object
implements ContentChannel
A content channel which will return the header and create the proper channel the first time content data needs
to be written to it.
-
Constructor Summary
ConstructorsConstructorDescriptionLazyContentChannel(HttpRequest httpRequest, ResponseHandler responseHandler, Metric metric, Logger log) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose(CompletionHandler completionHandler) voidsetHttpResponse(HttpResponse httpResponse) This must be called before writing to thisvoidwrite(ByteBuffer byteBuffer, CompletionHandler completionHandler) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.yahoo.jdisc.handler.ContentChannel
onError
-
Constructor Details
-
LazyContentChannel
public LazyContentChannel(HttpRequest httpRequest, ResponseHandler responseHandler, Metric metric, Logger log)
-
-
Method Details
-
setHttpResponse
This must be called before writing to this -
write
- Specified by:
writein interfaceContentChannel
-
close
- Specified by:
closein interfaceContentChannel
-