public class ResponseStreamingCompletionHandler extends BaseResponseCompletionHandler
CompletionHandler, responsible for asynchronous http response transferring when the response body
is an input stream.hasContentLength| Constructor and Description |
|---|
ResponseStreamingCompletionHandler(org.glassfish.grizzly.filterchain.FilterChainContext ctx,
ClassLoader ctxClassLoader,
org.glassfish.grizzly.http.HttpRequestPacket request,
org.mule.runtime.http.api.domain.message.response.HttpResponse httpResponse,
org.mule.runtime.http.api.server.async.ResponseStatusCallback responseStatusCallback) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelled()
The method will be called, when file transferring was canceled
|
void |
completed(org.glassfish.grizzly.WriteResult result)
Method gets called, when file chunk was successfully sent.
|
void |
failed(Throwable throwable)
The method will be called, if file transferring was failed.
|
protected ClassLoader |
getCtxClassLoader() |
void |
sendInputStreamChunk() |
void |
start() |
buildHttpResponsePacketpublic ResponseStreamingCompletionHandler(org.glassfish.grizzly.filterchain.FilterChainContext ctx,
ClassLoader ctxClassLoader,
org.glassfish.grizzly.http.HttpRequestPacket request,
org.mule.runtime.http.api.domain.message.response.HttpResponse httpResponse,
org.mule.runtime.http.api.server.async.ResponseStatusCallback responseStatusCallback)
public void start()
throws IOException
IOExceptionpublic void sendInputStreamChunk()
throws IOException
IOExceptionpublic void completed(org.glassfish.grizzly.WriteResult result)
completed in interface org.glassfish.grizzly.CompletionHandler<org.glassfish.grizzly.WriteResult>completed in class org.glassfish.grizzly.EmptyCompletionHandler<org.glassfish.grizzly.WriteResult>result - the resultpublic void cancelled()
cancelled in interface org.glassfish.grizzly.CompletionHandler<org.glassfish.grizzly.WriteResult>cancelled in class BaseResponseCompletionHandlerpublic void failed(Throwable throwable)
failed in interface org.glassfish.grizzly.CompletionHandler<org.glassfish.grizzly.WriteResult>failed in class BaseResponseCompletionHandlerthrowable - the causeprotected ClassLoader getCtxClassLoader()
getCtxClassLoader in class BaseResponseCompletionHandlerCopyright © 2003–2019 MuleSoft, Inc.. All rights reserved.