Class MockServiceInterfaceRenderRequest
- java.lang.Object
-
- org.springframework.mock.web.MockHttpServletRequest
-
- lumis.lptf.portal.serviceinterface.MockServiceInterfaceRenderRequest
-
- All Implemented Interfaces:
javax.portlet.PortletRequest
,javax.portlet.RenderRequest
,javax.servlet.http.HttpServletRequest
,javax.servlet.ServletRequest
,IMockServiceInterfaceRenderRequest
,IMockServiceInterfaceRequest
,IServiceInterfaceRenderRequest
,IServiceInterfaceRequest
,IServiceInterfaceRequestSPI
,IPageWebResourceRenderRequest
,IPageWebResourceRequest
public class MockServiceInterfaceRenderRequest extends org.springframework.mock.web.MockHttpServletRequest implements IMockServiceInterfaceRenderRequest, IServiceInterfaceRequestSPI, javax.servlet.http.HttpServletRequest
Implementation for IMockServiceInterfaceRenderRequest interface.- Since:
- 5.6.0
- Version:
- $Revision$ $Date$
-
-
Field Summary
-
Fields inherited from class org.springframework.mock.web.MockHttpServletRequest
DEFAULT_PROTOCOL, DEFAULT_REMOTE_ADDR, DEFAULT_REMOTE_HOST, DEFAULT_SERVER_ADDR, DEFAULT_SERVER_NAME, DEFAULT_SERVER_PORT
-
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
-
Fields inherited from interface lumis.portal.serviceinterface.IServiceInterfaceRequest
DEBUG_LEVEL_HIGH, DEBUG_LEVEL_LOW, DEBUG_LEVEL_MEDIUM, DEBUG_LEVEL_NONE
-
-
Constructor Summary
Constructors Constructor Description MockServiceInterfaceRenderRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFileParameter(java.lang.String name, FileParameter fileParameter)
Adds a file parameter to be available inIServiceInterfaceRequest.getFileParameter(String)
.void
addHeader(java.lang.String key, java.lang.String value)
Adds a new header value to be available inIServiceInterfaceRequest.getHeader(String)
.void
addProperty(java.lang.String key, java.lang.String value)
Adds a single value for the specified property.java.lang.String
getApplicationRequestedPath()
Returns the path requested by the browser relative to the currentwebsite base URL
.IBusinessContext
getBusinessContext()
Returns the business context for this request.java.lang.String
getCallerServiceInterfaceInstanceId()
IPreferences
getCallerServiceInterfaceInstancePreferences()
Returns the preferences of thecaller service interface instance
at level that corresponds to the menu level returned byIServiceInterfaceRequest.getCallerServiceInterfaceMenuLevel()
.ServiceInterfaceMenuLevel
getCallerServiceInterfaceMenuLevel()
Returns the service interface menu level that called the interface processed by this request.javax.servlet.http.Cookie
getCookie(java.lang.String cookieName)
Returns the requested cookie ornull
if the cookie does not exist in request.java.lang.String
getETag()
FileParameter
getFileParameter(java.lang.String parameterName)
Returns the uploaded file by the given parameter name.javax.servlet.jsp.el.FunctionMapper
getFunctionMapper()
Returns theFunctionMapper
for this request.java.lang.String
getHeader(java.lang.String header)
Returns the requested header ornull
if the header does not exist in request.java.util.Locale
getLocale()
java.util.Enumeration<java.util.Locale>
getLocales()
int
getMode()
PageConfig
getPageConfig()
PageWebResource
getPageWebResource()
Returns thePageWebResource
of this request.javax.portlet.PortalContext
getPortalContext()
IPortalMode
getPortalMode()
Returns the requested portal mode.javax.portlet.PortletMode
getPortletMode()
javax.portlet.PortletSession
getPortletSession()
javax.portlet.PortletSession
getPortletSession(boolean create)
IPreferences
getPreferences()
java.util.Map<java.lang.String,java.lang.String[]>
getPrivateParameterMap()
java.util.Enumeration<java.lang.String>
getProperties(java.lang.String name)
java.lang.String
getProperty(java.lang.String name)
java.util.Enumeration<java.lang.String>
getPropertyNames()
java.util.Map<java.lang.String,java.lang.String[]>
getPublicParameterMap()
ReplaceInterfacesStorage
getReplaceInterfacesStorage()
Returns theReplaceInterfacesStorage
for the current request.IServiceInterfaceRequestDispatcher
getRequestDispatcher(java.lang.String path)
java.lang.String
getResponseContentType()
java.util.Enumeration<java.lang.String>
getResponseContentTypes()
boolean
getSaveXml()
ServiceConfig
getServiceConfig()
ServiceContainerHttpServletRequest
getServiceContainerHttpServletRequest()
Returns theServiceContainerHttpServletRequest
.ServiceInstanceConfig
getServiceInstanceConfig()
int
getServiceInstanceDebugLevel()
ServiceInterfaceConfig
getServiceInterfaceConfig()
ServiceInterfaceInstanceConfig
getServiceInterfaceInstanceConfig()
java.lang.String
getServiceInterfaceInstanceId()
SessionConfig
getSessionConfig()
Returns the session of the user that has performed the request.java.security.Principal
getUserPrincipal()
javax.servlet.jsp.el.VariableResolver
getVariableResolver()
Returns theVariableResolver
for this request.IWebsiteBaseURL
getWebsiteBaseURL()
Returns the website's base URL accessed to generate this request.java.lang.String
getWindowID()
javax.portlet.WindowState
getWindowState()
boolean
isPageCachedInFile()
Returns whether the requested page is cached in file.boolean
isPortletModeAllowed(javax.portlet.PortletMode mode)
boolean
isPreview()
Returns whether the request is in preview mode.boolean
isPrinting()
Returns whether the request is in print mode.boolean
isWindowStateAllowed(javax.portlet.WindowState state)
void
setApplicationRequestedPath(java.lang.String applicationRequestedPath)
Sets the application requested path.void
setCallerServiceInterfaceInstanceId(java.lang.String callerServiceInterfaceInstanceId)
Sets a new value for caller service interface instance id to be available inIServiceInterfaceRequest.getCallerServiceInterfaceInstanceId()
.void
setCallerServiceInterfaceMenuLevel(ServiceInterfaceMenuLevel callerServiceInterfaceMenuLevel)
Sets the caller service interface menu level, returned byIServiceInterfaceRequest.getCallerServiceInterfaceMenuLevel()
.void
setFileParameterMap(java.util.Map<java.lang.String,FileParameter> fileParameterMap)
Sets a map as the file parameters available inIServiceInterfaceRequest.getFileParameter(String)
.void
setHeaderMap(java.util.Map<java.lang.String,java.lang.String> headerMap)
Sets a new header map.void
setLocales(java.util.List<java.util.Locale> locales)
Sets the locales specified in this request, in order of preference.void
setMode(int mode)
void
setPageCachedInFile(boolean pageCachedInFile)
Sets the boolean value to be available inIPageWebResourceRequest.isPageCachedInFile()
method.void
setPageConfig(PageConfig pageConfig)
Sets the new PageConfig instance to be available inIServiceInterfaceRequest.getPageConfig()
.void
setParameterMap(java.util.Map<java.lang.String,java.lang.String[]> parameters)
Replaces all parameters in this request with the specified parameters.void
setPortletMode(javax.portlet.PortletMode portletMode)
Sets the portlet mode for this request.void
setPreview(boolean preview)
Sets the value that will be used onIServiceInterfaceRequest.isPreview()
.void
setPrinting(boolean printing)
Sets the boolean value to be available inIServiceInterfaceRenderRequest.isPrinting()
method.void
setProperty(java.lang.String key, java.lang.String value)
Sets a single value for the specified property.protected void
setResponse(MockServiceInterfaceRenderResponse response)
void
setSaveXml(boolean saveXml)
Sets the boolean value to be available inIServiceInterfaceRenderRequest.getSaveXml()
method.void
setServiceConfig(ServiceConfig serviceConfig)
Sets the new ServiceConfig instance to be available inIServiceInterfaceRequest.getServiceConfig()
.void
setServiceInstanceConfig(ServiceInstanceConfig serviceInstanceConfig)
Sets the value that will be used onIServiceInterfaceRequest.getServiceInstanceConfig()
.void
setServiceInstanceDebugLevel(int serviceInstanceDebugLevel)
Sets a new value for service instance debug level to be available inIServiceInterfaceRequest.getServiceInstanceDebugLevel()
.void
setServiceInterfaceConfig(ServiceInterfaceConfig serviceInterfaceConfig)
Sets the new ServiceInterfaceConfig instance to be available inIServiceInterfaceRequest.getServiceInterfaceConfig()
.void
setServiceInterfaceInstanceConfig(ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig)
Sets the new ServiceInterfaceInstanceConfig instance to be available inIServiceInterfaceRequest.getServiceInterfaceInstanceConfig()
.void
setSessionConfig(SessionConfig sessionConfig)
Sets the new instance of SessionConfig to be available inIServiceInterfaceRequest.getSessionConfig()
.void
setWindowState(javax.portlet.WindowState windowState)
Sets the window state, returned byPortletRequest.getWindowState()
.-
Methods inherited from class org.springframework.mock.web.MockHttpServletRequest
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.servlet.http.HttpServletRequest
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
-
Methods inherited from interface lumis.lptf.portal.serviceinterface.IMockServiceInterfaceRequest
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
-
Methods inherited from interface lumis.portal.url.IPageWebResourceRequest
getApplicationRequestedPath, getAttribute, getAttributeNames, getContextPath, getCookies, getParameter, getParameterMap, getParameterNames, getParameterValues, getPortalMode, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute
-
Methods inherited from interface lumis.portal.serviceinterface.IServiceInterfaceRequest
getAttributeNames, getCallerServiceInterfaceInstanceId, getCallerServiceInterfaceInstancePreferences, getCallerServiceInterfaceMenuLevel, getCookie, getCookies, getFileParameter, getHeader, getMode, getPageConfig, getPageWebResource, getParameterMap, getParameterNames, getPreferences, getServiceConfig, getServiceInstanceConfig, getServiceInstanceDebugLevel, getServiceInterfaceConfig, getServiceInterfaceInstanceConfig, getServiceInterfaceInstanceId, getSessionConfig, getWebsiteBaseURL, isPreview, setMode
-
Methods inherited from interface lumis.portal.serviceinterface.IServiceInterfaceRequestSPI
getHttpServletRequest, getReplaceInterfacesStorage, getServiceContainerHttpServletRequest, getVariableResolver
-
Methods inherited from interface javax.portlet.PortletRequest
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
-
Methods inherited from interface javax.servlet.ServletRequest
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
-
-
-
-
Method Detail
-
getRequestDispatcher
public IServiceInterfaceRequestDispatcher getRequestDispatcher(java.lang.String path)
- Specified by:
getRequestDispatcher
in interfaceIServiceInterfaceRequest
- Specified by:
getRequestDispatcher
in interfacejavax.servlet.ServletRequest
-
getETag
public java.lang.String getETag()
- Specified by:
getETag
in interfacejavax.portlet.RenderRequest
-
getSaveXml
public boolean getSaveXml()
- Specified by:
getSaveXml
in interfaceIServiceInterfaceRenderRequest
-
setSaveXml
public void setSaveXml(boolean saveXml)
Description copied from interface:IMockServiceInterfaceRenderRequest
Sets the boolean value to be available inIServiceInterfaceRenderRequest.getSaveXml()
method.- Specified by:
setSaveXml
in interfaceIMockServiceInterfaceRenderRequest
- Parameters:
saveXml
- the boolean value that must be used during the tests.
-
isPageCachedInFile
public boolean isPageCachedInFile()
Description copied from interface:IPageWebResourceRequest
Returns whether the requested page is cached in file.- Specified by:
isPageCachedInFile
in interfaceIPageWebResourceRequest
- Specified by:
isPageCachedInFile
in interfaceIServiceInterfaceRenderRequest
- Returns:
- whether the requested page is cached in file.
-
setPageCachedInFile
public void setPageCachedInFile(boolean pageCachedInFile)
Description copied from interface:IMockServiceInterfaceRenderRequest
Sets the boolean value to be available inIPageWebResourceRequest.isPageCachedInFile()
method.- Specified by:
setPageCachedInFile
in interfaceIMockServiceInterfaceRenderRequest
- Parameters:
pageCachedInFile
- the boolean value that must be used during the tests.
-
isPrinting
public boolean isPrinting()
Description copied from interface:IPageWebResourceRenderRequest
Returns whether the request is in print mode.- Specified by:
isPrinting
in interfaceIPageWebResourceRenderRequest
- Specified by:
isPrinting
in interfaceIServiceInterfaceRenderRequest
- Returns:
- whether the request is in print mode.
-
setPrinting
public void setPrinting(boolean printing)
Description copied from interface:IMockServiceInterfaceRenderRequest
Sets the boolean value to be available inIServiceInterfaceRenderRequest.isPrinting()
method.- Specified by:
setPrinting
in interfaceIMockServiceInterfaceRenderRequest
- Parameters:
printing
- the boolean value that must be used during the tests.
-
getBusinessContext
public IBusinessContext getBusinessContext()
Description copied from interface:IServiceInterfaceRequest
Returns the business context for this request.- Specified by:
getBusinessContext
in interfaceIPageWebResourceRequest
- Specified by:
getBusinessContext
in interfaceIServiceInterfaceRequest
- Returns:
- the business context.
-
getFunctionMapper
public javax.servlet.jsp.el.FunctionMapper getFunctionMapper()
Description copied from interface:IServiceInterfaceRequestSPI
Returns theFunctionMapper
for this request.- Specified by:
getFunctionMapper
in interfaceIServiceInterfaceRequestSPI
- Returns:
- the
FunctionMapper
for this request.
-
setResponse
protected void setResponse(MockServiceInterfaceRenderResponse response)
-
setCallerServiceInterfaceInstanceId
public void setCallerServiceInterfaceInstanceId(java.lang.String callerServiceInterfaceInstanceId)
Description copied from interface:IMockServiceInterfaceRequest
Sets a new value for caller service interface instance id to be available inIServiceInterfaceRequest.getCallerServiceInterfaceInstanceId()
.- Specified by:
setCallerServiceInterfaceInstanceId
in interfaceIMockServiceInterfaceRequest
- Parameters:
callerServiceInterfaceInstanceId
- the new callerServiceInterfaceInstanceId.
-
getCallerServiceInterfaceInstanceId
public java.lang.String getCallerServiceInterfaceInstanceId()
- Specified by:
getCallerServiceInterfaceInstanceId
in interfaceIServiceInterfaceRequest
-
getCallerServiceInterfaceMenuLevel
public ServiceInterfaceMenuLevel getCallerServiceInterfaceMenuLevel()
Description copied from interface:IServiceInterfaceRequest
Returns the service interface menu level that called the interface processed by this request.- Specified by:
getCallerServiceInterfaceMenuLevel
in interfaceIServiceInterfaceRequest
- Returns:
- the menu level.
-
setCallerServiceInterfaceMenuLevel
public void setCallerServiceInterfaceMenuLevel(ServiceInterfaceMenuLevel callerServiceInterfaceMenuLevel)
Description copied from interface:IMockServiceInterfaceRequest
Sets the caller service interface menu level, returned byIServiceInterfaceRequest.getCallerServiceInterfaceMenuLevel()
.- Specified by:
setCallerServiceInterfaceMenuLevel
in interfaceIMockServiceInterfaceRequest
- Parameters:
callerServiceInterfaceMenuLevel
- the menu level.
-
getCallerServiceInterfaceInstancePreferences
public IPreferences getCallerServiceInterfaceInstancePreferences()
Description copied from interface:IServiceInterfaceRequest
Returns the preferences of thecaller service interface instance
at level that corresponds to the menu level returned byIServiceInterfaceRequest.getCallerServiceInterfaceMenuLevel()
.- Specified by:
getCallerServiceInterfaceInstancePreferences
in interfaceIServiceInterfaceRequest
- Returns:
- the preferences.
-
getCookie
public javax.servlet.http.Cookie getCookie(java.lang.String cookieName)
Description copied from interface:IPageWebResourceRequest
Returns the requested cookie ornull
if the cookie does not exist in request.- Specified by:
getCookie
in interfaceIPageWebResourceRequest
- Specified by:
getCookie
in interfaceIServiceInterfaceRequest
- Parameters:
cookieName
- the requested cookie name.- Returns:
- the requested cookie or
null
if the cookie does not exist in request.
-
getFileParameter
public FileParameter getFileParameter(java.lang.String parameterName)
Description copied from interface:IPageWebResourceRequest
Returns the uploaded file by the given parameter name.- Specified by:
getFileParameter
in interfaceIPageWebResourceRequest
- Specified by:
getFileParameter
in interfaceIServiceInterfaceRequest
- Parameters:
parameterName
- the parameter name.- Returns:
- the uploaded file by the given parameter name
-
addFileParameter
public void addFileParameter(java.lang.String name, FileParameter fileParameter)
Description copied from interface:IMockServiceInterfaceRequest
Adds a file parameter to be available inIServiceInterfaceRequest.getFileParameter(String)
.- Specified by:
addFileParameter
in interfaceIMockServiceInterfaceRequest
- Parameters:
name
- the name of the FileParameter.fileParameter
- the FileParameter instance.
-
setFileParameterMap
public void setFileParameterMap(java.util.Map<java.lang.String,FileParameter> fileParameterMap)
Description copied from interface:IMockServiceInterfaceRequest
Sets a map as the file parameters available inIServiceInterfaceRequest.getFileParameter(String)
.- Specified by:
setFileParameterMap
in interfaceIMockServiceInterfaceRequest
- Parameters:
fileParameterMap
- an instance of Map.
-
getHeader
public java.lang.String getHeader(java.lang.String header)
Description copied from interface:IPageWebResourceRequest
Returns the requested header ornull
if the header does not exist in request.- Specified by:
getHeader
in interfacejavax.servlet.http.HttpServletRequest
- Specified by:
getHeader
in interfaceIPageWebResourceRequest
- Specified by:
getHeader
in interfaceIServiceInterfaceRequest
- Overrides:
getHeader
in classorg.springframework.mock.web.MockHttpServletRequest
- Parameters:
header
- the requested header name.- Returns:
- the requested header or
null
if the header does not exist in request.
-
addHeader
public void addHeader(java.lang.String key, java.lang.String value)
Description copied from interface:IMockServiceInterfaceRequest
Adds a new header value to be available inIServiceInterfaceRequest.getHeader(String)
.- Specified by:
addHeader
in interfaceIMockServiceInterfaceRequest
- Parameters:
key
- string representing the key.value
- the value.
-
setHeaderMap
public void setHeaderMap(java.util.Map<java.lang.String,java.lang.String> headerMap)
Description copied from interface:IMockServiceInterfaceRequest
Sets a new header map. In this way, all the values returned byIServiceInterfaceRequest.getHeader(String)
will be replaced.- Specified by:
setHeaderMap
in interfaceIMockServiceInterfaceRequest
- Parameters:
headerMap
- the instance of Map. - See Also:
IServiceInterfaceRequest.getHeader(String)
-
getMode
public int getMode()
- Specified by:
getMode
in interfaceIServiceInterfaceRequest
-
getPageConfig
public PageConfig getPageConfig()
- Specified by:
getPageConfig
in interfaceIServiceInterfaceRequest
- Returns:
-
setPageConfig
public void setPageConfig(PageConfig pageConfig)
Description copied from interface:IMockServiceInterfaceRequest
Sets the new PageConfig instance to be available inIServiceInterfaceRequest.getPageConfig()
.- Specified by:
setPageConfig
in interfaceIMockServiceInterfaceRequest
- Parameters:
pageConfig
- the instance of PageConfig that will be used on the tests.
-
getServiceConfig
public ServiceConfig getServiceConfig()
- Specified by:
getServiceConfig
in interfaceIServiceInterfaceRequest
- Returns:
-
setServiceConfig
public void setServiceConfig(ServiceConfig serviceConfig)
Description copied from interface:IMockServiceInterfaceRequest
Sets the new ServiceConfig instance to be available inIServiceInterfaceRequest.getServiceConfig()
.- Specified by:
setServiceConfig
in interfaceIMockServiceInterfaceRequest
- Parameters:
serviceConfig
- the instance of ServiceConfig that will be used on the tests.
-
getServiceInstanceConfig
public ServiceInstanceConfig getServiceInstanceConfig()
- Specified by:
getServiceInstanceConfig
in interfaceIServiceInterfaceRequest
- Returns:
-
setServiceInstanceConfig
public void setServiceInstanceConfig(ServiceInstanceConfig serviceInstanceConfig)
Description copied from interface:IMockServiceInterfaceRequest
Sets the value that will be used onIServiceInterfaceRequest.getServiceInstanceConfig()
.- Specified by:
setServiceInstanceConfig
in interfaceIMockServiceInterfaceRequest
- Parameters:
serviceInstanceConfig
- the instance of ServiceInstanceConfig that will be used on the tests.
-
getServiceInstanceDebugLevel
public int getServiceInstanceDebugLevel()
- Specified by:
getServiceInstanceDebugLevel
in interfaceIServiceInterfaceRequest
-
setServiceInstanceDebugLevel
public void setServiceInstanceDebugLevel(int serviceInstanceDebugLevel)
Description copied from interface:IMockServiceInterfaceRequest
Sets a new value for service instance debug level to be available inIServiceInterfaceRequest.getServiceInstanceDebugLevel()
.- Specified by:
setServiceInstanceDebugLevel
in interfaceIMockServiceInterfaceRequest
- Parameters:
serviceInstanceDebugLevel
- the new level.
-
getServiceInterfaceConfig
public ServiceInterfaceConfig getServiceInterfaceConfig()
- Specified by:
getServiceInterfaceConfig
in interfaceIServiceInterfaceRequest
- Returns:
-
setServiceInterfaceConfig
public void setServiceInterfaceConfig(ServiceInterfaceConfig serviceInterfaceConfig)
Description copied from interface:IMockServiceInterfaceRequest
Sets the new ServiceInterfaceConfig instance to be available inIServiceInterfaceRequest.getServiceInterfaceConfig()
.- Specified by:
setServiceInterfaceConfig
in interfaceIMockServiceInterfaceRequest
-
getServiceInterfaceInstanceConfig
public ServiceInterfaceInstanceConfig getServiceInterfaceInstanceConfig()
- Specified by:
getServiceInterfaceInstanceConfig
in interfaceIServiceInterfaceRequest
- Returns:
- the source page
-
setServiceInterfaceInstanceConfig
public void setServiceInterfaceInstanceConfig(ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig)
Description copied from interface:IMockServiceInterfaceRequest
Sets the new ServiceInterfaceInstanceConfig instance to be available inIServiceInterfaceRequest.getServiceInterfaceInstanceConfig()
.- Specified by:
setServiceInterfaceInstanceConfig
in interfaceIMockServiceInterfaceRequest
-
getServiceInterfaceInstanceId
public java.lang.String getServiceInterfaceInstanceId()
- Specified by:
getServiceInterfaceInstanceId
in interfaceIServiceInterfaceRequest
- Returns:
- Returns the serviceInterfaceInstanceId.
-
getSessionConfig
public SessionConfig getSessionConfig()
Description copied from interface:IPageWebResourceRequest
Returns the session of the user that has performed the request.- Specified by:
getSessionConfig
in interfaceIPageWebResourceRequest
- Specified by:
getSessionConfig
in interfaceIServiceInterfaceRequest
- Returns:
- the session of the user that has performed the request.
-
setSessionConfig
public void setSessionConfig(SessionConfig sessionConfig)
Description copied from interface:IMockServiceInterfaceRequest
Sets the new instance of SessionConfig to be available inIServiceInterfaceRequest.getSessionConfig()
.- Specified by:
setSessionConfig
in interfaceIMockServiceInterfaceRequest
- Specified by:
setSessionConfig
in interfaceIServiceInterfaceRequest
-
isPreview
public boolean isPreview()
Description copied from interface:IPageWebResourceRequest
Returns whether the request is in preview mode.- Specified by:
isPreview
in interfaceIPageWebResourceRequest
- Specified by:
isPreview
in interfaceIServiceInterfaceRequest
- Returns:
- whether the request is in preview mode.
-
setPreview
public void setPreview(boolean preview)
Description copied from interface:IMockServiceInterfaceRequest
Sets the value that will be used onIServiceInterfaceRequest.isPreview()
.- Specified by:
setPreview
in interfaceIMockServiceInterfaceRequest
- Parameters:
preview
- the boolean value
-
setMode
public void setMode(int mode)
- Specified by:
setMode
in interfaceIServiceInterfaceRequest
-
getPrivateParameterMap
public java.util.Map<java.lang.String,java.lang.String[]> getPrivateParameterMap()
- Specified by:
getPrivateParameterMap
in interfacejavax.portlet.PortletRequest
-
getPublicParameterMap
public java.util.Map<java.lang.String,java.lang.String[]> getPublicParameterMap()
- Specified by:
getPublicParameterMap
in interfacejavax.portlet.PortletRequest
-
getWindowID
public java.lang.String getWindowID()
- Specified by:
getWindowID
in interfacejavax.portlet.PortletRequest
-
getUserPrincipal
public java.security.Principal getUserPrincipal()
- Specified by:
getUserPrincipal
in interfacejavax.servlet.http.HttpServletRequest
- Specified by:
getUserPrincipal
in interfacejavax.portlet.PortletRequest
- Overrides:
getUserPrincipal
in classorg.springframework.mock.web.MockHttpServletRequest
-
setParameterMap
public void setParameterMap(java.util.Map<java.lang.String,java.lang.String[]> parameters)
Description copied from interface:IMockServiceInterfaceRequest
Replaces all parameters in this request with the specified parameters.- Specified by:
setParameterMap
in interfaceIMockServiceInterfaceRequest
- Parameters:
parameters
- the parameters.- See Also:
PortletRequest.getParameter(String)
,IServiceInterfaceRequest.getParameterMap()
,IServiceInterfaceRequest.getParameterNames()
,PortletRequest.getParameterValues(String)
-
getLocale
public java.util.Locale getLocale()
- Specified by:
getLocale
in interfacejavax.portlet.PortletRequest
- Specified by:
getLocale
in interfacejavax.servlet.ServletRequest
- Overrides:
getLocale
in classorg.springframework.mock.web.MockHttpServletRequest
-
getLocales
public java.util.Enumeration<java.util.Locale> getLocales()
- Specified by:
getLocales
in interfacejavax.portlet.PortletRequest
- Specified by:
getLocales
in interfacejavax.servlet.ServletRequest
- Overrides:
getLocales
in classorg.springframework.mock.web.MockHttpServletRequest
-
setLocales
public void setLocales(java.util.List<java.util.Locale> locales)
Description copied from interface:IMockServiceInterfaceRequest
Sets the locales specified in this request, in order of preference.- Specified by:
setLocales
in interfaceIMockServiceInterfaceRequest
- Parameters:
locales
- the locales.- See Also:
PortletRequest.getLocale()
,PortletRequest.getLocales()
-
getPageWebResource
public PageWebResource getPageWebResource()
Description copied from interface:IServiceInterfaceRequest
Returns thePageWebResource
of this request.- Specified by:
getPageWebResource
in interfaceIPageWebResourceRequest
- Specified by:
getPageWebResource
in interfaceIServiceInterfaceRequest
- Returns:
- the
PageWebResource
of this request.
-
getWebsiteBaseURL
public IWebsiteBaseURL getWebsiteBaseURL()
Description copied from interface:IServiceInterfaceRequest
Returns the website's base URL accessed to generate this request.- Specified by:
getWebsiteBaseURL
in interfaceIPageWebResourceRequest
- Specified by:
getWebsiteBaseURL
in interfaceIServiceInterfaceRequest
- Returns:
- the website base URL.
-
getVariableResolver
public javax.servlet.jsp.el.VariableResolver getVariableResolver()
Description copied from interface:IServiceInterfaceRequestSPI
Returns theVariableResolver
for this request.- Specified by:
getVariableResolver
in interfaceIServiceInterfaceRequestSPI
- Returns:
- the
VariableResolver
for this request.
-
getServiceContainerHttpServletRequest
public ServiceContainerHttpServletRequest getServiceContainerHttpServletRequest()
Description copied from interface:IServiceInterfaceRequestSPI
Returns theServiceContainerHttpServletRequest
.- Specified by:
getServiceContainerHttpServletRequest
in interfaceIServiceInterfaceRequestSPI
- Returns:
- the
ServiceContainerHttpServletRequest
.
-
getPortalMode
public IPortalMode getPortalMode()
Description copied from interface:IPageWebResourceRequest
Returns the requested portal mode.- Specified by:
getPortalMode
in interfaceIPageWebResourceRequest
- Returns:
- the requested portal mode.
-
setApplicationRequestedPath
public void setApplicationRequestedPath(java.lang.String applicationRequestedPath)
Sets the application requested path.- Parameters:
applicationRequestedPath
- the application requested path.- Since:
- 8.2.0
-
getApplicationRequestedPath
public java.lang.String getApplicationRequestedPath()
Description copied from interface:IPageWebResourceRequest
Returns the path requested by the browser relative to the currentwebsite base URL
.- Specified by:
getApplicationRequestedPath
in interfaceIPageWebResourceRequest
- Returns:
- the path requested by the browser relative to the current
website base URL
.
-
isWindowStateAllowed
public boolean isWindowStateAllowed(javax.portlet.WindowState state)
- Specified by:
isWindowStateAllowed
in interfacejavax.portlet.PortletRequest
-
isPortletModeAllowed
public boolean isPortletModeAllowed(javax.portlet.PortletMode mode)
- Specified by:
isPortletModeAllowed
in interfacejavax.portlet.PortletRequest
-
getPortletMode
public javax.portlet.PortletMode getPortletMode()
- Specified by:
getPortletMode
in interfacejavax.portlet.PortletRequest
-
getWindowState
public javax.portlet.WindowState getWindowState()
- Specified by:
getWindowState
in interfacejavax.portlet.PortletRequest
-
getPreferences
public IPreferences getPreferences()
- Specified by:
getPreferences
in interfaceIServiceInterfaceRequest
- Specified by:
getPreferences
in interfacejavax.portlet.PortletRequest
-
getPortletSession
public javax.portlet.PortletSession getPortletSession()
- Specified by:
getPortletSession
in interfacejavax.portlet.PortletRequest
-
getPortletSession
public javax.portlet.PortletSession getPortletSession(boolean create)
- Specified by:
getPortletSession
in interfacejavax.portlet.PortletRequest
-
getProperty
public java.lang.String getProperty(java.lang.String name)
- Specified by:
getProperty
in interfacejavax.portlet.PortletRequest
-
getProperties
public java.util.Enumeration<java.lang.String> getProperties(java.lang.String name)
- Specified by:
getProperties
in interfacejavax.portlet.PortletRequest
-
getPropertyNames
public java.util.Enumeration<java.lang.String> getPropertyNames()
- Specified by:
getPropertyNames
in interfacejavax.portlet.PortletRequest
-
getPortalContext
public javax.portlet.PortalContext getPortalContext()
- Specified by:
getPortalContext
in interfacejavax.portlet.PortletRequest
-
getResponseContentType
public java.lang.String getResponseContentType()
- Specified by:
getResponseContentType
in interfacejavax.portlet.PortletRequest
-
getResponseContentTypes
public java.util.Enumeration<java.lang.String> getResponseContentTypes()
- Specified by:
getResponseContentTypes
in interfacejavax.portlet.PortletRequest
-
addProperty
public void addProperty(java.lang.String key, java.lang.String value)
Description copied from interface:IMockServiceInterfaceRequest
Adds a single value for the specified property.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.
- Specified by:
addProperty
in interfaceIMockServiceInterfaceRequest
- Parameters:
key
- the property key.value
- the property value.- See Also:
PortletRequest.getProperties(String)
,PortletRequest.getProperty(String)
,PortletRequest.getPropertyNames()
-
setPortletMode
public void setPortletMode(javax.portlet.PortletMode portletMode)
Description copied from interface:IMockServiceInterfaceRequest
Sets the portlet mode for this request.- Specified by:
setPortletMode
in interfaceIMockServiceInterfaceRequest
- Parameters:
portletMode
- the portlet mode.- See Also:
PortletRequest.getPortletMode()
-
setProperty
public void setProperty(java.lang.String key, java.lang.String value)
Description copied from interface:IMockServiceInterfaceRequest
Sets a single value for the specified property.If there are already one or more values registered for the given property key, they will be replaced.
- Specified by:
setProperty
in interfaceIMockServiceInterfaceRequest
- Parameters:
key
- the property key.value
- the property value.- See Also:
PortletRequest.getProperties(String)
,PortletRequest.getProperty(String)
,PortletRequest.getPropertyNames()
-
setWindowState
public void setWindowState(javax.portlet.WindowState windowState)
Description copied from interface:IMockServiceInterfaceRequest
Sets the window state, returned byPortletRequest.getWindowState()
.- Specified by:
setWindowState
in interfaceIMockServiceInterfaceRequest
- Parameters:
windowState
- the window state.
-
getReplaceInterfacesStorage
public ReplaceInterfacesStorage getReplaceInterfacesStorage()
Description copied from interface:IServiceInterfaceRequestSPI
Returns theReplaceInterfacesStorage
for the current request.- Specified by:
getReplaceInterfacesStorage
in interfaceIServiceInterfaceRequestSPI
- Returns:
- the replace interfaces storage.
-
-