|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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()
Response
If 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 Response
getCharacterEncoding
in class PortletResponse
String
specifying the
name of the charset, for
example, ISO-8859-1
public Locale getLocale()
Response
getLocale
in interface Response
getLocale
in class PortletResponse
Response.setLocale(Locale)
public void addHeader(String name, String value)
Response
addHeader
in interface Response
addHeader
in class PortletResponse
name
- the name of the headervalue
- the additional header valuePortletEnvironment.HEADER_PORTLET_TITLE
public void setHeader(String name, String value)
Response
containsHeader
method can be
used to test for the presence of a header before setting its
value.
setHeader
in interface Response
setHeader
in class PortletResponse
name
- the name of the headervalue
- the header valuePortletEnvironment.HEADER_PORTLET_TITLE
public javax.portlet.RenderResponse getRenderResponse()
public javax.portlet.PortletURL createActionURL()
public javax.portlet.PortletURL createRenderURL()
public void flushBuffer() throws IOException
IOException
public int getBufferSize()
public String getContentType()
public String getNamespace()
public OutputStream getPortletOutputStream() throws IOException
IOException
public PrintWriter getWriter() throws IOException
IOException
public 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 |