public class ResponseCompletionHandler extends BaseResponseCompletionHandler
CompletionHandler, responsible for asynchronous response writinghasContentLength| Constructor and Description |
|---|
ResponseCompletionHandler(org.glassfish.grizzly.filterchain.FilterChainContext ctx,
org.glassfish.grizzly.http.HttpRequestPacket httpRequestPacket,
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 |
|---|---|
org.glassfish.grizzly.http.HttpContent |
buildResponseContent(org.mule.runtime.http.api.domain.message.response.HttpResponse httpResponse) |
void |
cancelled()
The method will be called, when http message transferring was canceled
|
void |
completed(org.glassfish.grizzly.WriteResult result)
Method gets called, when the message part was successfully sent.
|
void |
failed(Throwable throwable)
The method will be called, if http message transferring was failed.
|
void |
sendResponse()
Send the next part of the response
|
void |
start()
Start the sending the response asynchronously
|
buildHttpResponsePacketpublic ResponseCompletionHandler(org.glassfish.grizzly.filterchain.FilterChainContext ctx,
org.glassfish.grizzly.http.HttpRequestPacket httpRequestPacket,
org.mule.runtime.http.api.domain.message.response.HttpResponse httpResponse,
org.mule.runtime.http.api.server.async.ResponseStatusCallback responseStatusCallback)
public org.glassfish.grizzly.http.HttpContent buildResponseContent(org.mule.runtime.http.api.domain.message.response.HttpResponse httpResponse)
public void start()
throws IOException
IOExceptionpublic void sendResponse()
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 causeCopyright © 2003–2018 MuleSoft, Inc.. All rights reserved.