public class ProcessingResponse extends AsyncHttpResponse
DEFAULT_CHARACTER_ENCODING, DEFAULT_MIME_TYPE
Constructor and Description |
---|
ProcessingResponse(int status,
com.yahoo.processing.Request processingRequest,
com.yahoo.processing.Response processingResponse,
Renderer renderer,
Executor renderingExecutor,
com.yahoo.processing.execution.Execution execution) |
Modifier and Type | Method and Description |
---|---|
void |
complete()
Complete creation of this response.
|
String |
getCharacterEncoding()
The name of the encoding for the response contents, if applicable.
|
String |
getContentType()
The MIME type of the response contents or null.
|
Iterable<com.yahoo.processing.execution.Execution.Trace.LogValue> |
getLogValues() |
void |
render(OutputStream stream,
com.yahoo.jdisc.handler.ContentChannel channel,
com.yahoo.jdisc.handler.CompletionHandler completionHandler)
Render to output asynchronously.
|
render
getJdiscResponse, getStatus, headers, populateAccessLogEntry, setStatus
public void render(OutputStream stream, com.yahoo.jdisc.handler.ContentChannel channel, com.yahoo.jdisc.handler.CompletionHandler completionHandler) throws IOException
AsyncHttpResponse
render
in class AsyncHttpResponse
stream
- the stream to which content should be renderedchannel
- the channel which must be closed on completioncompletionHandler
- the completion handler to submit when closing the channel, may
be nullIOException
public String getContentType()
HttpResponse
getContentType
in class HttpResponse
HttpResponse.DEFAULT_MIME_TYPE
public String getCharacterEncoding()
HttpResponse
getCharacterEncoding
in class HttpResponse
HttpResponse.DEFAULT_CHARACTER_ENCODING
public void complete()
HttpResponse
complete
in class HttpResponse
public Iterable<com.yahoo.processing.execution.Execution.Trace.LogValue> getLogValues()
getLogValues
in class HttpResponse
Copyright © 2018. All rights reserved.