public class BinaryRenderer extends AbstractResponseRenderer
| Constructor and Description |
|---|
BinaryRenderer(String contentType)
Constructs a binary-like HTTP response renderer with the specified content type.
|
| Modifier and Type | Method and Description |
|---|---|
void |
render(RequestContext context)
Renders with the specified HTTP request context.
|
void |
setData(byte[] data)
Sets the data with the specified data.
|
getRenderDataModel, postRender, preRender, setRendererIdpublic BinaryRenderer(String contentType)
contentType - the specified content typepublic void setData(byte[] data)
data - the specified datapublic void render(RequestContext context)
ResponseRendererrender in interface ResponseRendererrender in class AbstractResponseRenderercontext - the specified HTTP request contextCopyright © 2009–2019 B3log. All rights reserved.