@StableMinor(version="12.4", sinceVersion="5.6") public interface IMockServiceInterfaceRequest extends IServiceInterfaceRequest
IServiceInterfaceRequest
mock object.PortletRequest.P3PUserInfos
DEBUG_LEVEL_HIGH, DEBUG_LEVEL_LOW, DEBUG_LEVEL_MEDIUM, DEBUG_LEVEL_NONE
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
Modifier and Type | Method and Description |
---|---|
void |
addFileParameter(String name,
FileParameter fileParameter)
Adds a file parameter to be available in
IServiceInterfaceRequest.getFileParameter(String) . |
void |
addHeader(String key,
String value)
Adds a new header value to be available in
IServiceInterfaceRequest.getHeader(String) . |
void |
addProperty(String key,
String value)
Adds a single value for the specified property.
|
void |
setAuthType(String authType)
Sets the value returned by
PortletRequest.getAuthType() . |
void |
setCallerServiceInterfaceInstanceId(String callerServiceInterfaceInstanceId)
Sets a new value for caller service interface instance id to be
available in
IServiceInterfaceRequest.getCallerServiceInterfaceInstanceId() . |
void |
setCallerServiceInterfaceMenuLevel(ServiceInterfaceMenuLevel callerServiceInterfaceMenuLevel)
Sets the caller service interface menu level, returned by
IServiceInterfaceRequest.getCallerServiceInterfaceMenuLevel() . |
void |
setContextPath(String contextPath)
Sets the context path, returned by
PortletRequest.getContextPath() . |
void |
setCookies(Cookie... cookies)
Sets a new value for cookies
IServiceInterfaceRequest.getCookies() . |
void |
setFileParameterMap(Map<String,FileParameter> fileParameterMap)
Sets a map as the file parameters available in
IServiceInterfaceRequest.getFileParameter(String) . |
void |
setHeaderMap(Map<String,String> headerMap)
Sets a new header map.
|
void |
setLocales(List<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 in
IServiceInterfaceRequest.getPageConfig() . |
void |
setParameter(String name,
String value)
Sets a parameter with a single value in this request.
|
void |
setParameter(String name,
String[] values)
Sets a parameter with multiple values in this request.
|
void |
setParameterMap(Map<String,String[]> parameters)
Replaces all parameters in this request with the specified parameters.
|
void |
setPortletMode(PortletMode portletMode)
Sets the portlet mode for this request.
|
void |
setPreview(boolean preview)
Sets the value that will be used on
IServiceInterfaceRequest.isPreview() . |
void |
setProperty(String key,
String value)
Sets a single value for the specified property.
|
void |
setRemoteUser(String remoteUser)
Sets the remote user returned by
PortletRequest.getRemoteUser() . |
void |
setRequestedSessionIdValid(boolean requestedSessionIdValid)
Sets the return value for
PortletRequest.isRequestedSessionIdValid() . |
void |
setScheme(String scheme)
Sets the return value for
PortletRequest.getScheme() . |
void |
setSecure(boolean secure)
Sets the return value for
PortletRequest.isSecure() . |
void |
setServerName(String serverName)
Sets the server name returned by
PortletRequest.getServerName() . |
void |
setServerPort(int serverPort)
Sets the server port returned by
PortletRequest.getServerPort() . |
void |
setServiceConfig(ServiceConfig serviceConfig)
Sets the new ServiceConfig instance to be available in
IServiceInterfaceRequest.getServiceConfig() . |
void |
setServiceInstanceConfig(ServiceInstanceConfig serviceInstanceConfig)
Sets the value that will be used on
IServiceInterfaceRequest.getServiceInstanceConfig() . |
void |
setServiceInstanceDebugLevel(int serviceInstanceDebugLevel)
Sets a new value for service instance debug level to be available in
IServiceInterfaceRequest.getServiceInstanceDebugLevel() . |
void |
setServiceInterfaceConfig(ServiceInterfaceConfig serviceInterfaceConfig)
Sets the new ServiceInterfaceConfig instance to be available in
IServiceInterfaceRequest.getServiceInterfaceConfig() . |
void |
setServiceInterfaceInstanceConfig(ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig)
Sets the new ServiceInterfaceInstanceConfig instance to be available in
IServiceInterfaceRequest.getServiceInterfaceInstanceConfig() . |
void |
setSessionConfig(SessionConfig sessionConfig)
Sets the new instance of SessionConfig to be available in
IServiceInterfaceRequest.getSessionConfig() . |
void |
setWindowState(WindowState windowState)
Sets the window state, returned by
PortletRequest.getWindowState() . |
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
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, isPageCachedInFile, isSecure, removeAttribute, setAttribute
void setSessionConfig(SessionConfig sessionConfig)
IServiceInterfaceRequest.getSessionConfig()
.setSessionConfig
in interface IServiceInterfaceRequest
void setPageConfig(PageConfig pageConfig)
IServiceInterfaceRequest.getPageConfig()
.pageConfig
- the instance of PageConfig that will be used on the tests.void setServiceConfig(ServiceConfig serviceConfig)
IServiceInterfaceRequest.getServiceConfig()
.serviceConfig
- the instance of ServiceConfig that will be used on the tests.void setServiceInstanceConfig(ServiceInstanceConfig serviceInstanceConfig)
IServiceInterfaceRequest.getServiceInstanceConfig()
.serviceInstanceConfig
- the instance of ServiceInstanceConfig that will be used on the tests.void setServiceInterfaceConfig(ServiceInterfaceConfig serviceInterfaceConfig)
IServiceInterfaceRequest.getServiceInterfaceConfig()
.serviceInterfaceConfig
- void setServiceInterfaceInstanceConfig(ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig)
IServiceInterfaceRequest.getServiceInterfaceInstanceConfig()
.serviceInterfaceInstanceConfig
- void setPreview(boolean preview)
IServiceInterfaceRequest.isPreview()
.preview
- the boolean valuevoid addHeader(String key, String value)
IServiceInterfaceRequest.getHeader(String)
.key
- string representing the key.value
- the value.void setHeaderMap(Map<String,String> headerMap)
IServiceInterfaceRequest.getHeader(String)
will be replaced.headerMap
- the instance of MapIServiceInterfaceRequest.getHeader(String)
void addFileParameter(String name, FileParameter fileParameter)
IServiceInterfaceRequest.getFileParameter(String)
.name
- the name of the FileParameter.fileParameter
- the FileParameter instance.void setFileParameterMap(Map<String,FileParameter> fileParameterMap)
IServiceInterfaceRequest.getFileParameter(String)
.fileParameterMap
- an instance of Mapvoid setCookies(Cookie... cookies)
IServiceInterfaceRequest.getCookies()
.cookies
- the cookies to set.void setServiceInstanceDebugLevel(int serviceInstanceDebugLevel)
IServiceInterfaceRequest.getServiceInstanceDebugLevel()
.serviceInstanceDebugLevel
- the new level.void setCallerServiceInterfaceInstanceId(String callerServiceInterfaceInstanceId)
IServiceInterfaceRequest.getCallerServiceInterfaceInstanceId()
.callerServiceInterfaceInstanceId
- the new callerServiceInterfaceInstanceId.void addProperty(String key, String value)
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.
key
- the property key.value
- the property value.PortletRequest.getProperties(String)
,
PortletRequest.getProperty(String)
,
PortletRequest.getPropertyNames()
void setAuthType(String authType)
PortletRequest.getAuthType()
.authType
- the authType.void setContextPath(String contextPath)
PortletRequest.getContextPath()
.contextPath
- the context path.void setLocales(List<Locale> locales)
locales
- the locales.PortletRequest.getLocale()
,
PortletRequest.getLocales()
void setParameter(String name, String value)
name
- the parameter name.value
- the parameter value.PortletRequest.getParameter(String)
,
IServiceInterfaceRequest.getParameterMap()
,
IServiceInterfaceRequest.getParameterNames()
,
PortletRequest.getParameterValues(String)
void setParameter(String name, String[] values)
name
- the parameter name.values
- the parameter values.PortletRequest.getParameter(String)
,
IServiceInterfaceRequest.getParameterMap()
,
IServiceInterfaceRequest.getParameterNames()
,
PortletRequest.getParameterValues(String)
void setParameterMap(Map<String,String[]> parameters)
parameters
- the parameters.PortletRequest.getParameter(String)
,
IServiceInterfaceRequest.getParameterMap()
,
IServiceInterfaceRequest.getParameterNames()
,
PortletRequest.getParameterValues(String)
void setPortletMode(PortletMode portletMode)
portletMode
- the portlet mode.PortletRequest.getPortletMode()
void setProperty(String key, String value)
If there are already one or more values registered for the given property key, they will be replaced.
key
- the property key.value
- the property value.PortletRequest.getProperties(String)
,
PortletRequest.getProperty(String)
,
PortletRequest.getPropertyNames()
void setRemoteUser(String remoteUser)
PortletRequest.getRemoteUser()
.remoteUser
- the remote user.void setRequestedSessionIdValid(boolean requestedSessionIdValid)
PortletRequest.isRequestedSessionIdValid()
.requestedSessionIdValid
- the value.void setScheme(String scheme)
PortletRequest.getScheme()
.scheme
- the value.void setSecure(boolean secure)
PortletRequest.isSecure()
.secure
- the value.void setServerName(String serverName)
PortletRequest.getServerName()
.serverName
- the server name.void setServerPort(int serverPort)
PortletRequest.getServerPort()
.serverPort
- the server port.void setWindowState(WindowState windowState)
PortletRequest.getWindowState()
.windowState
- the window state.void setCallerServiceInterfaceMenuLevel(ServiceInterfaceMenuLevel callerServiceInterfaceMenuLevel)
IServiceInterfaceRequest.getCallerServiceInterfaceMenuLevel()
.callerServiceInterfaceMenuLevel
- the menu level.LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.