public class MockHstRequest extends MockHstRequestBase implements HstRequest
ACTION_PHASE, RENDER_PHASE, RESOURCE_PHASE
Constructor and Description |
---|
MockHstRequest() |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getAttributeMap()
Returns the attribute map of this component window.
|
Map<String,Object> |
getAttributeMap(String referencePath)
Returns the attribute map of the specified reference namespace component window.
|
String |
getLifecyclePhase()
Returns the lifecycle phase of the current HST request.
|
Map<String,String[]> |
getParameterMap(String referencePath)
Returns the parameter map of the specified reference namespace component window.
|
String |
getReferenceNamespace()
The reference namespace of the component window.
|
HstRequestContext |
getRequestContext()
Returns the current request context
|
String |
getResourceID()
Returns the resource ID which was set by the resource HST URL.
|
void |
setAttributeMap(String referencePath,
Map<String,Object> attrMap) |
void |
setLifecyclePhase(String lifecyclePhase) |
void |
setParameterMap(String referencePath,
Map<String,String[]> paramMap) |
void |
setReferenceNamespace(String referenceNamespace) |
void |
setReferencePath(String referencePath) |
void |
setRequestContext(HstRequestContext requestContext) |
void |
setResourceID(String resourceId) |
addHeader, addParameter, authenticate, getAsyncContext, getAttribute, getAttributeNames, getAuthType, getCharacterEncoding, getContentLength, getContentType, getContextPath, getCookies, getDateHeader, getDispatcherType, getHeader, getHeaderNames, getHeaders, getInputStream, getIntHeader, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getMethod, getParameter, getParameterMap, getParameterNames, getParameterValues, getPart, getParts, getPathInfo, getPathTranslated, getProtocol, getQueryString, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRemoteUser, getRequestDispatcher, getRequestedSessionId, getRequestURI, getRequestURL, getScheme, getServerName, getServerPort, getServletContext, getServletPath, getSession, getSession, getUserPrincipal, getUserRoleNames, isAsyncStarted, isAsyncSupported, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isSecure, isUserInRole, login, logout, removeAttribute, removeParameter, setAttribute, setAuthType, setCharacterEncoding, setContextPath, setCookies, setHeader, setLocalAddr, setLocale, setLocales, setLocalName, setLocalPort, setMethod, setPathInfo, setPathTranslated, setProtocol, setQueryString, setRemoteAddr, setRemoteHost, setRemoteUser, setRequestedSessionId, setRequestedSessionIdFromCookie, setRequestedSessionIdFromUrl, setRequestedSessionIdFromURL, setRequestedSessionIdValid, setRequestURI, setRequestURL, setScheme, setServerName, setServletPath, setSession, setUserPrincipal, setUserRoleNames, startAsync, startAsync
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getParameterMap
authenticate, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPart, getParts, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole, login, logout
getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsync
public void setReferencePath(String referencePath)
public Map<String,Object> getAttributeMap()
HstRequest
getAttributeMap
in interface HstRequest
public Map<String,Object> getAttributeMap(String referencePath)
HstRequest
getAttributeMap
in interface HstRequest
public Map<String,String[]> getParameterMap(String referencePath)
HstRequest
HstRequest.getParameterMap()
.getParameterMap
in interface HstRequest
public void setRequestContext(HstRequestContext requestContext)
public HstRequestContext getRequestContext()
HstRequest
getRequestContext
in interface HstRequest
public void setResourceID(String resourceId)
public String getResourceID()
HstRequest
getResourceID
in interface HstRequest
public String getReferenceNamespace()
HstRequest
getReferenceNamespace
in interface HstRequest
public void setReferenceNamespace(String referenceNamespace)
public String getLifecyclePhase()
HstRequest
getLifecyclePhase
in interface HstRequest
HstRequest.ACTION_PHASE
,
HstRequest.RENDER_PHASE
,
HstRequest.RESOURCE_PHASE
public void setLifecyclePhase(String lifecyclePhase)
Copyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.