|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.portlet.filter.PortletResponseWrapper javax.portlet.filter.RenderResponseWrapper
public class RenderResponseWrapper
The RenderResponseWrapper provides a convenient implementation of the RenderResponse interface that can be subclassed by developers wishing to adapt the response. This class implements the Wrapper or Decorator pattern. Methods default to calling through to the wrapped response object.
Field Summary |
---|
Fields inherited from interface javax.portlet.MimeResponse |
---|
CACHE_SCOPE, ETAG, EXPIRATION_CACHE, MARKUP_HEAD_ELEMENT, NAMESPACED_RESPONSE, PRIVATE_SCOPE, PUBLIC_SCOPE, USE_CACHED_CONTENT |
Constructor Summary | |
---|---|
javax.portlet.RenderResponse)">RenderResponseWrapper(RenderResponse response)
Creates an RenderResponse adaptor wrapping the given response object. |
Method Summary | |
---|---|
PortletURL | createActionURL()
The default behavior of this method is to call createActionURL() on the wrapped response object. |
PortletURL | createRenderURL()
The default behavior of this method is to call createRenderURL() on the wrapped response object. |
ResourceURL | createResourceURL()
The default behavior of this method is to call createResourceURL() on the wrapped response object. |
void | flushBuffer()
The default behavior of this method is to call flushBuffer() on the wrapped response object. |
int | getBufferSize()
The default behavior of this method is to call getBufferSize() on the wrapped response object. |
CacheControl | getCacheControl()
The default behavior of this method is to call getCacheControl() on the wrapped response object. |
java.lang.String | getCharacterEncoding()
The default behavior of this method is to call getCharacterEncoding() on the wrapped response object. |
java.lang.String | getContentType()
The default behavior of this method is to call getContentType() on the wrapped response object. |
java.util.Locale | getLocale()
The default behavior of this method is to call getLocale() on the wrapped response object. |
java.io.OutputStream | getPortletOutputStream()
The default behavior of this method is to call getPortletOutputStream() on the wrapped response object. |
RenderResponse | getResponse()
Return the wrapped response object. |
java.io.PrintWriter | getWriter()
The default behavior of this method is to call getWriter() on the wrapped response object. |
boolean | isCommitted()
The default behavior of this method is to call isCommitted() on the wrapped response object. |
void | reset()
The default behavior of this method is to call reset() on the wrapped response object. |
void | resetBuffer()
The default behavior of this method is to call resetBuffer() on the wrapped response object. |
void | setBufferSize(int size)
The default behavior of this method is to call setBufferSize(size) on the wrapped response object. |
void | setContentType(java.lang.String type)
The default behavior of this method is to call setContentType(type) on the wrapped response object. |
void | setNextPossiblePortletModes(java.util.Collection<PortletMode> portletModes)
The default behavior of this method is to call setNextPossiblePortletModes() on the wrapped response object. |
void | javax.portlet.RenderResponse)">setResponse(RenderResponse response)
Sets the response object being wrapped. |
void | setTitle(java.lang.String title)
The default behavior of this method is to call setTitle(title) on the wrapped response object. |
Methods inherited from class javax.portlet.filter.PortletResponseWrapper |
---|
addProperty, addProperty, addProperty, createElement, encodeURL, getNamespace, setProperty, javax.portlet.PortletResponse)">setResponse |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.portlet.PortletResponse |
---|
addProperty, addProperty, addProperty, createElement, encodeURL, getNamespace, setProperty |
Constructor Detail |
---|
public RenderResponseWrapper(RenderResponse response)
Method Detail |
---|
public void flushBuffer() throws java.io.IOException
public int getBufferSize()
public java.lang.String getCharacterEncoding()
public java.lang.String getContentType()
public java.util.Locale getLocale()
public java.io.OutputStream getPortletOutputStream() throws java.io.IOException
public java.io.PrintWriter getWriter() throws java.io.IOException
public boolean isCommitted()
public void reset()
public void resetBuffer()
public void setBufferSize(int size)
public void setContentType(java.lang.String type)
public void setTitle(java.lang.String title)
public CacheControl getCacheControl()
public void setNextPossiblePortletModes(java.util.Collection<PortletMode> portletModes)
public RenderResponse getResponse()
public void setResponse(RenderResponse response)
public PortletURL createActionURL() throws java.lang.IllegalStateException
public PortletURL createRenderURL() throws java.lang.IllegalStateException
public ResourceURL createResourceURL() throws java.lang.IllegalStateException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |