Class MockServiceInterfaceRenderRequest
- java.lang.Object
-
- org.springframework.mock.web.MockHttpServletRequest
-
- lumis.lptf.portal.serviceinterface.MockServiceInterfaceRenderRequest
-
- All Implemented Interfaces:
PortletRequest
,RenderRequest
,HttpServletRequest
,ServletRequest
,IMockServiceInterfaceRenderRequest
,IMockServiceInterfaceRequest
,IServiceInterfaceRenderRequest
,IServiceInterfaceRequest
,IServiceInterfaceRequestSPI
,IPageWebResourceRenderRequest
,IPageWebResourceRequest
public class MockServiceInterfaceRenderRequest extends org.springframework.mock.web.MockHttpServletRequest implements IMockServiceInterfaceRenderRequest, IServiceInterfaceRequestSPI, HttpServletRequest
Implementation for IMockServiceInterfaceRenderRequest interface.- Since:
- 5.6.0
- Version:
- $Revision: 17807 $ $Date: 2015-10-08 17:33:01 -0300 (Thu, 08 Oct 2015) $
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface javax.portlet.PortletRequest
PortletRequest.P3PUserInfos
-
-
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
-
Fields inherited from interface javax.portlet.PortletRequest
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
-
Fields inherited from interface javax.portlet.RenderRequest
ETAG
-
-
Constructor Summary
Constructors Constructor Description MockServiceInterfaceRenderRequest()
-
Method Summary
-
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(String path)
- Specified by:
getRequestDispatcher
in interfaceIServiceInterfaceRequest
- Specified by:
getRequestDispatcher
in interfaceServletRequest
-
getETag
public String getETag()
- Specified by:
getETag
in interfaceRenderRequest
-
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 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(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 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 Cookie getCookie(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(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(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(Map<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 String getHeader(String header)
Description copied from interface:IPageWebResourceRequest
Returns the requested header ornull
if the header does not exist in request.- Specified by:
getHeader
in interfaceHttpServletRequest
- 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(String key, 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(Map<String,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 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 Map<String,String[]> getPrivateParameterMap()
- Specified by:
getPrivateParameterMap
in interfacePortletRequest
-
getPublicParameterMap
public Map<String,String[]> getPublicParameterMap()
- Specified by:
getPublicParameterMap
in interfacePortletRequest
-
getWindowID
public String getWindowID()
- Specified by:
getWindowID
in interfacePortletRequest
-
getUserPrincipal
public Principal getUserPrincipal()
- Specified by:
getUserPrincipal
in interfaceHttpServletRequest
- Specified by:
getUserPrincipal
in interfacePortletRequest
- Overrides:
getUserPrincipal
in classorg.springframework.mock.web.MockHttpServletRequest
-
setParameterMap
public void setParameterMap(Map<String,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 Locale getLocale()
- Specified by:
getLocale
in interfacePortletRequest
- Specified by:
getLocale
in interfaceServletRequest
- Overrides:
getLocale
in classorg.springframework.mock.web.MockHttpServletRequest
-
getLocales
public Enumeration<Locale> getLocales()
- Specified by:
getLocales
in interfacePortletRequest
- Specified by:
getLocales
in interfaceServletRequest
- Overrides:
getLocales
in classorg.springframework.mock.web.MockHttpServletRequest
-
setLocales
public void setLocales(List<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 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(String applicationRequestedPath)
Sets the application requested path.- Parameters:
applicationRequestedPath
- the application requested path.- Since:
- 8.2.0
-
getApplicationRequestedPath
public 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(WindowState state)
- Specified by:
isWindowStateAllowed
in interfacePortletRequest
-
isPortletModeAllowed
public boolean isPortletModeAllowed(PortletMode mode)
- Specified by:
isPortletModeAllowed
in interfacePortletRequest
-
getPortletMode
public PortletMode getPortletMode()
- Specified by:
getPortletMode
in interfacePortletRequest
-
getWindowState
public WindowState getWindowState()
- Specified by:
getWindowState
in interfacePortletRequest
-
getPreferences
public IPreferences getPreferences()
- Specified by:
getPreferences
in interfaceIServiceInterfaceRequest
- Specified by:
getPreferences
in interfacePortletRequest
-
getPortletSession
public PortletSession getPortletSession()
- Specified by:
getPortletSession
in interfacePortletRequest
-
getPortletSession
public PortletSession getPortletSession(boolean create)
- Specified by:
getPortletSession
in interfacePortletRequest
-
getProperty
public String getProperty(String name)
- Specified by:
getProperty
in interfacePortletRequest
-
getProperties
public Enumeration<String> getProperties(String name)
- Specified by:
getProperties
in interfacePortletRequest
-
getPropertyNames
public Enumeration<String> getPropertyNames()
- Specified by:
getPropertyNames
in interfacePortletRequest
-
getPortalContext
public PortalContext getPortalContext()
- Specified by:
getPortalContext
in interfacePortletRequest
-
getResponseContentType
public String getResponseContentType()
- Specified by:
getResponseContentType
in interfacePortletRequest
-
getResponseContentTypes
public Enumeration<String> getResponseContentTypes()
- Specified by:
getResponseContentTypes
in interfacePortletRequest
-
addProperty
public void addProperty(String key, 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(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(String key, 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(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.
-
-