public abstract class ERXRestWriter extends Object implements IERXRestWriter
Modifier and Type | Field and Description |
---|---|
protected String |
contentEncoding |
protected static String |
ContentTypeHeaderKey
The HTTP header key for the content type.
|
protected static String |
TheDefaultResponseEncoding
The default character encoding for the REST responses.
|
Constructor and Description |
---|
ERXRestWriter() |
Modifier and Type | Method and Description |
---|---|
void |
appendHeadersToResponse(ERXRestRequestNode node,
IERXRestResponse response,
ERXRestContext context)
Called at the end of a request to produce the output to the user.
|
String |
contentEncoding()
The character encoding to use for this REST response.
|
abstract String |
contentType()
The corresponding HTTP header content type for this REST response.
|
protected String |
contentTypeHeaderValue()
The value to be used for the content type HTTP header.
|
static String |
defaultEncoding()
The default character encoding to use for REST responses.
|
void |
setContentEncoding(String encoding)
Lets you specify the content's character encoding to be used for this REST response.
|
static void |
setDefaultEncoding(String encoding)
Lets you specify the default character encoding to be used for REST responses.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
appendToResponse
protected static final String ContentTypeHeaderKey
protected static String TheDefaultResponseEncoding
protected String contentEncoding
public void appendHeadersToResponse(ERXRestRequestNode node, IERXRestResponse response, ERXRestContext context)
IERXRestWriter
appendHeadersToResponse
in interface IERXRestWriter
node
- the node to renderresponse
- the response to write intocontext
- the REST contextpublic static String defaultEncoding()
public static void setDefaultEncoding(String encoding)
encoding
- the default character encodingpublic String contentEncoding()
public void setContentEncoding(String encoding)
encoding
- the content's character encodingpublic abstract String contentType()
protected String contentTypeHeaderValue()
Copyright © 2002 – 2024 Project Wonder.