public abstract class MimeResponseImpl extends PortletResponseImpl implements javax.portlet.MimeResponse
| Modifier and Type | Field and Description |
|---|---|
protected int |
bufferSize
Not really used but we need it to memorize what the client set optionally.
|
protected CacheControlImpl |
cacheControl
The cache control.
|
invocation, preq| Constructor and Description |
|---|
MimeResponseImpl(PortletInvocation invocation,
PortletRequestImpl preq) |
addProperty, addProperty, createElement, encodeURL, getNamespace, getProperties, getProperties, getRealResponseprotected int bufferSize
protected CacheControlImpl cacheControl
public MimeResponseImpl(PortletInvocation invocation, PortletRequestImpl preq)
protected abstract ContentResponse createResponse(ResponseProperties props, Map<String,Object> attrs, String contentType, byte[] bytes, CacheControl cacheControl)
protected abstract ContentResponse createResponse(ResponseProperties props, Map<String,Object> attrs, String contentType, String chars, CacheControl cacheControl)
protected abstract ContentResponse createResponse(ResponseProperties props, Map<String,Object> attrs, String contentType, CacheControl cacheControl)
public PortletInvocationResponse getResponse()
getResponse in class PortletResponseImplpublic String getContentType()
getContentType in interface javax.portlet.MimeResponsepublic void setContentType(String contentType)
setContentType in interface javax.portlet.MimeResponsepublic PrintWriter getWriter() throws IOException
getWriter in interface javax.portlet.MimeResponseIOExceptionpublic OutputStream getPortletOutputStream() throws IOException
getPortletOutputStream in interface javax.portlet.MimeResponseIOExceptionpublic javax.portlet.PortletURL createRenderURL()
createRenderURL in interface javax.portlet.MimeResponsepublic javax.portlet.PortletURL createActionURL()
createActionURL in interface javax.portlet.MimeResponsepublic Locale getLocale()
getLocale in interface javax.portlet.MimeResponsepublic void setBufferSize(int bufferSize)
setBufferSize in interface javax.portlet.MimeResponsepublic int getBufferSize()
getBufferSize in interface javax.portlet.MimeResponsepublic void flushBuffer()
throws IOException
flushBuffer in interface javax.portlet.MimeResponseIOExceptionpublic void resetBuffer()
resetBuffer in interface javax.portlet.MimeResponsepublic void reset()
reset in interface javax.portlet.MimeResponsepublic boolean isCommitted()
isCommitted in interface javax.portlet.MimeResponsepublic javax.portlet.ResourceURL createResourceURL()
createResourceURL in interface javax.portlet.MimeResponsepublic void addProperty(String key, String value) throws IllegalArgumentException
addProperty in interface javax.portlet.PortletResponseaddProperty in class PortletResponseImplIllegalArgumentExceptionpublic void setProperty(String key, String value) throws IllegalArgumentException
setProperty in interface javax.portlet.PortletResponsesetProperty in class PortletResponseImplIllegalArgumentExceptionpublic javax.portlet.CacheControl getCacheControl()
getCacheControl in interface javax.portlet.MimeResponseCopyright © 2003-2019 GateIn. All Rights Reserved.