public abstract class RenderContent extends Result
Result.Payload| Modifier | Constructor and Description |
|---|---|
protected |
RenderContent(org.osgl.http.H.Format format)
Create a RenderContent object with blank content, format and the outputEncoding set to
true |
protected |
RenderContent(org.osgl.http.H.Status status,
org.osgl.Lang.Func0<String> contentProducer,
org.osgl.http.H.Format format)
Create a RenderContent object with content writer, format and the outputEncoding set to
true |
protected |
RenderContent(org.osgl.http.H.Status status,
org.osgl.Lang.Func0<String> producer,
org.osgl.http.H.Format format,
boolean outputEncoding)
Create a RenderContent object with content writer, format and outputEncoding specified.
|
protected |
RenderContent(org.osgl.http.H.Status status,
org.osgl.Lang.Visitor<Writer> contentWriter,
org.osgl.http.H.Format format)
Create a RenderContent object with content writer, format and the outputEncoding set to
true |
protected |
RenderContent(org.osgl.http.H.Status status,
org.osgl.Lang.Visitor<Writer> contentWriter,
org.osgl.http.H.Format format,
boolean outputEncoding)
Create a RenderContent object with content writer, format and outputEncoding specified.
|
protected |
RenderContent(org.osgl.http.H.Status status,
String content,
org.osgl.http.H.Format format)
Create a RenderContent object with content, format and the outputEncoding set to
true |
protected |
RenderContent(org.osgl.http.H.Status status,
String content,
org.osgl.http.H.Format format,
boolean outputEncoding)
Create a RenderContent object with content, format and outputEncoding specified.
|
protected |
RenderContent(org.osgl.Lang.Visitor<Writer> contentWriter,
org.osgl.http.H.Format format)
Create a RenderContent object with content writer, format and the outputEncoding set to
true |
protected |
RenderContent(org.osgl.Lang.Visitor<Writer> contentWriter,
org.osgl.http.H.Format format,
boolean outputEncoding)
Create a RenderContent object with content writer, format and outputEncoding specified.
|
protected |
RenderContent(String content,
org.osgl.http.H.Format format)
Create a RenderContent object with content, format and the outputEncoding set to
true |
protected |
RenderContent(String content,
org.osgl.http.H.Format format,
boolean outputEncoding)
Create a RenderContent object with content, format and outputEncoding specified.
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(org.osgl.http.H.Request req,
org.osgl.http.H.Response resp) |
String |
content() |
org.osgl.Lang.Visitor<Writer> |
contentWriter() |
org.osgl.http.H.Format |
format() |
boolean |
isOutputEncoding() |
protected void |
setContentType(org.osgl.http.H.Response resp) |
RenderContent |
setOutputEncoding(boolean outputEncoding) |
addCookie, addHeader, applyAfterCommitHandler, applyBeforeCommitHandler, applyCookies, applyHeaders, applyMessage, applyStatus, clearThreadLocals, header, payload, status, status, statusCode, timestamp, touchPayloaddoFillInStackTrace, fillInStackTraceaddSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringprotected RenderContent(org.osgl.http.H.Format format)
Create a RenderContent object with blank content, format and the outputEncoding set to true
format - the content typeprotected RenderContent(String content, org.osgl.http.H.Format format)
Create a RenderContent object with content, format and the outputEncoding set to true
content - the content stringformat - the content typeprotected RenderContent(org.osgl.Lang.Visitor<Writer> contentWriter, org.osgl.http.H.Format format)
Create a RenderContent object with content writer, format and the outputEncoding set to true
contentWriter - the content writerformat - the content typeprotected RenderContent(org.osgl.http.H.Status status,
String content,
org.osgl.http.H.Format format)
Create a RenderContent object with content, format and the outputEncoding set to true
status - the response statuscontent - the content stringformat - the content typeprotected RenderContent(org.osgl.http.H.Status status,
org.osgl.Lang.Visitor<Writer> contentWriter,
org.osgl.http.H.Format format)
Create a RenderContent object with content writer, format and the outputEncoding set to true
status - the response statuscontentWriter - the content writerformat - the content typeprotected RenderContent(org.osgl.http.H.Status status,
org.osgl.Lang.Func0<String> contentProducer,
org.osgl.http.H.Format format)
Create a RenderContent object with content writer, format and the outputEncoding set to true
status - the response statuscontentProducer - the content message producerformat - the content typeprotected RenderContent(String content, org.osgl.http.H.Format format, boolean outputEncoding)
Create a RenderContent object with content, format and outputEncoding specified.
If outputEncoding is set to true then when applying the
Result, it will set content type to "content-type; charset=encoding"
style
content - the content stringformat - the content typeoutputEncoding - output encodingprotected RenderContent(org.osgl.Lang.Visitor<Writer> contentWriter, org.osgl.http.H.Format format, boolean outputEncoding)
Create a RenderContent object with content writer, format and outputEncoding specified.
If outputEncoding is set to true then when applying the
Result, it will set content type to "content-type; charset=encoding"
style
contentWriter - the content writerformat - the content typeoutputEncoding - output encodingprotected RenderContent(org.osgl.http.H.Status status,
String content,
org.osgl.http.H.Format format,
boolean outputEncoding)
Create a RenderContent object with content, format and outputEncoding specified.
If outputEncoding is set to true then when applying the
Result, it will set content type to "content-type; charset=encoding"
style
status - HTTP response statuscontent - the content stringformat - the content typeoutputEncoding - output encodingprotected RenderContent(org.osgl.http.H.Status status,
org.osgl.Lang.Visitor<Writer> contentWriter,
org.osgl.http.H.Format format,
boolean outputEncoding)
Create a RenderContent object with content writer, format and outputEncoding specified.
If outputEncoding is set to true then when applying the
Result, it will set content type to "content-type; charset=encoding"
style
status - HTTP response statuscontentWriter - the content writerformat - the content typeoutputEncoding - output encodingprotected RenderContent(org.osgl.http.H.Status status,
org.osgl.Lang.Func0<String> producer,
org.osgl.http.H.Format format,
boolean outputEncoding)
Create a RenderContent object with content writer, format and outputEncoding specified.
If outputEncoding is set to true then when applying the
Result, it will set content type to "content-type; charset=encoding"
style
status - HTTP response statusproducer - the content producerformat - the content typeoutputEncoding - output encodingprotected void setContentType(org.osgl.http.H.Response resp)
public boolean isOutputEncoding()
public RenderContent setOutputEncoding(boolean outputEncoding)
public org.osgl.http.H.Format format()
public String content()
public org.osgl.Lang.Visitor<Writer> contentWriter()
Copyright © 2014–2018 OSGL (Open Source General Library). All rights reserved.