public class TextResponseRenderer extends AbstractResponseRenderer
| Constructor and Description |
|---|
TextResponseRenderer(String contentType)
Constructs a text-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 |
setContent(String content)
Sets the content with the specified content.
|
getRenderDataModel, postRender, preRender, setRendererIdpublic TextResponseRenderer(String contentType)
contentType - the specified content typepublic void setContent(String content)
content - the specified contentpublic void render(RequestContext context)
ResponseRendererrender in interface ResponseRendererrender in class AbstractResponseRenderercontext - the specified HTTP request contextCopyright © 2009–2019 B3log. All rights reserved.