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>
Tvoid
int
byte[]
boolean
void
reset()
void
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
Methods 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, setProperty
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
createActionURL
in interfaceMimeResponse
-
createActionURL
- Specified by:
createActionURL
in interfaceMimeResponse
-
createRenderURL
- Specified by:
createRenderURL
in interfaceMimeResponse
-
createRenderURL
- Specified by:
createRenderURL
in interfaceMimeResponse
-
createResourceURL
- Specified by:
createResourceURL
in interfaceMimeResponse
-
flushBuffer
public void flushBuffer()- Specified by:
flushBuffer
in interfaceMimeResponse
-
getBufferSize
public int getBufferSize()- Specified by:
getBufferSize
in interfaceMimeResponse
-
getCacheControl
- Specified by:
getCacheControl
in interfaceMimeResponse
-
getCharacterEncoding
- Specified by:
getCharacterEncoding
in interfaceMimeResponse
-
getContentAsByteArray
public byte[] getContentAsByteArray() -
getContentAsString
- Throws:
UnsupportedEncodingException
-
getContentType
- Specified by:
getContentType
in interfaceMimeResponse
-
getForwardedUrl
-
getIncludedUrl
-
getLocale
- Specified by:
getLocale
in interfaceMimeResponse
-
getPortletOutputStream
- Specified by:
getPortletOutputStream
in interfaceMimeResponse
- Throws:
IOException
-
getWriter
- Specified by:
getWriter
in interfaceMimeResponse
- Throws:
UnsupportedEncodingException
-
isCommitted
public boolean isCommitted()- Specified by:
isCommitted
in interfaceMimeResponse
-
reset
public void reset()- Specified by:
reset
in interfaceMimeResponse
-
resetBuffer
public void resetBuffer()- Specified by:
resetBuffer
in interfaceMimeResponse
-
setBufferSize
public void setBufferSize(int bufferSize) - Specified by:
setBufferSize
in interfaceMimeResponse
-
setCharacterEncoding
-
setCommitted
public void setCommitted(boolean committed) -
setContentType
- Specified by:
setContentType
in interfaceMimeResponse
-
setForwardedUrl
-
setIncludedUrl
-
setLocale
-