|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.mock.web.portlet.MockPortletRequest
org.springframework.mock.web.portlet.MockClientDataRequest
org.springframework.mock.web.portlet.MockResourceRequest
public class MockResourceRequest
Mock implementation of the javax.portlet.ResourceRequest
interface.
Field Summary | |
---|---|
private java.lang.String |
cacheability
|
private java.util.Map<java.lang.String,java.lang.String[]> |
privateRenderParameterMap
|
private java.lang.String |
resourceID
|
Constructor Summary | |
---|---|
MockResourceRequest()
Create a new MockResourceRequest with a default MockPortalContext
and a default MockPortletContext . |
|
MockResourceRequest(MockResourceURL url)
Create a new MockResourceRequest with a default MockPortalContext
and a default MockPortletContext . |
|
MockResourceRequest(PortalContext portalContext,
PortletContext portletContext)
Create a new MockResourceRequest. |
|
MockResourceRequest(PortletContext portletContext)
Create a new MockResourceRequest with a default MockPortalContext . |
|
MockResourceRequest(java.lang.String resourceID)
Create a new MockResourceRequest with a default MockPortalContext
and a default MockPortletContext . |
Method Summary | |
---|---|
void |
addPrivateRenderParameter(java.lang.String key,
java.lang.String value)
|
void |
addPrivateRenderParameter(java.lang.String key,
java.lang.String[] values)
|
java.lang.String |
getCacheability()
|
java.lang.String |
getETag()
|
protected java.lang.String |
getLifecyclePhase()
Return the Portlet 2.0 lifecycle id for the current phase. |
java.util.Map<java.lang.String,java.lang.String[]> |
getPrivateRenderParameterMap()
|
java.lang.String |
getResourceID()
|
void |
setCacheability(java.lang.String cacheLevel)
|
void |
setResourceID(java.lang.String resourceID)
|
Methods inherited from class org.springframework.mock.web.portlet.MockClientDataRequest |
---|
getCharacterEncoding, getContentLength, getContentType, getMethod, getPortletInputStream, getReader, setCharacterEncoding, setContent, setContentType, setMethod |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String resourceID
private java.lang.String cacheability
private final java.util.Map<java.lang.String,java.lang.String[]> privateRenderParameterMap
Constructor Detail |
---|
public MockResourceRequest()
MockPortalContext
and a default MockPortletContext
.
MockPortalContext
,
MockPortletContext
public MockResourceRequest(java.lang.String resourceID)
MockPortalContext
and a default MockPortletContext
.
resourceID
- the resource id for this requestpublic MockResourceRequest(MockResourceURL url)
MockPortalContext
and a default MockPortletContext
.
url
- the resource URL for this requestpublic MockResourceRequest(PortletContext portletContext)
MockPortalContext
.
portletContext
- the PortletContext that the request runs inpublic MockResourceRequest(PortalContext portalContext, PortletContext portletContext)
portalContext
- the PortalContext that the request runs inportletContext
- the PortletContext that the request runs inMethod Detail |
---|
protected java.lang.String getLifecyclePhase()
MockPortletRequest
getLifecyclePhase
in class MockPortletRequest
public void setResourceID(java.lang.String resourceID)
public java.lang.String getResourceID()
public void setCacheability(java.lang.String cacheLevel)
public java.lang.String getCacheability()
public java.lang.String getETag()
public void addPrivateRenderParameter(java.lang.String key, java.lang.String value)
public void addPrivateRenderParameter(java.lang.String key, java.lang.String[] values)
public java.util.Map<java.lang.String,java.lang.String[]> getPrivateRenderParameterMap()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |