Class MimeResponseImpl
- java.lang.Object
-
- org.gatein.pc.portlet.impl.jsr168.api.PortletResponseImpl
-
- org.gatein.pc.portlet.impl.jsr168.api.MimeResponseImpl
-
- All Implemented Interfaces:
javax.portlet.MimeResponse,javax.portlet.PortletResponse
- Direct Known Subclasses:
RenderResponseImpl,ResourceResponseImpl
public abstract class MimeResponseImpl extends PortletResponseImpl implements javax.portlet.MimeResponse
- Version:
- $Revision: 630 $
- Author:
- Julien Viet
-
-
Field Summary
Fields Modifier and Type Field Description protected intbufferSizeNot really used but we need it to memorize what the client set optionally.protected CacheControlImplcacheControlThe cache control.-
Fields inherited from class org.gatein.pc.portlet.impl.jsr168.api.PortletResponseImpl
invocation, preq
-
-
Constructor Summary
Constructors Constructor Description MimeResponseImpl(org.gatein.pc.api.invocation.PortletInvocation invocation, PortletRequestImpl preq)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddProperty(String key, String value)javax.portlet.PortletURLcreateActionURL()javax.portlet.PortletURLcreateRenderURL()javax.portlet.ResourceURLcreateResourceURL()protected abstract org.gatein.pc.api.invocation.response.ContentResponsecreateResponse(org.gatein.pc.api.invocation.response.ResponseProperties props, Map<String,Object> attrs, String contentType, byte[] bytes, org.gatein.pc.api.cache.CacheControl cacheControl)protected abstract org.gatein.pc.api.invocation.response.ContentResponsecreateResponse(org.gatein.pc.api.invocation.response.ResponseProperties props, Map<String,Object> attrs, String contentType, String chars, org.gatein.pc.api.cache.CacheControl cacheControl)protected abstract org.gatein.pc.api.invocation.response.ContentResponsecreateResponse(org.gatein.pc.api.invocation.response.ResponseProperties props, Map<String,Object> attrs, String contentType, org.gatein.pc.api.cache.CacheControl cacheControl)voidflushBuffer()intgetBufferSize()javax.portlet.CacheControlgetCacheControl()StringgetContentType()LocalegetLocale()OutputStreamgetPortletOutputStream()org.gatein.pc.api.invocation.response.PortletInvocationResponsegetResponse()PrintWritergetWriter()booleanisCommitted()voidreset()voidresetBuffer()voidsetBufferSize(int bufferSize)voidsetContentType(String contentType)voidsetProperty(String key, String value)-
Methods inherited from class org.gatein.pc.portlet.impl.jsr168.api.PortletResponseImpl
addProperty, addProperty, createElement, encodeURL, getNamespace, getProperties, getProperties, getRealResponse
-
-
-
-
Field Detail
-
bufferSize
protected int bufferSize
Not really used but we need it to memorize what the client set optionally.
-
cacheControl
protected CacheControlImpl cacheControl
The cache control.
-
-
Constructor Detail
-
MimeResponseImpl
public MimeResponseImpl(org.gatein.pc.api.invocation.PortletInvocation invocation, PortletRequestImpl preq)
-
-
Method Detail
-
createResponse
protected abstract org.gatein.pc.api.invocation.response.ContentResponse createResponse(org.gatein.pc.api.invocation.response.ResponseProperties props, Map<String,Object> attrs, String contentType, byte[] bytes, org.gatein.pc.api.cache.CacheControl cacheControl)
-
createResponse
protected abstract org.gatein.pc.api.invocation.response.ContentResponse createResponse(org.gatein.pc.api.invocation.response.ResponseProperties props, Map<String,Object> attrs, String contentType, String chars, org.gatein.pc.api.cache.CacheControl cacheControl)
-
createResponse
protected abstract org.gatein.pc.api.invocation.response.ContentResponse createResponse(org.gatein.pc.api.invocation.response.ResponseProperties props, Map<String,Object> attrs, String contentType, org.gatein.pc.api.cache.CacheControl cacheControl)
-
getResponse
public org.gatein.pc.api.invocation.response.PortletInvocationResponse getResponse()
- Specified by:
getResponsein classPortletResponseImpl
-
getContentType
public String getContentType()
- Specified by:
getContentTypein interfacejavax.portlet.MimeResponse
-
setContentType
public void setContentType(String contentType)
- Specified by:
setContentTypein interfacejavax.portlet.MimeResponse
-
getWriter
public PrintWriter getWriter() throws IOException
- Specified by:
getWriterin interfacejavax.portlet.MimeResponse- Throws:
IOException
-
getPortletOutputStream
public OutputStream getPortletOutputStream() throws IOException
- Specified by:
getPortletOutputStreamin interfacejavax.portlet.MimeResponse- Throws:
IOException
-
createRenderURL
public javax.portlet.PortletURL createRenderURL()
- Specified by:
createRenderURLin interfacejavax.portlet.MimeResponse
-
createActionURL
public javax.portlet.PortletURL createActionURL()
- Specified by:
createActionURLin interfacejavax.portlet.MimeResponse
-
getLocale
public Locale getLocale()
- Specified by:
getLocalein interfacejavax.portlet.MimeResponse
-
setBufferSize
public void setBufferSize(int bufferSize)
- Specified by:
setBufferSizein interfacejavax.portlet.MimeResponse
-
getBufferSize
public int getBufferSize()
- Specified by:
getBufferSizein interfacejavax.portlet.MimeResponse
-
flushBuffer
public void flushBuffer() throws IOException- Specified by:
flushBufferin interfacejavax.portlet.MimeResponse- Throws:
IOException
-
resetBuffer
public void resetBuffer()
- Specified by:
resetBufferin interfacejavax.portlet.MimeResponse
-
reset
public void reset()
- Specified by:
resetin interfacejavax.portlet.MimeResponse
-
isCommitted
public boolean isCommitted()
- Specified by:
isCommittedin interfacejavax.portlet.MimeResponse
-
createResourceURL
public javax.portlet.ResourceURL createResourceURL()
- Specified by:
createResourceURLin interfacejavax.portlet.MimeResponse
-
addProperty
public void addProperty(String key, String value) throws IllegalArgumentException
- Specified by:
addPropertyin interfacejavax.portlet.PortletResponse- Overrides:
addPropertyin classPortletResponseImpl- Throws:
IllegalArgumentException
-
setProperty
public void setProperty(String key, String value) throws IllegalArgumentException
- Specified by:
setPropertyin interfacejavax.portlet.PortletResponse- Overrides:
setPropertyin classPortletResponseImpl- Throws:
IllegalArgumentException
-
getCacheControl
public javax.portlet.CacheControl getCacheControl()
- Specified by:
getCacheControlin interfacejavax.portlet.MimeResponse
-
-