public abstract class ActResponse<T extends ActResponse>
extends org.osgl.http.H.Response<T>
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
charset |
protected java.lang.String |
contentType |
protected java.util.Locale |
locale |
| Modifier | Constructor and Description |
|---|---|
protected |
ActResponse() |
protected |
ActResponse(AppConfig config) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
_getContentType() |
protected void |
_setContentType(java.lang.String type) |
protected void |
afterWritingContent() |
protected void |
beforeWritingContent() |
java.lang.String |
characterEncoding() |
T |
characterEncoding(java.lang.String encoding) |
void |
commitContentType() |
boolean |
isClosed() |
protected void |
markClosed() |
void |
markReady()
Mark the framework is ready to write to the response.
|
protected T |
me() |
T |
sendError(int sc) |
T |
sendError(int sc,
java.lang.String msg) |
T |
sendRedirect(java.lang.String location) |
_impl, _setLocale, addCookie, addHeader, addHeaderIfNotAdded, commit, containsHeader, contentDisposition, contentLength, contentType, context, context, createOutputStream, current, current, etag, header, initContentType, locale, locale, outputStream, prepareDownload, printWriter, sendError, status, status, writeBinary, writeContent, writeContent, writeHtml, writeJSON, writer, writerCreated, writeTextprotected java.lang.String charset
protected java.util.Locale locale
protected java.lang.String contentType
protected ActResponse()
protected ActResponse(AppConfig config)
public java.lang.String characterEncoding()
characterEncoding in class org.osgl.http.H.Response<T extends ActResponse>public T characterEncoding(java.lang.String encoding)
characterEncoding in class org.osgl.http.H.Response<T extends ActResponse>public T sendError(int sc, java.lang.String msg)
sendError in class org.osgl.http.H.Response<T extends ActResponse>public T sendError(int sc)
sendError in class org.osgl.http.H.Response<T extends ActResponse>public T sendRedirect(java.lang.String location)
sendRedirect in class org.osgl.http.H.Response<T extends ActResponse>public void markReady()
Mark the framework is ready to write to the response.
public void commitContentType()
public boolean isClosed()
protected void markClosed()
protected void beforeWritingContent()
protected void afterWritingContent()
protected void _setContentType(java.lang.String type)
_setContentType in class org.osgl.http.H.Response<T extends ActResponse>protected java.lang.String _getContentType()
protected final T me()
me in class org.osgl.http.H.Response<T extends ActResponse>Copyright © 2014–2017 ActFramework. All rights reserved.