Class MockMimeResponse
Object
com.liferay.portal.kernel.test.portlet.MockPortletResponse
com.liferay.portal.kernel.test.portlet.MockMimeResponse
- All Implemented Interfaces:
MimeResponse,PortletResponse
- Direct Known Subclasses:
MockRenderResponse
- Author:
- Dante Wang
-
Nested Class Summary
Nested classes/interfaces inherited from interface javax.portlet.MimeResponse
MimeResponse.Copy -
Field Summary
Fields 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
ConstructorsConstructorDescriptionMockMimeResponse(PortalContext portalContext) MockMimeResponse(PortalContext portalContext, PortletRequest portletRequest) -
Method Summary
Modifier and TypeMethodDescription<T extends PortletURL & ActionURL>
T<T extends PortletURL & RenderURL>
Tvoidintbyte[]booleanvoidreset()voidvoidsetBufferSize(int bufferSize) voidsetCharacterEncoding(String characterEncoding) voidsetCommitted(boolean committed) voidsetContentType(String contentType) voidsetForwardedUrl(String forwardedUrl) voidsetIncludedUrl(String includedUrl) voidMethods inherited from class com.liferay.portal.kernel.test.portlet.MockPortletResponse
addProperty, addProperty, addProperty, createElement, encodeURL, getCookie, getCookies, getNamespace, getPortalContext, getProperties, getProperty, getPropertyNames, getPropertyValues, getXmlProperties, getXmlProperty, getXmlPropertyNames, setNamespace, setPropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.portlet.PortletResponse
addProperty, addProperty, addProperty, createElement, encodeURL, getNamespace, getProperty, getPropertyNames, getPropertyValues, setProperty
-
Constructor Details
-
MockMimeResponse
public MockMimeResponse() -
MockMimeResponse
-
MockMimeResponse
-
-
Method Details
-
createActionURL
- Specified by:
createActionURLin interfaceMimeResponse
-
createActionURL
- Specified by:
createActionURLin interfaceMimeResponse
-
createRenderURL
- Specified by:
createRenderURLin interfaceMimeResponse
-
createRenderURL
- Specified by:
createRenderURLin interfaceMimeResponse
-
createResourceURL
- Specified by:
createResourceURLin interfaceMimeResponse
-
flushBuffer
public void flushBuffer()- Specified by:
flushBufferin interfaceMimeResponse
-
getBufferSize
public int getBufferSize()- Specified by:
getBufferSizein interfaceMimeResponse
-
getCacheControl
- Specified by:
getCacheControlin interfaceMimeResponse
-
getCharacterEncoding
- Specified by:
getCharacterEncodingin interfaceMimeResponse
-
getContentAsByteArray
public byte[] getContentAsByteArray() -
getContentAsString
- Throws:
UnsupportedEncodingException
-
getContentType
- Specified by:
getContentTypein interfaceMimeResponse
-
getForwardedUrl
-
getIncludedUrl
-
getLocale
- Specified by:
getLocalein interfaceMimeResponse
-
getPortletOutputStream
- Specified by:
getPortletOutputStreamin interfaceMimeResponse- Throws:
IOException
-
getWriter
- Specified by:
getWriterin interfaceMimeResponse- Throws:
UnsupportedEncodingException
-
isCommitted
public boolean isCommitted()- Specified by:
isCommittedin interfaceMimeResponse
-
reset
public void reset()- Specified by:
resetin interfaceMimeResponse
-
resetBuffer
public void resetBuffer()- Specified by:
resetBufferin interfaceMimeResponse
-
setBufferSize
public void setBufferSize(int bufferSize) - Specified by:
setBufferSizein interfaceMimeResponse
-
setCharacterEncoding
-
setCommitted
public void setCommitted(boolean committed) -
setContentType
- Specified by:
setContentTypein interfaceMimeResponse
-
setForwardedUrl
-
setIncludedUrl
-
setLocale
-