public class TextFormat<T extends TextFormat<T>> extends BuildAndRenderableResponse<T> implements Renderable
| Modifier | Constructor and Description |
|---|---|
protected |
TextFormat() |
protected |
TextFormat(String input) |
protected |
TextFormat(String input,
String contentType,
String charset) |
| Modifier and Type | Method and Description |
|---|---|
protected ResponseEntity |
extractResponseEntity(RequestContext request,
ResponseContext response) |
Charset |
getCharset() |
String |
getCharsetAsText() |
protected String |
getResponseText() |
protected void |
mergeHeaders(RequestContext request,
ResponseContext response,
Map<String,String> headers,
ResponseEntity entity) |
protected String |
resolveContentType() |
String |
toString() |
T |
typeAs(String contentType) |
static <T extends TextFormat> |
with(String responseText) |
T |
withCharset(String charset) |
T |
withoutCharset() |
entity, header, header, status, statusaddHeader, addHeaders, createResponse, getHeaders, getResponseEntity, getStatus, putEntityToResponse, render, setResponseEntity, setStatus, setStatus, updateStatusToResponseclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitrenderprotected TextFormat()
protected TextFormat(String input)
public static <T extends TextFormat> T with(String responseText)
public T withoutCharset()
protected ResponseEntity extractResponseEntity(RequestContext request, ResponseContext response)
extractResponseEntity in class DefaultRenderableprotected void mergeHeaders(RequestContext request, ResponseContext response, Map<String,String> headers, ResponseEntity entity)
mergeHeaders in class DefaultRenderableprotected String getResponseText()
public Charset getCharset()
public final String getCharsetAsText()
protected String resolveContentType()
Copyright © 2011-2017 Analog Web Framework Development Team. All Rights Reserved.