|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cocoon.environment.portlet.PortletResponse
org.apache.cocoon.environment.portlet.RenderResponse
public final class RenderResponse
Implements the Response interface for
the JSR-168 (Portlet) environment.
| Constructor Summary | |
|---|---|
protected |
RenderResponse(javax.portlet.RenderResponse response,
javax.portlet.PortletPreferences preferences)
Creates a RenderResponse based on a real RenderResponse object |
| Method Summary | |
|---|---|
void |
addHeader(String name,
String value)
Adds a response header with the given name and value. |
javax.portlet.PortletURL |
createActionURL()
|
javax.portlet.PortletURL |
createRenderURL()
|
void |
flushBuffer()
|
int |
getBufferSize()
|
String |
getCharacterEncoding()
Returns the name of the charset used for the MIME body sent in this response. |
String |
getContentType()
|
Locale |
getLocale()
Returns the locale assigned to the response. |
String |
getNamespace()
|
OutputStream |
getPortletOutputStream()
|
javax.portlet.RenderResponse |
getRenderResponse()
Type cast portletResponse to RenderResponse |
PrintWriter |
getWriter()
|
boolean |
isCommitted()
|
void |
reset()
|
void |
resetBuffer()
|
void |
setBufferSize(int size)
|
void |
setContentType(String type)
|
void |
setHeader(String name,
String value)
Sets a response header with the given name and value. |
void |
setTitle(String title)
|
| Methods inherited from class org.apache.cocoon.environment.portlet.PortletResponse |
|---|
addCookie, addDateHeader, addIntHeader, addProperty, containsHeader, createCookie, encodeURL, getPortletResponse, setDateHeader, setIntHeader, setLocale, setProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected RenderResponse(javax.portlet.RenderResponse response,
javax.portlet.PortletPreferences preferences)
| Method Detail |
|---|
public String getCharacterEncoding()
ResponseIf no charset has been assigned, it is implicitly
set to ISO-8859-1 (Latin-1).
See RFC 2047 (http://ds.internic.net/rfc/rfc2045.txt) for more information about character encoding and MIME.
getCharacterEncoding in interface ResponsegetCharacterEncoding in class PortletResponseString specifying the
name of the charset, for
example, ISO-8859-1public Locale getLocale()
Response
getLocale in interface ResponsegetLocale in class PortletResponseResponse.setLocale(Locale)
public void addHeader(String name,
String value)
Response
addHeader in interface ResponseaddHeader in class PortletResponsename - the name of the headervalue - the additional header valuePortletEnvironment.HEADER_PORTLET_TITLE
public void setHeader(String name,
String value)
ResponsecontainsHeader method can be
used to test for the presence of a header before setting its
value.
setHeader in interface ResponsesetHeader in class PortletResponsename - the name of the headervalue - the header valuePortletEnvironment.HEADER_PORTLET_TITLEpublic javax.portlet.RenderResponse getRenderResponse()
public javax.portlet.PortletURL createActionURL()
public javax.portlet.PortletURL createRenderURL()
public void flushBuffer()
throws IOException
IOExceptionpublic int getBufferSize()
public String getContentType()
public String getNamespace()
public OutputStream getPortletOutputStream()
throws IOException
IOException
public PrintWriter getWriter()
throws IOException
IOExceptionpublic boolean isCommitted()
public void reset()
public void resetBuffer()
public void setBufferSize(int size)
public void setContentType(String type)
public void setTitle(String title)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||