Interface IMockServiceInterfaceRequest
-
- All Superinterfaces:
IPageWebResourceRequest
,IServiceInterfaceRequest
,javax.portlet.PortletRequest
- All Known Subinterfaces:
IMockServiceInterfaceActionRequest
,IMockServiceInterfaceRenderRequest
- All Known Implementing Classes:
MockServiceInterfaceActionRequest
,MockServiceInterfaceRenderRequest
@StableMinor(version="15.0", sinceVersion="5.6") public interface IMockServiceInterfaceRequest extends IServiceInterfaceRequest
Interface for aIServiceInterfaceRequest
mock object.- Since:
- 5.6.0
- Version:
- $Revision: 25304 $ $Date: 2022-10-22 22:51:05 -0300 (Sat, 22 Oct 2022) $
-
-
Field Summary
-
Fields inherited from interface lumis.portal.serviceinterface.IServiceInterfaceRequest
DEBUG_LEVEL_HIGH, DEBUG_LEVEL_LOW, DEBUG_LEVEL_MEDIUM, DEBUG_LEVEL_NONE
-
-
Method Summary
All Methods Instance Methods Abstract 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.void
setAuthType(java.lang.String authType)
Sets the value returned byPortletRequest.getAuthType()
.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
setContextPath(java.lang.String contextPath)
Sets the context path, returned byPortletRequest.getContextPath()
.void
setCookies(Cookie... cookies)
Sets a new value for cookiesIServiceInterfaceRequest.getCookies()
.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
setPageConfig(PageConfig pageConfig)
Sets the new PageConfig instance to be available inIServiceInterfaceRequest.getPageConfig()
.void
setParameter(java.lang.String name, java.lang.String value)
Sets a parameter with a single value in this request.void
setParameter(java.lang.String name, java.lang.String[] values)
Sets a parameter with multiple values in this request.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
setProperty(java.lang.String key, java.lang.String value)
Sets a single value for the specified property.void
setRemoteUser(java.lang.String remoteUser)
Sets the remote user returned byPortletRequest.getRemoteUser()
.void
setRequestedSessionIdValid(boolean requestedSessionIdValid)
Sets the return value forPortletRequest.isRequestedSessionIdValid()
.void
setScheme(java.lang.String scheme)
Sets the return value forPortletRequest.getScheme()
.void
setSecure(boolean secure)
Sets the return value forPortletRequest.isSecure()
.void
setServerName(java.lang.String serverName)
Sets the server name returned byPortletRequest.getServerName()
.void
setServerPort(int serverPort)
Sets the server port returned byPortletRequest.getServerPort()
.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 interface lumis.portal.url.IPageWebResourceRequest
getApplicationRequestedPath, getAttribute, getContextPath, getParameter, getParameterValues, getPortalMode, getScheme, getServerName, getServerPort, isPageCachedInFile, isSecure, removeAttribute, setAttribute
-
Methods inherited from interface lumis.portal.serviceinterface.IServiceInterfaceRequest
getAttributeNames, getBusinessContext, getCallerServiceInterfaceInstanceId, getCallerServiceInterfaceInstancePreferences, getCallerServiceInterfaceMenuLevel, getCookie, getCookies, getFileParameter, getHeader, getMode, getPageConfig, getPageWebResource, getParameterMap, getParameterNames, getPreferences, getRequestDispatcher, getServiceConfig, getServiceInstanceConfig, getServiceInstanceDebugLevel, getServiceInterfaceConfig, getServiceInterfaceInstanceConfig, getServiceInterfaceInstanceId, getSessionConfig, getWebsiteBaseURL, isPreview, setMode
-
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
-
-
-
-
Method Detail
-
setSessionConfig
void setSessionConfig(SessionConfig sessionConfig)
Sets the new instance of SessionConfig to be available inIServiceInterfaceRequest.getSessionConfig()
.- Specified by:
setSessionConfig
in interfaceIServiceInterfaceRequest
- Since:
- 5.6.0
-
setPageConfig
void setPageConfig(PageConfig pageConfig)
Sets the new PageConfig instance to be available inIServiceInterfaceRequest.getPageConfig()
.- Parameters:
pageConfig
- the instance of PageConfig that will be used on the tests.- Since:
- 5.6.0
-
setServiceConfig
void setServiceConfig(ServiceConfig serviceConfig)
Sets the new ServiceConfig instance to be available inIServiceInterfaceRequest.getServiceConfig()
.- Parameters:
serviceConfig
- the instance of ServiceConfig that will be used on the tests.- Since:
- 5.6.0
-
setServiceInstanceConfig
void setServiceInstanceConfig(ServiceInstanceConfig serviceInstanceConfig)
Sets the value that will be used onIServiceInterfaceRequest.getServiceInstanceConfig()
.- Parameters:
serviceInstanceConfig
- the instance of ServiceInstanceConfig that will be used on the tests.- Since:
- 5.6.0
-
setServiceInterfaceConfig
void setServiceInterfaceConfig(ServiceInterfaceConfig serviceInterfaceConfig)
Sets the new ServiceInterfaceConfig instance to be available inIServiceInterfaceRequest.getServiceInterfaceConfig()
.- Parameters:
serviceInterfaceConfig
-- Since:
- 5.6.0
-
setServiceInterfaceInstanceConfig
void setServiceInterfaceInstanceConfig(ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig)
Sets the new ServiceInterfaceInstanceConfig instance to be available inIServiceInterfaceRequest.getServiceInterfaceInstanceConfig()
.- Parameters:
serviceInterfaceInstanceConfig
-- Since:
- 5.6.0
-
setPreview
void setPreview(boolean preview)
Sets the value that will be used onIServiceInterfaceRequest.isPreview()
.- Parameters:
preview
- the boolean value- Since:
- 5.6.0
-
addHeader
void addHeader(java.lang.String key, java.lang.String value)
Adds a new header value to be available inIServiceInterfaceRequest.getHeader(String)
.- Parameters:
key
- string representing the key.value
- the value.- Since:
- 5.6.0
-
setHeaderMap
void setHeaderMap(java.util.Map<java.lang.String,java.lang.String> headerMap)
Sets a new header map. In this way, all the values returned byIServiceInterfaceRequest.getHeader(String)
will be replaced.- Parameters:
headerMap
- the instance of Map. - Since:
- 5.6.0
- See Also:
IServiceInterfaceRequest.getHeader(String)
-
addFileParameter
void addFileParameter(java.lang.String name, FileParameter fileParameter)
Adds a file parameter to be available inIServiceInterfaceRequest.getFileParameter(String)
.- Parameters:
name
- the name of the FileParameter.fileParameter
- the FileParameter instance.- Since:
- 5.6.0
-
setFileParameterMap
void setFileParameterMap(java.util.Map<java.lang.String,FileParameter> fileParameterMap)
Sets a map as the file parameters available inIServiceInterfaceRequest.getFileParameter(String)
.- Parameters:
fileParameterMap
- an instance of Map. - Since:
- 5.6.0
-
setCookies
void setCookies(Cookie... cookies)
Sets a new value for cookiesIServiceInterfaceRequest.getCookies()
.- Parameters:
cookies
- the cookies to set.- Since:
- 5.6.0
-
setServiceInstanceDebugLevel
void setServiceInstanceDebugLevel(int serviceInstanceDebugLevel)
Sets a new value for service instance debug level to be available inIServiceInterfaceRequest.getServiceInstanceDebugLevel()
.- Parameters:
serviceInstanceDebugLevel
- the new level.- Since:
- 5.6.0
-
setCallerServiceInterfaceInstanceId
void setCallerServiceInterfaceInstanceId(java.lang.String callerServiceInterfaceInstanceId)
Sets a new value for caller service interface instance id to be available inIServiceInterfaceRequest.getCallerServiceInterfaceInstanceId()
.- Parameters:
callerServiceInterfaceInstanceId
- the new callerServiceInterfaceInstanceId.- Since:
- 5.6.0
-
addProperty
void addProperty(java.lang.String key, java.lang.String value)
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.
- Parameters:
key
- the property key.value
- the property value.- Since:
- 5.6.0
- See Also:
PortletRequest.getProperties(String)
,PortletRequest.getProperty(String)
,PortletRequest.getPropertyNames()
-
setAuthType
void setAuthType(java.lang.String authType)
Sets the value returned byPortletRequest.getAuthType()
.- Parameters:
authType
- the authType.- Since:
- 5.6.0
-
setContextPath
void setContextPath(java.lang.String contextPath)
Sets the context path, returned byPortletRequest.getContextPath()
.- Parameters:
contextPath
- the context path.- Since:
- 5.6.0
-
setLocales
void setLocales(java.util.List<java.util.Locale> locales)
Sets the locales specified in this request, in order of preference.- Parameters:
locales
- the locales.- Since:
- 5.6.0
- See Also:
PortletRequest.getLocale()
,PortletRequest.getLocales()
-
setParameter
void setParameter(java.lang.String name, java.lang.String value)
Sets a parameter with a single value in this request.- Parameters:
name
- the parameter name.value
- the parameter value.- Since:
- 5.6.0
- See Also:
PortletRequest.getParameter(String)
,IServiceInterfaceRequest.getParameterMap()
,IServiceInterfaceRequest.getParameterNames()
,PortletRequest.getParameterValues(String)
-
setParameter
void setParameter(java.lang.String name, java.lang.String[] values)
Sets a parameter with multiple values in this request.- Parameters:
name
- the parameter name.values
- the parameter values.- Since:
- 5.6.0
- See Also:
PortletRequest.getParameter(String)
,IServiceInterfaceRequest.getParameterMap()
,IServiceInterfaceRequest.getParameterNames()
,PortletRequest.getParameterValues(String)
-
setParameterMap
void setParameterMap(java.util.Map<java.lang.String,java.lang.String[]> parameters)
Replaces all parameters in this request with the specified parameters.- Parameters:
parameters
- the parameters.- Since:
- 5.6.0
- See Also:
PortletRequest.getParameter(String)
,IServiceInterfaceRequest.getParameterMap()
,IServiceInterfaceRequest.getParameterNames()
,PortletRequest.getParameterValues(String)
-
setPortletMode
void setPortletMode(javax.portlet.PortletMode portletMode)
Sets the portlet mode for this request.- Parameters:
portletMode
- the portlet mode.- Since:
- 5.6.0
- See Also:
PortletRequest.getPortletMode()
-
setProperty
void setProperty(java.lang.String key, java.lang.String value)
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.
- Parameters:
key
- the property key.value
- the property value.- Since:
- 5.6.0
- See Also:
PortletRequest.getProperties(String)
,PortletRequest.getProperty(String)
,PortletRequest.getPropertyNames()
-
setRemoteUser
void setRemoteUser(java.lang.String remoteUser)
Sets the remote user returned byPortletRequest.getRemoteUser()
.- Parameters:
remoteUser
- the remote user.- Since:
- 5.6.0
-
setRequestedSessionIdValid
void setRequestedSessionIdValid(boolean requestedSessionIdValid)
Sets the return value forPortletRequest.isRequestedSessionIdValid()
.- Parameters:
requestedSessionIdValid
- the value.- Since:
- 5.6.0
-
setScheme
void setScheme(java.lang.String scheme)
Sets the return value forPortletRequest.getScheme()
.- Parameters:
scheme
- the value.- Since:
- 5.6.0
-
setSecure
void setSecure(boolean secure)
Sets the return value forPortletRequest.isSecure()
.- Parameters:
secure
- the value.- Since:
- 5.6.0
-
setServerName
void setServerName(java.lang.String serverName)
Sets the server name returned byPortletRequest.getServerName()
.- Parameters:
serverName
- the server name.- Since:
- 5.6.0
-
setServerPort
void setServerPort(int serverPort)
Sets the server port returned byPortletRequest.getServerPort()
.- Parameters:
serverPort
- the server port.- Since:
- 5.6.0
-
setWindowState
void setWindowState(javax.portlet.WindowState windowState)
Sets the window state, returned byPortletRequest.getWindowState()
.- Parameters:
windowState
- the window state.- Since:
- 5.6.0
-
setCallerServiceInterfaceMenuLevel
void setCallerServiceInterfaceMenuLevel(ServiceInterfaceMenuLevel callerServiceInterfaceMenuLevel)
Sets the caller service interface menu level, returned byIServiceInterfaceRequest.getCallerServiceInterfaceMenuLevel()
.- Parameters:
callerServiceInterfaceMenuLevel
- the menu level.- Since:
- 10.2.0
-
-