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,
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(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.http.H.Format |
format() |
protected boolean |
isOutputEncoding() |
protected void |
setContentType(org.osgl.http.H.Response resp) |
void |
setOutputEncoding(boolean outputEncoding) |
applyAfterCommitHandler, applyBeforeCommitHandler, applyMessage, applyStatus, clearThreadLocals, payload, status, status, statusCodedoFillInStackTrace, fillInStackTraceaddSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringprotected RenderContent(org.osgl.http.H.Format format)
trueformat - the content typeprotected RenderContent(String content, org.osgl.http.H.Format format)
truecontent - the content stringformat - the content typeprotected RenderContent(org.osgl.http.H.Status status,
String content,
org.osgl.http.H.Format format)
truestatus - the response statuscontent - the content stringformat - the content typeprotected RenderContent(String content, org.osgl.http.H.Format format, boolean outputEncoding)
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.http.H.Status status,
String content,
org.osgl.http.H.Format format,
boolean outputEncoding)
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 void setContentType(org.osgl.http.H.Response resp)
protected boolean isOutputEncoding()
public void setOutputEncoding(boolean outputEncoding)
public org.osgl.http.H.Format format()
public String content()
Copyright © 2017. All Rights Reserved.