public class MockMimeResponse extends MockPortletResponse implements MimeResponse
MimeResponse interface.CACHE_SCOPE, ETAG, EXPIRATION_CACHE, MARKUP_HEAD_ELEMENT, NAMESPACED_RESPONSE, PRIVATE_SCOPE, PUBLIC_SCOPE, USE_CACHED_CONTENT| Constructor and Description |
|---|
MockMimeResponse()
Create a new MockMimeResponse with a default
MockPortalContext. |
MockMimeResponse(PortalContext portalContext)
Create a new MockMimeResponse.
|
MockMimeResponse(PortalContext portalContext,
PortletRequest request)
Create a new MockMimeResponse.
|
| Modifier and Type | Method and Description |
|---|---|
PortletURL |
createActionURL() |
PortletURL |
createRenderURL() |
ResourceURL |
createResourceURL() |
void |
flushBuffer() |
int |
getBufferSize() |
CacheControl |
getCacheControl() |
String |
getCharacterEncoding() |
byte[] |
getContentAsByteArray() |
String |
getContentAsString() |
String |
getContentType() |
String |
getForwardedUrl() |
String |
getIncludedUrl() |
Locale |
getLocale() |
OutputStream |
getPortletOutputStream() |
PrintWriter |
getWriter() |
boolean |
isCommitted() |
void |
reset() |
void |
resetBuffer() |
void |
setBufferSize(int bufferSize) |
void |
setCharacterEncoding(String characterEncoding) |
void |
setCommitted(boolean committed) |
void |
setContentType(String contentType) |
void |
setForwardedUrl(String forwardedUrl) |
void |
setIncludedUrl(String includedUrl) |
void |
setLocale(Locale locale) |
addProperty, addProperty, addProperty, createElement, encodeURL, getCookie, getCookies, getNamespace, getPortalContext, getProperties, getProperty, getPropertyNames, getXmlProperties, getXmlProperty, getXmlPropertyNames, setNamespace, setPropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddProperty, addProperty, addProperty, createElement, encodeURL, getNamespace, setPropertypublic MockMimeResponse()
MockPortalContext.MockPortalContextpublic MockMimeResponse(PortalContext portalContext)
portalContext - the PortalContext defining the supported
PortletModes and WindowStatespublic MockMimeResponse(PortalContext portalContext, PortletRequest request)
portalContext - the PortalContext defining the supported
PortletModes and WindowStatesrequest - the corresponding render/resource request that this response
is being generated forpublic void setContentType(String contentType)
setContentType in interface MimeResponsepublic String getContentType()
getContentType in interface MimeResponsepublic void setCharacterEncoding(String characterEncoding)
public String getCharacterEncoding()
getCharacterEncoding in interface MimeResponsepublic PrintWriter getWriter() throws UnsupportedEncodingException
getWriter in interface MimeResponseUnsupportedEncodingExceptionpublic byte[] getContentAsByteArray()
public String getContentAsString() throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic void setLocale(Locale locale)
public Locale getLocale()
getLocale in interface MimeResponsepublic void setBufferSize(int bufferSize)
setBufferSize in interface MimeResponsepublic int getBufferSize()
getBufferSize in interface MimeResponsepublic void flushBuffer()
flushBuffer in interface MimeResponsepublic void resetBuffer()
resetBuffer in interface MimeResponsepublic void setCommitted(boolean committed)
public boolean isCommitted()
isCommitted in interface MimeResponsepublic void reset()
reset in interface MimeResponsepublic OutputStream getPortletOutputStream() throws IOException
getPortletOutputStream in interface MimeResponseIOExceptionpublic PortletURL createRenderURL()
createRenderURL in interface MimeResponsepublic PortletURL createActionURL()
createActionURL in interface MimeResponsepublic ResourceURL createResourceURL()
createResourceURL in interface MimeResponsepublic CacheControl getCacheControl()
getCacheControl in interface MimeResponsepublic void setIncludedUrl(String includedUrl)
public String getIncludedUrl()
public void setForwardedUrl(String forwardedUrl)
public String getForwardedUrl()