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
FieldsModifier and TypeFieldDescriptionprotected intNot really used but we need it to memorize what the client set optionally.protected CacheControlImplThe cache control.Fields inherited from class org.gatein.pc.portlet.impl.jsr168.api.PortletResponseImpl
invocation, preqFields 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
ConstructorsConstructorDescriptionMimeResponseImpl(org.gatein.pc.api.invocation.PortletInvocation invocation, PortletRequestImpl preq) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProperty(String key, String value) javax.portlet.PortletURLjavax.portlet.PortletURLjavax.portlet.ResourceURLprotected 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) voidintjavax.portlet.CacheControlorg.gatein.pc.api.invocation.response.PortletInvocationResponsebooleanvoidreset()voidvoidsetBufferSize(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, getRealResponseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.portlet.MimeResponse
getCharacterEncodingMethods inherited from interface javax.portlet.PortletResponse
addProperty, addProperty, createElement, encodeURL, getNamespace
-
Field Details
-
bufferSize
protected int bufferSizeNot really used but we need it to memorize what the client set optionally. -
cacheControl
The cache control.
-
-
Constructor Details
-
MimeResponseImpl
public MimeResponseImpl(org.gatein.pc.api.invocation.PortletInvocation invocation, PortletRequestImpl preq)
-
-
Method Details
-
createResponse
-
createResponse
-
createResponse
-
getResponse
public org.gatein.pc.api.invocation.response.PortletInvocationResponse getResponse()- Specified by:
getResponsein classPortletResponseImpl
-
getContentType
- Specified by:
getContentTypein interfacejavax.portlet.MimeResponse
-
setContentType
- Specified by:
setContentTypein interfacejavax.portlet.MimeResponse
-
getWriter
- Specified by:
getWriterin interfacejavax.portlet.MimeResponse- Throws:
IOException
-
getPortletOutputStream
- 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
- 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
- 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
- Specified by:
addPropertyin interfacejavax.portlet.PortletResponse- Overrides:
addPropertyin classPortletResponseImpl- Throws:
IllegalArgumentException
-
setProperty
- Specified by:
setPropertyin interfacejavax.portlet.PortletResponse- Overrides:
setPropertyin classPortletResponseImpl- Throws:
IllegalArgumentException
-
getCacheControl
public javax.portlet.CacheControl getCacheControl()- Specified by:
getCacheControlin interfacejavax.portlet.MimeResponse
-