public class MockServiceInterfaceRenderRequest extends org.springframework.mock.web.MockHttpServletRequest implements IMockServiceInterfaceRenderRequest, IServiceInterfaceRequestSPI, HttpServletRequest
PortletRequest.P3PUserInfos
DEFAULT_PROTOCOL, DEFAULT_REMOTE_ADDR, DEFAULT_REMOTE_HOST, DEFAULT_SERVER_ADDR, DEFAULT_SERVER_NAME, DEFAULT_SERVER_PORT
DEBUG_LEVEL_HIGH, DEBUG_LEVEL_LOW, DEBUG_LEVEL_MEDIUM, DEBUG_LEVEL_NONE
ETAG
ACTION_PHASE, ACTION_SCOPE_ID, BASIC_AUTH, CCPP_PROFILE, CLIENT_CERT_AUTH, DIGEST_AUTH, EVENT_PHASE, FORM_AUTH, LIFECYCLE_PHASE, RENDER_HEADERS, RENDER_MARKUP, RENDER_PART, RENDER_PHASE, RESOURCE_PHASE, USER_INFO
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
Constructor and Description |
---|
MockServiceInterfaceRenderRequest() |
addHeader, addParameter, addParameter, addParameters, addPart, addPreferredLocale, addUserRole, authenticate, changeSessionId, checkActive, clearAttributes, close, getAsyncContext, getAttribute, getAttributeNames, getAuthType, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getContextPath, getCookies, getDateHeader, getDispatcherType, getHeaderNames, getHeaders, getInputStream, getIntHeader, getLocalAddr, getLocalName, getLocalPort, getMethod, getParameter, getParameterMap, getParameterNames, getParameterValues, getPart, getParts, getPathInfo, getPathTranslated, getProtocol, getQueryString, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getScheme, getServerName, getServerPort, getServletContext, getServletPath, getSession, getSession, invalidate, isActive, isAsyncStarted, isAsyncSupported, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isSecure, isUserInRole, login, logout, removeAllParameters, removeAttribute, removeParameter, setAsyncContext, setAsyncStarted, setAsyncSupported, setAttribute, setAuthType, setCharacterEncoding, setContent, setContentType, setContextPath, setCookies, setDispatcherType, setLocalAddr, setLocalName, setLocalPort, setMethod, setParameter, setParameter, setParameters, setPathInfo, setPreferredLocales, setProtocol, setQueryString, setRemoteAddr, setRemoteHost, setRemotePort, setRemoteUser, setRequestedSessionId, setRequestedSessionIdFromCookie, setRequestedSessionIdFromURL, setRequestedSessionIdValid, setRequestURI, setScheme, setSecure, setServerName, setServerPort, setServletPath, setSession, setUserPrincipal, startAsync, startAsync
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addFileParameter, addHeader, addProperty, setAuthType, setCallerServiceInterfaceInstanceId, setCallerServiceInterfaceMenuLevel, setContextPath, setCookies, setFileParameterMap, setHeaderMap, setLocales, setPageConfig, setParameter, setParameter, setParameterMap, setPortletMode, setPreview, setProperty, setRemoteUser, setRequestedSessionIdValid, setScheme, setSecure, setServerName, setServerPort, setServiceConfig, setServiceInstanceConfig, setServiceInstanceDebugLevel, setServiceInterfaceConfig, setServiceInterfaceInstanceConfig, setSessionConfig, setWindowState
getAttributeNames, getCallerServiceInterfaceInstanceId, getCallerServiceInterfaceInstancePreferences, getCallerServiceInterfaceMenuLevel, getCookie, getCookies, getFileParameter, getHeader, getMode, getPageConfig, getPageWebResource, getParameterMap, getParameterNames, getPreferences, getServiceConfig, getServiceInstanceConfig, getServiceInstanceDebugLevel, getServiceInterfaceConfig, getServiceInterfaceInstanceConfig, getServiceInterfaceInstanceId, getSessionConfig, getWebsiteBaseURL, isPreview, setMode
getAttribute, getAuthType, getContextPath, getLocale, getLocales, getParameter, getParameterValues, getPortalContext, getPortletMode, getPortletSession, getPortletSession, getPrivateParameterMap, getProperties, getProperty, getPropertyNames, getPublicParameterMap, getRemoteUser, getRequestedSessionId, getResponseContentType, getResponseContentTypes, getScheme, getServerName, getServerPort, getUserPrincipal, getWindowID, getWindowState, isPortletModeAllowed, isRequestedSessionIdValid, isSecure, isUserInRole, isWindowStateAllowed, removeAttribute, setAttribute
getApplicationRequestedPath, getAttribute, getContextPath, getParameter, getParameterValues, getPortalMode, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute
getHttpServletRequest, getReplaceInterfacesStorage, getServiceContainerHttpServletRequest, getVariableResolver
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, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsync
public IServiceInterfaceRequestDispatcher getRequestDispatcher(String path)
getRequestDispatcher
in interface ServletRequest
getRequestDispatcher
in interface IServiceInterfaceRequest
public String getETag()
getETag
in interface RenderRequest
public boolean getSaveXml()
getSaveXml
in interface IServiceInterfaceRenderRequest
public void setSaveXml(boolean saveXml)
IMockServiceInterfaceRenderRequest
IServiceInterfaceRenderRequest.getSaveXml()
method.setSaveXml
in interface IMockServiceInterfaceRenderRequest
saveXml
- the boolean value that must be used during the tests.public boolean isPageCachedInFile()
IPageWebResourceRequest
isPageCachedInFile
in interface IServiceInterfaceRenderRequest
isPageCachedInFile
in interface IPageWebResourceRequest
public void setPageCachedInFile(boolean pageCachedInFile)
IMockServiceInterfaceRenderRequest
IPageWebResourceRequest.isPageCachedInFile()
method.setPageCachedInFile
in interface IMockServiceInterfaceRenderRequest
pageCachedInFile
- the boolean value that must be used during the tests.public boolean isPrinting()
IPageWebResourceRenderRequest
isPrinting
in interface IServiceInterfaceRenderRequest
isPrinting
in interface IPageWebResourceRenderRequest
public void setPrinting(boolean printing)
IMockServiceInterfaceRenderRequest
IServiceInterfaceRenderRequest.isPrinting()
method.setPrinting
in interface IMockServiceInterfaceRenderRequest
printing
- the boolean value that must be used during the tests.public IBusinessContext getBusinessContext()
IServiceInterfaceRequest
getBusinessContext
in interface IServiceInterfaceRequest
getBusinessContext
in interface IPageWebResourceRequest
public FunctionMapper getFunctionMapper()
IServiceInterfaceRequestSPI
FunctionMapper
for this request.getFunctionMapper
in interface IServiceInterfaceRequestSPI
FunctionMapper
for this request.protected void setResponse(MockServiceInterfaceRenderResponse response)
public void setCallerServiceInterfaceInstanceId(String callerServiceInterfaceInstanceId)
IMockServiceInterfaceRequest
IServiceInterfaceRequest.getCallerServiceInterfaceInstanceId()
.setCallerServiceInterfaceInstanceId
in interface IMockServiceInterfaceRequest
callerServiceInterfaceInstanceId
- the new callerServiceInterfaceInstanceId.public String getCallerServiceInterfaceInstanceId()
getCallerServiceInterfaceInstanceId
in interface IServiceInterfaceRequest
public ServiceInterfaceMenuLevel getCallerServiceInterfaceMenuLevel()
IServiceInterfaceRequest
getCallerServiceInterfaceMenuLevel
in interface IServiceInterfaceRequest
public void setCallerServiceInterfaceMenuLevel(ServiceInterfaceMenuLevel callerServiceInterfaceMenuLevel)
IMockServiceInterfaceRequest
IServiceInterfaceRequest.getCallerServiceInterfaceMenuLevel()
.setCallerServiceInterfaceMenuLevel
in interface IMockServiceInterfaceRequest
callerServiceInterfaceMenuLevel
- the menu level.public IPreferences getCallerServiceInterfaceInstancePreferences()
IServiceInterfaceRequest
caller service interface instance
at level that corresponds to the menu level returned by IServiceInterfaceRequest.getCallerServiceInterfaceMenuLevel()
.getCallerServiceInterfaceInstancePreferences
in interface IServiceInterfaceRequest
public Cookie getCookie(String cookieName)
IPageWebResourceRequest
null
if the cookie does not exist in request.getCookie
in interface IServiceInterfaceRequest
getCookie
in interface IPageWebResourceRequest
cookieName
- the requested cookie name.null
if the cookie does not exist in request.public FileParameter getFileParameter(String parameterName)
IPageWebResourceRequest
getFileParameter
in interface IServiceInterfaceRequest
getFileParameter
in interface IPageWebResourceRequest
parameterName
- the parameter name.public void addFileParameter(String name, FileParameter fileParameter)
IMockServiceInterfaceRequest
IServiceInterfaceRequest.getFileParameter(String)
.addFileParameter
in interface IMockServiceInterfaceRequest
name
- the name of the FileParameter.fileParameter
- the FileParameter instance.public void setFileParameterMap(Map<String,FileParameter> fileParameterMap)
IMockServiceInterfaceRequest
IServiceInterfaceRequest.getFileParameter(String)
.setFileParameterMap
in interface IMockServiceInterfaceRequest
fileParameterMap
- an instance of Mappublic String getHeader(String header)
IPageWebResourceRequest
null
if the header does not exist in request.getHeader
in interface HttpServletRequest
getHeader
in interface IServiceInterfaceRequest
getHeader
in interface IPageWebResourceRequest
getHeader
in class org.springframework.mock.web.MockHttpServletRequest
header
- the requested header name.null
if the header does not exist in request.public void addHeader(String key, String value)
IMockServiceInterfaceRequest
IServiceInterfaceRequest.getHeader(String)
.addHeader
in interface IMockServiceInterfaceRequest
key
- string representing the key.value
- the value.public void setHeaderMap(Map<String,String> headerMap)
IMockServiceInterfaceRequest
IServiceInterfaceRequest.getHeader(String)
will be replaced.setHeaderMap
in interface IMockServiceInterfaceRequest
headerMap
- the instance of MapIServiceInterfaceRequest.getHeader(String)
public int getMode()
getMode
in interface IServiceInterfaceRequest
public PageConfig getPageConfig()
getPageConfig
in interface IServiceInterfaceRequest
public void setPageConfig(PageConfig pageConfig)
IMockServiceInterfaceRequest
IServiceInterfaceRequest.getPageConfig()
.setPageConfig
in interface IMockServiceInterfaceRequest
pageConfig
- the instance of PageConfig that will be used on the tests.public ServiceConfig getServiceConfig()
getServiceConfig
in interface IServiceInterfaceRequest
public void setServiceConfig(ServiceConfig serviceConfig)
IMockServiceInterfaceRequest
IServiceInterfaceRequest.getServiceConfig()
.setServiceConfig
in interface IMockServiceInterfaceRequest
serviceConfig
- the instance of ServiceConfig that will be used on the tests.public ServiceInstanceConfig getServiceInstanceConfig()
getServiceInstanceConfig
in interface IServiceInterfaceRequest
public void setServiceInstanceConfig(ServiceInstanceConfig serviceInstanceConfig)
IMockServiceInterfaceRequest
IServiceInterfaceRequest.getServiceInstanceConfig()
.setServiceInstanceConfig
in interface IMockServiceInterfaceRequest
serviceInstanceConfig
- the instance of ServiceInstanceConfig that will be used on the tests.public int getServiceInstanceDebugLevel()
getServiceInstanceDebugLevel
in interface IServiceInterfaceRequest
public void setServiceInstanceDebugLevel(int serviceInstanceDebugLevel)
IMockServiceInterfaceRequest
IServiceInterfaceRequest.getServiceInstanceDebugLevel()
.setServiceInstanceDebugLevel
in interface IMockServiceInterfaceRequest
serviceInstanceDebugLevel
- the new level.public ServiceInterfaceConfig getServiceInterfaceConfig()
getServiceInterfaceConfig
in interface IServiceInterfaceRequest
public void setServiceInterfaceConfig(ServiceInterfaceConfig serviceInterfaceConfig)
IMockServiceInterfaceRequest
IServiceInterfaceRequest.getServiceInterfaceConfig()
.setServiceInterfaceConfig
in interface IMockServiceInterfaceRequest
public ServiceInterfaceInstanceConfig getServiceInterfaceInstanceConfig()
getServiceInterfaceInstanceConfig
in interface IServiceInterfaceRequest
public void setServiceInterfaceInstanceConfig(ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig)
IMockServiceInterfaceRequest
IServiceInterfaceRequest.getServiceInterfaceInstanceConfig()
.setServiceInterfaceInstanceConfig
in interface IMockServiceInterfaceRequest
public String getServiceInterfaceInstanceId()
getServiceInterfaceInstanceId
in interface IServiceInterfaceRequest
public SessionConfig getSessionConfig()
IPageWebResourceRequest
getSessionConfig
in interface IServiceInterfaceRequest
getSessionConfig
in interface IPageWebResourceRequest
public void setSessionConfig(SessionConfig sessionConfig)
IMockServiceInterfaceRequest
IServiceInterfaceRequest.getSessionConfig()
.setSessionConfig
in interface IMockServiceInterfaceRequest
setSessionConfig
in interface IServiceInterfaceRequest
public boolean isPreview()
IPageWebResourceRequest
isPreview
in interface IServiceInterfaceRequest
isPreview
in interface IPageWebResourceRequest
public void setPreview(boolean preview)
IMockServiceInterfaceRequest
IServiceInterfaceRequest.isPreview()
.setPreview
in interface IMockServiceInterfaceRequest
preview
- the boolean valuepublic void setMode(int mode)
setMode
in interface IServiceInterfaceRequest
public Map<String,String[]> getPrivateParameterMap()
getPrivateParameterMap
in interface PortletRequest
public Map<String,String[]> getPublicParameterMap()
getPublicParameterMap
in interface PortletRequest
public String getWindowID()
getWindowID
in interface PortletRequest
public Principal getUserPrincipal()
getUserPrincipal
in interface PortletRequest
getUserPrincipal
in interface HttpServletRequest
getUserPrincipal
in class org.springframework.mock.web.MockHttpServletRequest
public void setParameterMap(Map<String,String[]> parameters)
IMockServiceInterfaceRequest
setParameterMap
in interface IMockServiceInterfaceRequest
parameters
- the parameters.PortletRequest.getParameter(String)
,
IServiceInterfaceRequest.getParameterMap()
,
IServiceInterfaceRequest.getParameterNames()
,
PortletRequest.getParameterValues(String)
public Locale getLocale()
getLocale
in interface PortletRequest
getLocale
in interface ServletRequest
getLocale
in class org.springframework.mock.web.MockHttpServletRequest
public Enumeration<Locale> getLocales()
getLocales
in interface PortletRequest
getLocales
in interface ServletRequest
getLocales
in class org.springframework.mock.web.MockHttpServletRequest
public void setLocales(List<Locale> locales)
IMockServiceInterfaceRequest
setLocales
in interface IMockServiceInterfaceRequest
locales
- the locales.PortletRequest.getLocale()
,
PortletRequest.getLocales()
public PageWebResource getPageWebResource()
IServiceInterfaceRequest
PageWebResource
of this request.getPageWebResource
in interface IServiceInterfaceRequest
getPageWebResource
in interface IPageWebResourceRequest
PageWebResource
of this request.public IWebsiteBaseURL getWebsiteBaseURL()
IServiceInterfaceRequest
getWebsiteBaseURL
in interface IServiceInterfaceRequest
getWebsiteBaseURL
in interface IPageWebResourceRequest
public VariableResolver getVariableResolver()
IServiceInterfaceRequestSPI
VariableResolver
for this request.getVariableResolver
in interface IServiceInterfaceRequestSPI
VariableResolver
for this request.public ServiceContainerHttpServletRequest getServiceContainerHttpServletRequest()
IServiceInterfaceRequestSPI
ServiceContainerHttpServletRequest
.getServiceContainerHttpServletRequest
in interface IServiceInterfaceRequestSPI
ServiceContainerHttpServletRequest
.public IPortalMode getPortalMode()
IPageWebResourceRequest
getPortalMode
in interface IPageWebResourceRequest
public void setApplicationRequestedPath(String applicationRequestedPath)
applicationRequestedPath
- the application requested path.public String getApplicationRequestedPath()
IPageWebResourceRequest
website base URL
.getApplicationRequestedPath
in interface IPageWebResourceRequest
website base URL
.public boolean isWindowStateAllowed(WindowState state)
isWindowStateAllowed
in interface PortletRequest
public boolean isPortletModeAllowed(PortletMode mode)
isPortletModeAllowed
in interface PortletRequest
public PortletMode getPortletMode()
getPortletMode
in interface PortletRequest
public WindowState getWindowState()
getWindowState
in interface PortletRequest
public IPreferences getPreferences()
getPreferences
in interface PortletRequest
getPreferences
in interface IServiceInterfaceRequest
public PortletSession getPortletSession()
getPortletSession
in interface PortletRequest
public PortletSession getPortletSession(boolean create)
getPortletSession
in interface PortletRequest
public String getProperty(String name)
getProperty
in interface PortletRequest
public Enumeration<String> getProperties(String name)
getProperties
in interface PortletRequest
public Enumeration<String> getPropertyNames()
getPropertyNames
in interface PortletRequest
public PortalContext getPortalContext()
getPortalContext
in interface PortletRequest
public String getResponseContentType()
getResponseContentType
in interface PortletRequest
public Enumeration<String> getResponseContentTypes()
getResponseContentTypes
in interface PortletRequest
public void addProperty(String key, String value)
IMockServiceInterfaceRequest
If there are already one or more values registered for the given property key, the given value will be added to the end of the list.
addProperty
in interface IMockServiceInterfaceRequest
key
- the property key.value
- the property value.PortletRequest.getProperties(String)
,
PortletRequest.getProperty(String)
,
PortletRequest.getPropertyNames()
public void setPortletMode(PortletMode portletMode)
IMockServiceInterfaceRequest
setPortletMode
in interface IMockServiceInterfaceRequest
portletMode
- the portlet mode.PortletRequest.getPortletMode()
public void setProperty(String key, String value)
IMockServiceInterfaceRequest
If there are already one or more values registered for the given property key, they will be replaced.
setProperty
in interface IMockServiceInterfaceRequest
key
- the property key.value
- the property value.PortletRequest.getProperties(String)
,
PortletRequest.getProperty(String)
,
PortletRequest.getPropertyNames()
public void setWindowState(WindowState windowState)
IMockServiceInterfaceRequest
PortletRequest.getWindowState()
.setWindowState
in interface IMockServiceInterfaceRequest
windowState
- the window state.public ReplaceInterfacesStorage getReplaceInterfacesStorage()
IServiceInterfaceRequestSPI
ReplaceInterfacesStorage
for the current request.getReplaceInterfacesStorage
in interface IServiceInterfaceRequestSPI
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.