Package com.yahoo.container.jdisc
Class ThreadedHttpRequestHandler.LazyContentChannel
java.lang.Object
com.yahoo.container.jdisc.ThreadedHttpRequestHandler.LazyContentChannel
- All Implemented Interfaces:
com.yahoo.jdisc.handler.ContentChannel
- Enclosing class:
- ThreadedHttpRequestHandler
public static class ThreadedHttpRequestHandler.LazyContentChannel
extends Object
implements com.yahoo.jdisc.handler.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
ConstructorDescriptionLazyContentChannel
(HttpRequest httpRequest, com.yahoo.jdisc.handler.ResponseHandler responseHandler, com.yahoo.jdisc.Metric metric, Logger log) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close
(com.yahoo.jdisc.handler.CompletionHandler completionHandler) void
setHttpResponse
(HttpResponse httpResponse) This must be called before writing to thisvoid
write
(ByteBuffer byteBuffer, com.yahoo.jdisc.handler.CompletionHandler completionHandler) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.yahoo.jdisc.handler.ContentChannel
onError
-
Constructor Details
-
LazyContentChannel
public LazyContentChannel(HttpRequest httpRequest, com.yahoo.jdisc.handler.ResponseHandler responseHandler, com.yahoo.jdisc.Metric metric, Logger log)
-
-
Method Details
-
setHttpResponse
This must be called before writing to this -
write
public void write(ByteBuffer byteBuffer, com.yahoo.jdisc.handler.CompletionHandler completionHandler) - Specified by:
write
in interfacecom.yahoo.jdisc.handler.ContentChannel
-
close
public void close(com.yahoo.jdisc.handler.CompletionHandler completionHandler) - Specified by:
close
in interfacecom.yahoo.jdisc.handler.ContentChannel
-