|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectHttpServletResponseWrapper
com.mf.roundhouse.portal.util.PortletResponseImpl
com.mf.roundhouse.portal.util.RenderResponseImpl
| Field Summary |
| Fields inherited from class com.mf.roundhouse.portal.util.PortletResponseImpl |
_currentPage, _portletRequest, _properties, _windowInstance |
| Fields inherited from interface javax.portlet.RenderResponse |
EXPIRATION_CACHE |
| Constructor Summary | |
RenderResponseImpl(HttpServletResponse response,
PortletWindowInstance windowInstance,
PortletRequestImpl request,
PortalPageLayout currentPage)
|
|
| Method Summary | |
PortletURL |
createActionURL()
Creates a portlet URL targeting the portlet. |
PortletURL |
createRenderURL()
Creates a portlet URL targeting the portlet. |
java.lang.String |
getContentType()
Returns the MIME type that can be used to contribute markup to the render response. |
java.lang.String |
getNamespace()
The value returned by this method should be prefixed or appended to elements, such as JavaScript variables or function names, to ensure they are unique in the context of the portal page. |
ServletOutputStream |
getOutputStream()
|
java.io.OutputStream |
getPortletOutputStream()
Returns a OutputStream suitable for writing binary
data in the response. |
byte[] |
getRenderedBytes()
|
java.lang.String |
getTitle()
|
java.io.PrintWriter |
getWriter()
Returns a PrintWriter object that can send character text to the portal. |
void |
reset()
Clears any data that exists in the buffer as well as the properties set. |
void |
setContentType(java.lang.String type)
Sets the MIME type for the render response. |
void |
setTitle(java.lang.String title)
This method sets the title of the portlet. |
| Methods inherited from class com.mf.roundhouse.portal.util.PortletResponseImpl |
addProperty, encodeURL, getHttpResponse, setProperty |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.portlet.RenderResponse |
flushBuffer, getBufferSize, getCharacterEncoding, getLocale, isCommitted, resetBuffer, setBufferSize |
| Methods inherited from interface javax.portlet.PortletResponse |
addProperty, encodeURL, setProperty |
| Constructor Detail |
public RenderResponseImpl(HttpServletResponse response,
PortletWindowInstance windowInstance,
PortletRequestImpl request,
PortalPageLayout currentPage)
response - request - | Method Detail |
public java.lang.String getContentType()
RenderResponse
If no content type was set previously using the RenderResponse.setContentType(java.lang.String) method
this method retuns null.
getContentType in interface RenderResponsenull
if no content type is setRenderResponse.setContentType(java.lang.String)public java.lang.String getTitle()
public PortletURL createRenderURL()
RenderResponseThe returned URL can be further extended by adding portlet-specific parameters and portlet modes and window states.
The created URL will per default not contain any parameters of the current render request.
createRenderURL in interface RenderResponsepublic PortletURL createActionURL()
RenderResponseThe returned URL can be further extended by adding portlet-specific parameters and portlet modes and window states.
The created URL will per default not contain any parameters of the current render request.
createActionURL in interface RenderResponsepublic java.lang.String getNamespace()
RenderResponse
getNamespace in interface RenderResponsepublic void setTitle(java.lang.String title)
RenderResponseThe value can be a text String
setTitle in interface RenderResponsetitle - portlet title as text String or resource URIpublic void setContentType(java.lang.String type)
RenderResponseRenderResponse.getWriter() or
RenderResponse.getPortletOutputStream().
Calling setContentType after getWriter
or getOutputStream does not change the content type.
setContentType in interface RenderResponsetype - the content MIME typePortletRequest.getResponseContentTypes(),
RenderResponse.getContentType()
public java.io.PrintWriter getWriter()
throws java.io.IOException
RenderResponse
Before calling this method the content type of the
render response must be set using the RenderResponse.setContentType(java.lang.String)
method.
Either this method or RenderResponse.getPortletOutputStream() may be
called to write the body, not both.
getWriter in interface RenderResponsePrintWriter object that
can return character data to the portal
java.io.IOException - if an input or output exception occurredRenderResponse.setContentType(java.lang.String),
RenderResponse.getPortletOutputStream()public void reset()
RenderResponseIllegalStateException.
reset in interface RenderResponseRenderResponse.setBufferSize(int),
RenderResponse.getBufferSize(),
RenderResponse.flushBuffer(),
RenderResponse.isCommitted()
public java.io.OutputStream getPortletOutputStream()
throws java.io.IOException
RenderResponseOutputStream suitable for writing binary
data in the response. The portlet container does not encode the
binary data.
Before calling this method the content type of the
render response must be set using the RenderResponse.setContentType(java.lang.String)
method.
Calling flush() on the OutputStream commits the response.
Either this method or RenderResponse.getWriter() may be called to write the body, not both.
getPortletOutputStream in interface RenderResponseOutputStream for writing binary data
java.io.IOException - if an input or output exception occurredRenderResponse.setContentType(java.lang.String),
RenderResponse.getWriter()public byte[] getRenderedBytes()
public ServletOutputStream getOutputStream()
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||