|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.ServletResponseWrapper
javax.servlet.http.HttpServletResponseWrapper
org.apache.pluto.internal.impl.PortletResponseImpl
org.apache.pluto.internal.impl.MimeResponseImpl
org.apache.pluto.internal.impl.RenderResponseImpl
public class RenderResponseImpl
Implementation of the javax.portlet.RenderResponse interface.
| Field Summary |
|---|
| Fields inherited from interface javax.servlet.http.HttpServletResponse |
|---|
SC_ACCEPTED, SC_BAD_GATEWAY, SC_BAD_REQUEST, SC_CONFLICT, SC_CONTINUE, SC_CREATED, SC_EXPECTATION_FAILED, SC_FORBIDDEN, SC_FOUND, SC_GATEWAY_TIMEOUT, SC_GONE, SC_HTTP_VERSION_NOT_SUPPORTED, SC_INTERNAL_SERVER_ERROR, SC_LENGTH_REQUIRED, SC_METHOD_NOT_ALLOWED, SC_MOVED_PERMANENTLY, SC_MOVED_TEMPORARILY, SC_MULTIPLE_CHOICES, SC_NO_CONTENT, SC_NON_AUTHORITATIVE_INFORMATION, SC_NOT_ACCEPTABLE, SC_NOT_FOUND, SC_NOT_IMPLEMENTED, SC_NOT_MODIFIED, SC_OK, SC_PARTIAL_CONTENT, SC_PAYMENT_REQUIRED, SC_PRECONDITION_FAILED, SC_PROXY_AUTHENTICATION_REQUIRED, SC_REQUEST_ENTITY_TOO_LARGE, SC_REQUEST_TIMEOUT, SC_REQUEST_URI_TOO_LONG, SC_REQUESTED_RANGE_NOT_SATISFIABLE, SC_RESET_CONTENT, SC_SEE_OTHER, SC_SERVICE_UNAVAILABLE, SC_SWITCHING_PROTOCOLS, SC_TEMPORARY_REDIRECT, SC_UNAUTHORIZED, SC_UNSUPPORTED_MEDIA_TYPE, SC_USE_PROXY |
| Constructor Summary | |
|---|---|
RenderResponseImpl(PortletContainer container,
InternalPortletWindow internalPortletWindow,
javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse)
|
|
| Method Summary | |
|---|---|
int |
getBufferSize()
Returns the actual buffer size used for the response. |
java.lang.String |
getContentType()
Returns the MIME type that can be used to contribute markup to the render response. |
void |
setCharacterEncoding(java.lang.String arg0)
|
void |
setContentLength(int arg0)
|
void |
setContentType(java.lang.String contentType)
Sets the MIME type for the render response. |
void |
setLocale(java.util.Locale arg0)
|
void |
setNextPossiblePortletModes(java.util.Collection<PortletMode> portletModes)
This method allows the portlet to tell the portal the next possible portlet modes that the make sense from the portlet point of view. |
void |
setTitle(java.lang.String title)
This method sets the title of the portlet. |
| Methods inherited from class org.apache.pluto.internal.impl.MimeResponseImpl |
|---|
addDateHeader, addHeader, addIntHeader, flushBuffer, getCacheControl, getCharacterEncoding, getLocale, getOutputStream, getPortletOutputStream, getWriter, isCommitted, isValidContentType, reset, resetBuffer, sendRedirect, setBufferSize, setDateHeader, setHeader, setIntHeader, setStatus, setStatus |
| Methods inherited from class org.apache.pluto.internal.impl.PortletResponseImpl |
|---|
addCookie, addProperty, addProperty, addProperty, addProperty, containsHeader, createActionURL, createElement, createRenderURL, createResourceURL, createResourceURL, encodeRedirectUrl, encodeRedirectURL, encodeUrl, encodeURL, getContainer, getHttpServletRequest, getHttpServletResponse, getInternalPortletWindow, getNamespace, isForwarded, isIncluded, sendError, sendError, setForwarded, setIncluded, setProperty |
| Methods inherited from class javax.servlet.ServletResponseWrapper |
|---|
getResponse, setResponse |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.pluto.internal.InternalPortletResponse |
|---|
getInternalPortletWindow, isForwarded, isIncluded, setForwarded, setIncluded |
| Constructor Detail |
|---|
public RenderResponseImpl(PortletContainer container,
InternalPortletWindow internalPortletWindow,
javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse)
| Method Detail |
|---|
public 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 setNextPossiblePortletModes(java.util.Collection<PortletMode> portletModes)
RenderResponseIf set, the portal should honor these enumeration of portlet modes and only provide the end user with choices to the provided portlet modes or a subset of these modes based on access control considerations.
If the portlet does not set any next possible portlet modes the default is that all portlet modes that the portlet has defined supporting in the portlet deployment descriptor are meaningful new portlet modes.
setNextPossiblePortletModes in interface RenderResponseportletModes - Enumeration of PortletMode objects with the
next possible portlet modes that the make sense from the
portlet point of view, must not be null or an
empty enumeration.public void setCharacterEncoding(java.lang.String arg0)
setCharacterEncoding in interface javax.servlet.ServletResponsesetCharacterEncoding in class javax.servlet.ServletResponseWrapperpublic void setContentLength(int arg0)
setContentLength in interface javax.servlet.ServletResponsesetContentLength in class javax.servlet.ServletResponseWrapperpublic void setLocale(java.util.Locale arg0)
setLocale in interface javax.servlet.ServletResponsesetLocale in class javax.servlet.ServletResponseWrapperpublic int getBufferSize()
MimeResponse
getBufferSize in interface MimeResponsegetBufferSize in interface javax.servlet.ServletResponsegetBufferSize in class javax.servlet.ServletResponseWrapperMimeResponse.setBufferSize(int),
MimeResponse.flushBuffer(),
MimeResponse.isCommitted(),
MimeResponse.reset()
public void setContentType(java.lang.String contentType)
throws java.lang.IllegalArgumentException
MimeResponseMimeResponse.getWriter() or
MimeResponse.getPortletOutputStream().
Calling setContentType after getWriter or
getOutputStream does not change the content type.
The portlet container will ignore any character encoding
specified as part of the content type for render
calls.
setContentType in interface MimeResponsesetContentType in interface javax.servlet.ServletResponsesetContentType in class javax.servlet.ServletResponseWrappercontentType - the content MIME type
java.lang.IllegalArgumentException - for render calls if the given type is not in the list
returned by PortletRequest.getResponseContentTypesPortletRequest.getResponseContentTypes(),
MimeResponse.getContentType()public java.lang.String getContentType()
MimeResponse
If no content type was set previously using the MimeResponse.setContentType(java.lang.String)
method this method returns null.
getContentType in interface MimeResponsegetContentType in interface javax.servlet.ServletResponsegetContentType in class javax.servlet.ServletResponseWrappernull if no
content type is setMimeResponse.setContentType(java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||